Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

#1362 closed defect (fixed)

Repository image (raw) resource display broken

Reported by: jason@… Owned by: Christopher Lenz
Priority: normal Milestone: 0.9
Component: version control/browser Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christopher Lenz)

As of pre-0.9 revision 1446, raw images no longer display properly in the source browser. (I've tested .png's at least).

When viewing a link like this: /browser/trunk/site/images/logo1.png?rev=6&format=raw

I get an oops page with the message "a float is required". Here's the associated traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 168, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 305, in dispatch_request
    module.render(req)
  File "/usr/lib/python2.3/site-packages/trac/Browser.py", line 83, in render
    self.render_file(req, repos, node, rev)
  File "/usr/lib/python2.3/site-packages/trac/Browser.py", line 156, in render_file
    req.send_header('Last-Modified', util.http_date(node.last_modified))
  File "/usr/lib/python2.3/site-packages/trac/util.py", line 172, in http_date
    t = time.gmtime(t)
TypeError: a float is required

Attachments (0)

Change History (2)

comment:1 by Christopher Lenz, 20 years ago

Description: modified (diff)
Owner: changed from Jonas Borgström to Christopher Lenz
Status: newassigned

comment:2 by Christopher Lenz, 20 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [1447].

Modify Ticket

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