Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#5286 closed defect (duplicate)

ValueError: invalid literal for int(): /path/to/report

Reported by: brooke@… Owned by: Matthew Good
Priority: high Milestone:
Component: report system Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

I installed the .11dev version due to running Trac on CentOS (which doesn't support ClearSilver). The installation went fine, but I am unable to view or edit tickets. When I click the 'View Reports' tab, I get the above error.

Here's the log snippet:

<snip>
2007-05-08 15:45:30,367 Trac[main] ERROR: invalid literal for int(): projects/isound/report
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5354-py2.3.egg/trac/web/main.py", line 429, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5354-py2.3.egg/trac/web/main.py", line 217, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5354-py2.3.egg/trac/ticket/report.py", line 74, in process_request
    id = int(req.args.get('id', -1))
ValueError: invalid literal for int(): projects/isound/report
</snip>

Attachments (0)

Change History (6)

comment:1 by brooke@…, 17 years ago

FYI, #5287 & #5286 are related.

comment:2 by Christian Boos, 17 years ago

Description: modified (diff)
Keywords: needinfo added
Milestone: 0.11
Severity: blockernormal

What was the requested URL? And did you do anything special in your TracIni? id is expected to be the report number, not a path…

If the requested URL was .../report/projects/isound/report, then this error must indeed be triggered.

comment:3 by Christian Boos, 17 years ago

Keywords: needinfo removed
Resolution: duplicate
Status: newclosed

Same misconfiguration as #5287, please follow-up only there.

comment:4 by brooke@…, 17 years ago

Resolution: duplicate
Status: closedreopened

The URL was this: http://mydomain.com/projects/isound/report. My trac.ini file hasn't been modified beyond turning logging on.

After reading the source code I realize id is supposed to be a report number, but it looks in fact to be a path.

comment:5 by brooke@…, 17 years ago

i see this is 5286 is moved into 5287, please close this one…

comment:6 by Christian Boos, 17 years ago

Resolution: duplicate
Status: reopenedclosed

(reopened by mistake)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good 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.