Edgewall Software

Opened 17 years ago

Closed 17 years ago

#2490 closed defect (fixed)

Python exception on malformed wiki URL

Reported by: molle.bestefich@… Owned by: Christian Boos
Priority: low Milestone: 0.9.3
Component: wiki system Version: 0.9.2
Severity: trivial Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


Go to this URL:


And you'll get this:

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 273, in process_request
    self._render_view(req, attachment)
  File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 390, in _render_view
  File "/usr/lib/python2.3/site-packages/trac/web/api.py", line 103, in check_modified
    etag = 'W"%s/%d/%s"' % (self.authname, timesecs, extra)
TypeError: int argument required

Where you really would have expected:

An HTTP 404 response and a fancy 'not found' page for the user to look at :-).

Attachments (0)

Change History (2)

comment:1 by Christian Boos, 17 years ago

Milestone: 0.9.3
Owner: changed from Jonas Borgström to Christian Boos
Status: newassigned

Fortunately this has nothing to do with TracMercurial :) You get this for any attachment/*/*/ URL…

Let's see… ok. I fixed it, but have no connectivity to svn.edgewall.com right now…

comment:2 by Christian Boos, 17 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r2656 and r2659.

Modify Ticket

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