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

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

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

Hosted by WebFaction

Log in as guest/cpguest to create tickets