Ticket #264 (closed defect: worksforme)

Opened 4 years ago

Last modified 4 years ago

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.

Change History

Changed 4 years ago by derek

  • status changed from new to closed
  • resolution set to worksforme

Discovered I need trunk of Paste, not PasteDeploy? or PasteScript?. This was fixed several weeks ago in response to #244. Sorry for the noise.

Note: See TracTickets for help on using tickets.