Ticket #264 (closed defect: worksforme)
Paste#static document_root fails silently when '..' in path
| Reported by: | derek | Owned by: | ianb |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4.1 |
| Component: | deploy | Version: | svn-trunk |
| Severity: | normal | Keywords: | |
| Cc: | derek |
Description
I have the following in my ini:
#####
[app:main]
use = egg:Paste#static
document_root = %(here)s/../var/html
#####
This causes 404s when the file is present in ../var/html.
Here is the paste log for a request:
<snip ip address> - - [09/May/2008:15:45:38 -0400] "GET /oit/art/share-it-content-management-system/index.html HTTP/1.1" 404 - "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13"
and here is the ls output that reassures me that index.html is there:
]$ ls ../var/html/oit/art/share-it-content-management-system/index.html ../var/html/oit/art/share-it-content-management-system/index.html
This is against paste deploy trunk and paste script trunk, Revision: 7340 .
paste serve was run thusly:
$ sudo ../bin/paster serve publisher.ini
pwd reveals that all of this was done in:
/srv/adom/etc
I believe that providing an absolute path fails similarly, though I haven't tried that for two days, so I might be misremembering.
