Edgewall Software
Modify

Ticket #5250 (closed defect: duplicate)

Opened 5 years ago

Last modified 5 years ago

Trying to upload a file gives python error

Reported by: etiffany@… Owned by: jonas
Priority: normal Milestone:
Component: ticket system Version: 0.10-stable
Severity: normal Keywords:
Cc:
Release Notes:
API Changes:

Description (last modified by cboos) (diff)

Attempting to submit an attachement to a ticket on this page:

http://trac.cod3r.com/a52codec/ticket/34

Which seems to be running Trac 0.10

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 356, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 224, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 361, in process_request
    self._do_save(req, attachment)
  File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 474, in _do_save
    for field, message in manipulator.validate_attachment(req, attachment):
  File "build/bdist.linux-i686/egg/tracspamfilter/adapters.py", line 135, in validate_attachment
  File "build/bdist.linux-i686/egg/tracspamfilter/api.py", line 131, in test
  File "build/bdist.linux-i686/egg/tracspamfilter/model.py", line 119, in insert
  File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 47, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 255, in execute
    self.rs = self.con.db.execute(SQL % parms)
TypeError: execute() argument 1 must be string without null bytes, not str

Attachments

Change History

comment:1 Changed 5 years ago by cboos

  • Description modified (diff)
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #4087

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.