Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#1614 closed defect (fixed)

Error in /trac/report/1?format=sql call

Reported by: PBruin Owned by: Jonas Borgström
Priority: low Milestone:
Component: ticket system Version: devel
Severity: normal Keywords: ticket, sql
Cc: peter.bruin@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I got the following Oops using r1642:

Trac detected an internal error: 
global name 'row' is not defined
If you think this really should work and you can reproduce it. Then you should consider to report this problem to the Trac team. 

Go to http://trac.edgewall.com/ and create a new ticket where you describe the problem, how to reproduce it. Don't forget to include the python traceback found below. 

TracGuide — The Trac User and Administration Guide 

Python traceback
Traceback (most recent call last):
  File "c:\python23\Lib\site-packages\trac\web\modpython_frontend.py", line 265, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "c:\python23\Lib\site-packages\trac\web\main.py", line 419, in dispatch_request
    dispatcher.dispatch(req)
  File "c:\python23\Lib\site-packages\trac\web\main.py", line 283, in dispatch
    resp = chosen_handler.process_request(req)
  File "c:\python23\Lib\site-packages\trac\ticket\report.py", line 118, in process_request
    return self._render_view(req, db, id)
  File "c:\python23\Lib\site-packages\trac\ticket\report.py", line 242, in _render_view
    self._render_sql(req, id, title, description, sql)
  File "c:\python23\Lib\site-packages\trac\ticket\report.py", line 488, in _render_sql
    req.write('-- %s\n\n' % '\n-- '.join(row[1].splitlines()))
NameError: global name 'row' is not defined

This was for /trac/report/1?format=sql but all other reports give the same error.
I never used it before so I don't know if it used to work before.

Attachments (0)

Change History (2)

comment:1 by Christian Boos, 19 years ago

Resolution: fixed
Status: newclosed

Fixed in [1743]. Thanks for the report!

comment:2 by PBruin, 19 years ago

Confirmed. Thanks

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.