#3291: After attaching a file that has a extension ".log" the preview failes 
and I
got a traceback.
--------------------------------+-------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  jonas
     Type:  defect              |      Status:  new  
 Priority:  normal              |   Milestone:       
Component:  general             |     Version:  devel
 Severity:  normal              |    Keywords:       
--------------------------------+-------------------------------------------
 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'

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/3291>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to