mikeal/node.couchapp.js — Issue #39: Couchapp adds %5C to the start of every file
Author: mwmwmw
Created: 2012-01-18 03:22:53+00:00
State: open

After creating a new couchapp boiler, and pushing it to the server, I kept getting "file not found" errors.

I figured (and still do) that this is a virgin couch problem.. but I was able to sort out that the reason why the files were not found was because there was an escaped HTML "\" in the filename.

so if I typed in host:5984\myapp\_design\myapp\index.html // file not founderror

http:\\dev.thumperdaffodil.com\couch\2.jpg

i'd get an error

if I added a %5c to the url, I'd get the file

host:5984\myapp\_design\myapp\%5cindex.html // works

http:\\dev.thumperdaffodil.com\couch\1.jpg

I'm using the latest version of Node (0.6.7) and the most recent version of Couchapp (0.9.0) and CouchDB version 1.1.1

Any thoughts?