Ticket #4186 (closed defect: worksforme)
Opened 5 years ago
Last modified 5 years ago
Large attachement error
| Reported by: | rosdec@… | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wiki system | Version: | 0.9 |
| Severity: | normal | Keywords: | needinfo |
| Cc: | |||
| Release Notes: | |||
| API 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
Change History
comment:1 Changed 5 years ago by Tim Hatch <trac@…>
comment:2 Changed 5 years ago by mgood
- Keywords needinfo added; attachement removed
- Priority changed from high to normal
- Severity changed from major to normal
comment:3 Changed 5 years ago by rosdec@…
This is the line you asked for:
[attachment] max_size = 10485760
comment:4 Changed 5 years ago by anonymous
- Keywords info provided added; needinfo removed
comment:5 Changed 5 years ago by anonymous
Sorry the line is wrong the correct line is :
[attachment] max_size = 104857600
Thanks
comment:6 Changed 5 years ago by Tim Hatch <trac@…>
- 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 Changed 5 years ago by anonymous
- Resolution set to fixed
- Status changed from new to 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 Changed 5 years ago by sid
- Resolution fixed deleted
- Status changed from closed to reopened
comment:9 Changed 5 years ago by sid
- Resolution set to worksforme
- Status changed from reopened to closed
fixed status is only for code changes.



Can you paste the line out of your trac.ini where you specify max_preview_size? It's probably a stray character in there.