From: OpenSG <tr...@op...> - 2013-03-12 07:59:32
|
#198: Problems with uploading pictures ------------------------+--------------------------------------------------- Reporter: reneweller | Owner: unassigned Type: defect | Status: new Priority: major | Milestone: Close or reassign old tickets Component: System | Version: Keywords: | ------------------------+--------------------------------------------------- Changes (by vossg): * milestone: => Close or reassign old tickets Old description: > I created the pages http://opensg.vrsource.org/trac/wiki/Gallery/CollDet > and http://opensg.vrsource.org/trac/wiki/Gallery/CollBench. > > Every time I try to upload a picture (gif,png,jpg) i get the error > message listed below. > > The upload of other files seems to work (I uploaded an obj-file to the > CollDet-directory for testing. However, now I dont`t know how to delete > the file :-). But this is another problem.). > > > > Error Message > > > Traceback (most recent call last): > > File "/home/trac/installed/lib/python2.4/site- > packages/trac/web/main.py", line 335, in dispatch_request > > dispatcher.dispatch(req) > > File "/home/trac/installed/lib/python2.4/site- > packages/trac/web/main.py", line 220, in dispatch > > resp = chosen_handler.process_request(req) > > File "/home/trac/installed/lib/python2.4/site- > packages/trac/attachment.py", line 361, in process_request > > self._do_save(req, attachment) > > File "/home/trac/installed/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 122, > in validate_attachment > > File "build/bdist.linux-i686/egg/tracspamfilter/api.py", line 130, in > test > > File "build/bdist.linux-i686/egg/tracspamfilter/model.py", line 119, in > insert > > File "/home/trac/installed/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 New description: I created the pages http://opensg.vrsource.org/trac/wiki/Gallery/CollDet and http://opensg.vrsource.org/trac/wiki/Gallery/CollBench. Every time I try to upload a picture (gif,png,jpg) i get the error message listed below. The upload of other files seems to work (I uploaded an obj-file to the CollDet-directory for testing. However, now I dont`t know how to delete the file :-). But this is another problem.). Error Message Traceback (most recent call last): File "/home/trac/installed/lib/python2.4/site- packages/trac/web/main.py", line 335, in dispatch_request dispatcher.dispatch(req) File "/home/trac/installed/lib/python2.4/site- packages/trac/web/main.py", line 220, in dispatch resp = chosen_handler.process_request(req) File "/home/trac/installed/lib/python2.4/site- packages/trac/attachment.py", line 361, in process_request self._do_save(req, attachment) File "/home/trac/installed/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 122, in validate_attachment File "build/bdist.linux-i686/egg/tracspamfilter/api.py", line 130, in test File "build/bdist.linux-i686/egg/tracspamfilter/model.py", line 119, in insert File "/home/trac/installed/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 -- -- Ticket URL: <http://www.opensg.org/ticket/198#comment:1> OpenSG <http://external.lite3d.com/opensg> OpenSG Project |