Edgewall Software

Ticket #5742 (closed defect: duplicate)

Opened 16 months ago

Last modified 16 months ago

Error adding attachments smaller than 1001 bytes

Reported by: azriphale@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.10.3
Severity: normal Keywords: small attachment
Cc:

Description

When adding attachments smaller than 1kB in Trac 0.10.3, an error is produced. It is reliably reproducable when trying to attach a file 1000 bytes or smaller.

Python 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

Change History

Changed 16 months ago by anonymous

  • status changed from new to closed
  • resolution set to duplicate

Appears to be a Duplicate of #4311 Sorry...

Add/Change #5742 (Error adding attachments smaller than 1001 bytes)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.