Edgewall Software
Modify

Ticket #1362 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

Repository image (raw) resource display broken

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

Description (last modified by cmlenz) (diff)

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

Change History

comment:1 Changed 7 years ago by cmlenz

  • Description modified (diff)
  • Owner changed from jonas to cmlenz
  • Status changed from new to assigned

comment:2 Changed 7 years ago by cmlenz

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in [1447].

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cmlenz. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.