Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#4186 closed defect (worksforme)

Large attachement error

Reported by: rosdec@… 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 Tim Hatch <trac@…>, 18 years ago

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

comment:2 by Matthew Good, 18 years ago

Keywords: needinfo added; attachement removed
Priority: highnormal
Severity: majornormal

comment:3 by rosdec@…, 18 years ago

This is the line you asked for:

[attachment]
max_size = 10485760

comment:4 by anonymous, 18 years ago

Keywords: info provided added; needinfo removed

comment:5 by anonymous, 18 years ago

Sorry the line is wrong the correct line is :

[attachment]
max_size = 104857600

Thanks

comment:6 by Tim Hatch <trac@…>, 18 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 anonymous, 18 years ago

Resolution: fixed
Status: newclosed

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 sid, 18 years ago

Resolution: fixed
Status: closedreopened

comment:9 by sid, 18 years ago

Resolution: worksforme
Status: reopenedclosed

fixed status is only for code changes.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.