[Bug 457674] New: trac version 11.2 is not compatible with python 2.6
https://bugzilla.novell.com/show_bug.cgi?id=457674 Summary: trac version 11.2 is not compatible with python 2.6 Product: openSUSE 11.1 Version: RC 1 Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: adam@redcondor.com QAContact: qa@suse.de Found By: Beta-Customer You cannot add attachments or edit milestones (and probably many other problems) with trac 11.2 and python 2.6 shipped with OpenSuSE 11.1. here's the my email with the trac developers. =================================================== adam@redcondor.com wrote:
the python 2.6 changelog entry:
------------------
The cgi module will now read variables from the query string of an HTTP POST request. This makes it possible to use form actions with URLs that include query strings such as “/cgi-bin/add.py?category=1”. (Contributed by Alexandre Fiori and Nubis; issue 1817.)
The parse_qs() and parse_qsl() functions have been relocated from the cgi module to the urlparse module. The versions still available in the cgi module will trigger PendingDeprecationWarning messages in 2.6 (issue 600362).
------------------
seems to break attachments for me. the query string is
http://XXX/trac/yyy/attachment/wiki/APag/?action=new&attachfilebutton=Attach+file
and "action" is, of course, also a hidden posted with the form. This causes
attachment.py (370): if action == 'new':
to fail, because req.args.get('action', 'view') returns an array [q'new', q'new'].
I'm wondering if I've missed some configuration that is supposed to clear the query string or otherwise screwed something up. I'm using trac-0.11.2 with python-2.6.0 on apache2-2.2.10 with apache2- mod_python-3.3.1 (the openSuSE-11.1 RC1 packages)
I can provide patches if I'm not doing something wrong.
This is a serious problem, I can reproduce it and it's as you said. Would you mind creating a ticket for it? (0.11.3). -- Christian ======================================================================= I am going to try to roll up all the cases and submit a patch to the trac team, but, as you see, they slate this for 11.3. I know this probably just gets release noted, but at least you know. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457674
User pth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=457674#c1
Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=457674
User gernot@hillier.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=457674#c2
Gernot Hillier
https://bugzilla.novell.com/show_bug.cgi?id=457674
User jmatejek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=457674#c3
Jan Matejek
participants (1)
-
bugzilla_noreply@novell.com