Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 10 years ago

#3237 closed defect (wontfix)

Error in Timeline view

Reported by: anonymous Owned by: Jonas Borgström
Priority: normal Milestone:
Component: timeline Version: 0.9.4
Severity: normal Keywords: postgresql, pyPgSQL
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hi,

We have been using Trac for some time and it is a wonderful product. We have set up a project with multiple customized fields. However, when we click on the "Timeline" link, it throws an error. We notice this this occur on certain date range in the Timeline view only (perhaps related to some data).

Below is the traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/Timeline.py", line 140, in process_request
    filters)
  File "/usr/lib/python2.4/site-packages/trac/ticket/web_ui.py", line 280, in get_timeline_events
    for t, id, resolution, status, type, message, author, summary \
  File "/usr/lib/python2.4/site-packages/trac/db.py", line 83, in __iter__
    row = self.cursor.fetchone()
  File "/usr/lib/python2.4/site-packages/pyPgSQL/PgSQL.py", line 3119, in fetchone
    raise Error, \
Error: fetchone() failed - cursor does not contain a result.

Attachments (0)

Change History (10)

comment:1 by ngwp99@…, 18 years ago

Just to add to this ticket, the error above occurs when we select the option to display "Tickets changes" in the Timeline screen. If we exclude that option and choose to display other changes (Milestones, Repository checkins, Wiki changes), the screen will display correctly.

comment:2 by Matthew Good, 18 years ago

What version of pyPgSql is installed? Try upgrading it, since this appears to be a bug in pyPgSql. If this still occurrs with the latest pyPgSql, then I think it will need confirmed and reported to pyPgSql.

It looks like pyPgSql is throwing an error trying to fetch the results when the previous query returned 0 rows. This error should be raised if the query did not have a result (like an insert or update), but should not be for a select with an empty result: http://sourceforge.net/tracker/index.php?func=detail&aid=562738&group_id=16528&atid=116528

comment:3 by ngwp99@…, 18 years ago

I have just upgraded to pyPgSql-2.5.1 on postgreSQL 8.0.8, and the error still occur.

comment:4 by Christian Boos, 18 years ago

Keywords: postgresql needinfo added

Perhaps a malformed query involving the custom fields? It's probably worth investigating. If the reporter is still listening, maybe he could provide us:

  • with his custom fields configuration
  • with the data corresponding to the ticket change triggering the failure (if this can be identified by narrowing the timeline interval triggering the exception)

comment:5 by anonymous, 18 years ago

on windows + trac 0.10.3 + python 2.4 I also can't use pyPgSql-2.5.1 as well as pyPgSql-2.5.0, but pyPgSQL-pre2.5-20050926.win32-py2.4.exe is well.

in reply to:  5 comment:6 by anonymous, 18 years ago

Replying to anonymous:

on windows + trac 0.10.3 + python 2.4 I also can't use pyPgSql-2.5.1 as well as pyPgSql-2.5.0, but pyPgSQL-pre2.5-20050926.win32-py2.4.exe is well.

still me:

in trac_parent uri it displays : Error (DLL load failed: The specified module could not be found.)

comment:7 by Christian Boos, 18 years ago

Keywords: pyPgSQL added; needinfo removed
Milestone: none
Resolution: wontfix
Status: newclosed

Without additional info which could make it possible to reproduce the issue, we probably can't do anything here.

in reply to:  3 comment:8 by anonymous, 17 years ago

Replying to ngwp99@yahoo.com:

I have just upgraded to pyPgSql-2.5.1 on postgreSQL 8.0.8, and the error still occur.

comment:9 by Christian Boos, 12 years ago

Milestone: not applicable

(clearing report:35)

comment:10 by Ryan J Ollos, 10 years ago

Keywords: postgresql pyPgSQL → postgresql, pyPgSQL

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.