Opened 18 years ago
Closed 18 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: | 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 )
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 , 18 years ago
Description: | modified (diff) |
---|---|
Milestone: | → 0.10 |
Owner: | changed from | to
Priority: | normal → highest |
Status: | new → assigned |
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in r3428; thanks for the report!
This also affects source:trunk.