Ticket #430 (defect)
Opened 3 years ago
Last modified 3 years ago
cptools.serveFile shouldn't guess rootdir
Status: closed (fixed)
| Reported by: | fumanchu | Assigned to: | fumanchu |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.2-beta |
| Component: | CherryPy code | Keywords: | |
| Cc: |
There has been some debate in the past as to where the implicit root of cptools.serveFile (and therefore staticfilter) should be. Now that we're providing more support for multiple apps in CP, even the current guess (cherrypy.root.__module__) is moot, and serveFile should simply raise a ValueError? if given a path that isn't absolute. StaticFilter? deployments, therefore, would be required to possess a static_filter.root config entry.
Change History
01/02/06 15:13:13: Modified by fumanchu
- status changed from new to closed.
- resolution set to fixed.


Fixed in [909].