Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"put-document" attachment with "/" in filename? #47

Open
dehubbed opened this issue Feb 22, 2012 · 2 comments
Open

"put-document" attachment with "/" in filename? #47

dehubbed opened this issue Feb 22, 2012 · 2 comments

Comments

@dehubbed
Copy link

attachments in CouchDB can have a "/" in their filename AFAIK and this seems to work with update-attachment. however when supplying attachments up front with the put-document function this doesn't seem to work. might be a CouchDB limitation though, not too sure.

@boxxxie
Copy link

boxxxie commented Jan 3, 2013

it's not a couchdb limitation. i can do this with curl and node.couchapp.

@marianoguerra
Copy link

it may be that put-document url-encodes the slashes?

this behavior is generating me problems since my couchdb is behind a apache proxy that doesn't set "AllowEncodedSlashes On" and then it get this behavior:

With the default value, Off, such URLs are refused with a 404 (Not found) error.

then when I use put-document to put a design document it encodes the slash and I get a 404 from apache without reaching couchdb.

not encoding slashes would be the solution, but I don't know if it would break something else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants