Merge "appengine: more fixes"

This commit is contained in:
Brad Fitzpatrick 2013-08-13 03:56:55 +00:00 committed by Gerrit Code Review
commit 5f5e8fcee4
2 changed files with 10 additions and 5 deletions

View File

@ -84,17 +84,17 @@ func (c *ConfigParser) ReadFile(path string) (m map[string]interface{}, err erro
// Decodes and evaluates a json config file, watching for include cycles.
func (c *ConfigParser) recursiveReadJSON(configPath string) (decodedObject map[string]interface{}, err error) {
configPath, err = filepath.Abs(configPath)
absConfigPath, err := filepath.Abs(configPath)
if err != nil {
return nil, fmt.Errorf("Failed to expand absolute path for %s", configPath)
}
if c.touchedFiles[configPath] {
if c.touchedFiles[absConfigPath] {
return nil, fmt.Errorf("ConfigParser include cycle detected reading config: %v",
configPath)
absConfigPath)
}
c.touchedFiles[configPath] = true
c.touchedFiles[absConfigPath] = true
c.includeStack.Push(configPath)
c.includeStack.Push(absConfigPath)
defer c.includeStack.Pop()
var f File

View File

@ -8,6 +8,7 @@
"handlerArgs": {
"ownerName": "TODO:AppEngineOwnerName",
"blobRoot": "/bs-and-maybe-also-index/",
"statusRoot": "/status/",
"searchRoot": "/my-search/",
"stealth": false
}
@ -20,6 +21,10 @@
}
},
"/status/": {
"handler": "status"
},
"/bs-and-maybe-also-index/": {
"handler": "storage-cond",
"handlerArgs": {