Ticket #780 (defect)
Opened 5 months ago
session_auth blocks RoutesDispatcher
Status: new
| Reported by: | guest | Assigned to: | rdelon |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | sessions | Keywords: | |
| Cc: |
tools.session_auth has a problem to use with RoutesDispatcher?.
1. Routes maps "secure/subpage/*subpath" to controller. "*subpath" is free part.
2. Open url "/secure/subpage/1" in your web browser.
3. Login screen will be shown.
4. Click a button to POST to "do_login" with parameters.
Then...
File "[cp_installed_path]/cherrypy/lib/cptools.py", line 268, in run
return self.do_login(**request.params)
TypeError: do_login() got an unexpected keyword argument 'id'
Some dispatchers and tools like RoutesDispatcher? injects extra entories into cherypy.request.params. But session_auth can't accept an unexpected parameters.
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


example of this bug