#3291: After attaching a file that has a extension ".log" the preview failes
and I
got a traceback.
--------------------------------+-------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: cboos
Type: defect | Status: assigned
Priority: highest | Milestone: 0.10
Component: general | Version: devel
Severity: normal | Resolution:
Keywords: |
--------------------------------+-------------------------------------------
Changes (by cboos):
* milestone: => 0.10
* owner: jonas => cboos
* priority: normal => highest
* status: new => assigned
Old description:
> 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'
New description:
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'
}}}
Comment:
This also affects source:trunk.
--
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