> On Dec 9, 12:15 am, Christian Boos <[email protected]> wrote: >> [email protected] 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... >>> 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).
Thanks, I've attached a patch that hopefully fixes the problem you found and two other minor issues. Are you able to verify that this patch indeed fixes your problem? http://trac.edgewall.org/attachment/ticket/7876/trac-py26.patch http://trac.edgewall.org/ticket/7876#comment:2 / Jonas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en -~----------~----~----~----~------~----~------~--~---
