[ZCM] [ZC] 593/ 1 Request "missing query string from login_form (CMF)"

Collector: Zope Bugs, Features, and Patches ... zope-coders@zope.org
Thu, 26 Sep 2002 17:39:31 -0400


Issue #593 Update (Request) "missing query string from login_form (CMF)"
 Status Pending, Zope/bug+solution medium
To followup, visit:
  http://collector.zope.org/Zope/593

==============================================================
= Request - Entry #1 by Anonymous User on Sep 26, 2002 5:39 pm

If a user follows a link with a query string and gets routed through the login_form, the query string disappears when he's re-directed to the original destination upon successful login.

The problem is in the 'getLoginUrl' method of CMFCore/CookieCrumbler.py; it should check for a query string and append it as follows::

233a234,236
>                     if len(req['QUERY_STRING']) > 0:
>                         came_from = '%s?%s' % (came_from, req['QUERY_STRING'])

==============================================================