Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#3291 closed defect (fixed)

After attaching a file that has a extension ".log" the preview failes and I got a traceback.

Reported by: pb-ml@… Owned by: Christian Boos
Priority: highest Milestone: 0.10
Component: general Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

I attached the output of a program I had run to a active ticket. The file was called updatefriends.log. This resulted in a traceback. - and I thought that the upload have failed. Going back to the ticket - showed the file (with correct size) - so it was there.. but I got the same error when trying to view the ticket. I then attached a .sql -file and that worked fine.

So the problem seems to be related to .log-files.

We are using recent version of sandbox/workflow.

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 313, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 198, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 304, in process_request
    self._render_view(req, attachment)
  File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 454, in _render_view
    if self.render_unsafe_content and not binary and \
AttributeError: 'NoneType' object has no attribute 'startswith'

Attachments (0)

Change History (2)

comment:1 by Christian Boos, 19 years ago

Description: modified (diff)
Milestone: 0.10
Owner: changed from Jonas Borgström to Christian Boos
Priority: normalhighest
Status: newassigned

This also affects source:trunk.

comment:2 by Christian Boos, 19 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r3428; thanks for the report!

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.