Ticket #796 (defect)
Opened 4 months ago
Last modified 3 months ago
Problems with script name != "" and 'request.dispatch' config entry
Status: closed (duplicate)
| Reported by: | michele | Assigned to: | rdelon |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | CherryPy code | Keywords: | |
| Cc: |
I'm using a custom request dispatcher and enabling it with a 'request.dispatch' config entry inside the application config.
All works well until you try to mount that application at a different script name than the default.
If you use a script name like "/foo" you can reach your application at "/foo/" but not at "/foo" since trail in get_resource [1] is "" and there isn't any config entry at self.app.config for "" so CP defaults to the default dispatcher.
Note that to exercise this bug you need a dispatcher with a sufficiently different semantic that that used by CP otherwise the default dispatcher that kicks in may not raise a 404 error.
[1] http://www.cherrypy.org/browser/branches/cherrypy-3.0.x/cherrypy/_cprequest.py#L610
Change History
04/26/08 19:21:16: Modified by fumanchu
- status changed from new to closed.
- resolution set to duplicate.


Duplicate of #737. Fixed in trunk and 3.0.x branch.