Opened 19 years ago
Closed 19 years ago
#4186 closed defect (worksforme)
Large attachement error
| Reported by: | Owned by: | Jonas Borgström | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wiki system | Version: | 0.9 |
| Severity: | normal | Keywords: | needinfo |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
The problem arose when i've attached a 12Mb file to a wiki page. I've previously raised the max_size to 104857600.
When i address the attachement it gives me: Trac detected an internal error:
invalid literal for int():
My trac is a helix vmware virtual machine. The trac version is 0.9 with python 2.4
Regards
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 206, in handler
dispatch_request(mpr.path_info, mpr, env)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 107, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 273, in process_request
self._render_view(req, attachment)
File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 417, in _render_view
max_preview_size = mimeview.max_preview_size()
File "/usr/lib/python2.4/site-packages/trac/mimeview/api.py", line 285, in max_preview_size
return int(self.config.get('mimeviewer', 'max_preview_size', '262144'))
ValueError: invalid literal for int():
Attachments (0)
Change History (9)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
| Keywords: | needinfo added; attachement removed |
|---|---|
| Priority: | high → normal |
| Severity: | major → normal |
comment:4 by , 19 years ago
| Keywords: | info provided added; needinfo removed |
|---|
comment:5 by , 19 years ago
Sorry the line is wrong the correct line is :
[attachment] max_size = 104857600
Thanks
comment:6 by , 19 years ago
| Keywords: | needinfo added; info provided removed |
|---|
Sorry, I should have been clearer. The error is actually happening with regard to max_preview_size under [mimeviewer]. What does that line look like?
comment:7 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Oh my gosh !!! .. sorry .. i dunno what's happened but max_preview_size under mimeviewer was blank !
Ok i guess this ticket can be closed
comment:8 by , 19 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
comment:9 by , 19 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | reopened → closed |
fixed status is only for code changes.



Can you paste the line out of your
trac.iniwhere you specifymax_preview_size? It's probably a stray character in there.