Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #780 (defect)

Opened 7 months ago

Last modified 2 months ago

session_auth fails when request.params is not empty

Status: closed (fixed)

Reported by: guest Assigned to: rdelon
Priority: normal Milestone:
Component: sessions Keywords:
Cc:

tools.session_auth will throw an error whenever a previous tool or the dispatcher adds an entry to request.params. In particular, this happens when using the RoutesDispatcher?, but could also happen with anything that modifies request.params before session_auth.

  File "/usr/lib/python2.5/site-packages/cherrypy/lib/cptools.py", line 269, in run
    return self.do_login(**request.params)
TypeError: do_login() got an unexpected keyword argument 'test'

Attachments

session_auth_conflict_example.py (2.8 kB) - added by guest on 01/30/08 03:45:34.
example of this bug
cptools.py.patch (1.3 kB) - added by guest on 01/31/08 05:00:37.
patch to avoid this problem

Change History

01/30/08 03:45:34: Modified by guest

  • attachment session_auth_conflict_example.py added.

example of this bug

01/31/08 05:00:37: Modified by guest

  • attachment cptools.py.patch added.

patch to avoid this problem

07/09/08 00:43:08: Modified by nick125

  • description changed.
  • summary changed from session_auth blocks RoutesDispatcher to session_auth fails when request.params is not empty.

07/09/08 00:56:54: Modified by nick125

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in r2016.

Hosted by WebFaction

Log in as guest/cpguest to create tickets