[ZCM] [ZC] 593/ 2 Reject "missing query string from login_form (CMF)"

Collector: Zope Bugs, Features, and Patches ... zope-coders@zope.org
Fri, 27 Sep 2002 07:12:38 -0400


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

==============================================================
= Reject - Entry #2 by ajung on Sep 27, 2002 7:12 am

 Status: Pending => Rejected

Please use the CMF collector for CMF related issues:
http://collector.zope.org/CMF

-aj

________________________________________
= 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'])

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