Modify ↓
Opened 21 years ago
Closed 21 years ago
#1417 closed defect (fixed)
TypeError: content_type must be a string
| Reported by: | dna | Owned by: | Christopher Lenz |
|---|---|---|---|
| Priority: | high | Milestone: | 0.9 |
| Component: | web frontend/mod_python | Version: | devel |
| Severity: | critical | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
when you try downloading a file using the "Download Original Format" link following error is released.
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 237, in handler
dispatch_request(mpr.path_info, mpr, env)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 311, 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 153, in render_file
req.send_header('Content-Type', node.content_type)
File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 101, in send_header
self.req.content_type = value
TypeError: content_type must be a string
Apache 2.0.53, mod_python 3.1.4, Trac [1503]
Attachments (0)
Change History (8)
comment:1 by , 21 years ago
| Version: | devel → 0.5.1 |
|---|
comment:2 by , 21 years ago
| Version: | 0.5.1 → devel |
|---|
comment:3 by , 21 years ago
| Component: | browser → mod_python frontend |
|---|---|
| Keywords: | Download in original format removed |
| Owner: | changed from to |
| Status: | new → assigned |
comment:5 by , 21 years ago
Okay, this happens for any file that doesn't have a content type set in the repos.
comment:6 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Should be fixed in [1592].
comment:7 by , 21 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
Still does not work for files without content type :
https://ssl.bulix.org/projects/zwe/browser/trunk/AUTHOR?rev=&format=raw
Apache/2.0.54, mod_python 3.1.3, Trac [1598]
comment:8 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Resolved on IRC, apache needed to be restarted
Note:
See TracTickets
for help on using tickets.



Please don't change the version for no reason.