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
Change History
01/30/08 03:45:34: Modified by guest
- attachment session_auth_conflict_example.py added.
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.


example of this bug