[ZCM] [ZC] 2288/ 2 Resolve "BaseRequest should not quote @ and + in URL steps"

"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Sun, 04 Mar 2007 15:52:51 -0500
Newsgroups gmane.comp.web.zope.devel.collector-monitor
Message-ID <[email protected]>
Issue #2288 Update (Resolve) "BaseRequest should not quote @ and + in URL steps"
 Status Resolved, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/2288

==============================================================
= Resolve - Entry #2 by mj on Mar 4, 2007 3:52 pm

 Status: Accepted => Resolved

Fixed on the trunk and backported to the 2.10 and 2.9 branches.
________________________________________
= Request - Entry #1 by mj on Mar 3, 2007 2:41 pm

 Status: Pending => Accepted

 Supporters added: mj

In both BaseRequest and HTTPRequest URL path elements are quoted, but '@' and '+' are not included in the safe characters (not to be quoted). Zope3's HTTPRequest does not quote these characters. Note that this is the URL returned by request.getURL().

Consequence of this is that various Zope3 components that look for view names in the request URL fail because they expect '@' and '+' to not be quoted. In particular, menu items are not marked as selected when the URL ends with their action but is prepended by '++view++' or '@@'.
==============================================================