Trac error uploading attachment

0 views
Skip to first unread message

gke...@gmail.com

unread,
Jan 18, 2007, 9:12:58 PM1/18/07
to Django developers
I'm trying to add an attachment to a ticket:
http://code.djangoproject.com/attachment/ticket/3099?action=new

I'm getting the following error:

Oops...
Trac detected an internal error:

If you think this really should work and you can reproduce it, you
should consider reporting this problem to the Trac team.

Go to http://trac.edgewall.org/ and create a new ticket where you
describe the problem, how to reproduce it. Don't forget to include the
Python traceback found below.

TracGuide - The Trac User and Administration Guide
Python Traceback

Traceback (most recent call last):
File "/home/trac/new-djangoproject-trac-test/trac/web/main.py", line
387, in dispatch_request
File "/home/trac/new-djangoproject-trac-test/trac/web/main.py", line
237, in dispatch
File "/home/trac/new-djangoproject-trac-test/trac/attachment.py",
line 361, in process_request
File "/home/trac/new-djangoproject-trac-test/trac/attachment.py",
line 475, in _do_save
File "build/bdist.linux-i686/egg/tracspamfilter/adapters.py", line
130, 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 "/home/trac/new-djangoproject-trac-test/trac/db/util.py", line
50, in execute
File "/home/trac/new-djangoproject-trac-test/trac/db/util.py", line
50, in execute
File "/usr/lib/python2.3/site-packages/pyPgSQL/PgSQL.py", line 3083,
in execute
parms = _quoteall(self.__unicodeConvert(parms[0]))
File "/usr/lib/python2.3/site-packages/pyPgSQL/PgSQL.py", line 2300,
in _quoteall
t = tuple(map(_quote, vdict))
File "/usr/lib/python2.3/site-packages/pyPgSQL/PgSQL.py", line 2268,
in _quote
return PgQuoteString(value)
TypeError: PgQuoteString() argument 1 must be string without null
bytes, not str

Jacob Kaplan-Moss

unread,
Jan 18, 2007, 11:23:55 PM1/18/07
to django-d...@googlegroups.com
On 1/18/07 8:12 PM, gke...@gmail.com wrote:
> I'm trying to add an attachment to a ticket:
> http://code.djangoproject.com/attachment/ticket/3099?action=new
>
> I'm getting the following error:

Yeah, I'm getting that too. I'll try to fix it if I can figure out what's up.

Jacob

Michael Radziej

unread,
Jan 19, 2007, 3:19:17 AM1/19/07
to django-d...@googlegroups.com
Jacob Kaplan-Moss:

> Yeah, I'm getting that too. I'll try to fix it if I can figure out
> what's up.

Seems that the python database module tries to apply character
recoding from unicode to a binary stream.

Michael

--
noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -
Tel +49-911-9352-0 - Fax +49-911-9352-100

http://www.noris.de - The IT-Outsourcing Company

Reply all
Reply to author
Forward
0 new messages