Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#5297 closed defect (duplicate)

Cannot attach files with size smaller than 1001 bytes.

Reported by: mailxbox2@… Owned by: Christian Boos
Priority: highest Milestone:
Component: wiki system Version: 0.10.3
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Try to attach file disclosed to this ticket. It has exactly 1001 bytes and everything will be ok. But if you delete at least one character, file size will drop below magic 1001 bytes and attaching it to wiki page will end with such traceback:

Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.5/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/var/lib/python-support/python2.5/trac/attachment.py", line 361, in process_request
    self._do_save(req, attachment)
  File "/var/lib/python-support/python2.5/trac/attachment.py", line 450, in _do_save
    size = upload.file.len
AttributeError: 'cStringIO.StringO' object has no attribute 'len'

Attachments (1)

bl.py (1001 bytes ) - added by padre_joseph 18 years ago.
Sample file.

Download all attachments as: .zip

Change History (2)

by padre_joseph, 18 years ago

Attachment: bl.py added

Sample file.

comment:1 by Emmanuel Blot, 18 years ago

Resolution: duplicate
Status: newclosed

It seems to be a duplicate of #4311.

Please upgrade to the latest release, and feel free to re-open this ticket if you still experience the issue.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos 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.