Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#8 closed defect (invalid)

With restrict_owner=true ticket is not created.

Reported by: TYatsurak@… Owned by: bas
Priority: major Milestone:
Component: email2trac Version: 0.9.5
Keywords: restrict_owner pypgsql psycopg Cc:

Description

Trac 0.10.4 using apache, email2trac 0.9.5

restrict_owner=true in trac.ini, component Support has valid owner, get_known_users query shows all users with fully specified names.

---

cat msg.txt|email2trac --component=Support Traceback (most recent call last):

File "/usr/local/bin/email2trac", line 974, in ?

tktparser.parse(sys.stdin)

File "/usr/local/bin/email2trac", line 560, in parse

self.new_ticket(m)

File "/usr/local/bin/email2trac", line 432, in new_ticket

tkt = Ticket(self.env)

File "/usr/lib/python2.4/site-packages/trac/ticket/model.py", line 37, in init

self.fields = TicketSystem?(self.env).get_ticket_fields()

File "/usr/lib/python2.4/site-packages/trac/ticket/api.py", line 104, in get_ticket_fields

for username, name, email in self.env.get_known_users(db):

File "/usr/lib/python2.4/site-packages/trac/env.py", line 320, in get_known_users

for username,name,email in cursor:

File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 40, in iter

row = self.cursor.fetchone()

File "/usr/lib/python2.4/site-packages/pyPgSQL/PgSQL.py", line 3158, in fetchone

raise Error, \

Error: fetchone() failed - cursor does not contain a result. TD: saving email to /tmp/tmpT0AepR.email2trac ---

Attachments (0)

Change History (2)

comment:1 Changed 17 years ago by TYatsurak@…

  • Resolution set to invalid
  • Status changed from new to closed

I have standalone (without apache) installation with psycopg, it works fine. I guess it is not email2trac problem, ticket may be closed.

comment:2 Changed 17 years ago by TYatsurak@…

  • Keywords pypgsql psycopg added

With psycopg2 problem disappeared.

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.