-
Notifications
You must be signed in to change notification settings - Fork 15
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
Document IDs containing / are unretrievable #268
Comments
Note: other special characters like |
Thanks for the report! I'll try to get to this as quickly as I can. In the meantime, if this is urgent, and you're so inclined, feel free to submit a PR. |
I'm not able to reproduce the behavior you've described. When passing Is it possible that you could create minimal code to reproduce the error condition? |
Hi @flimzy, Sure - try this code:
|
Thank you very much! And my apologies for the delay in responding. A fix is forthcoming. |
v3.2.6 should fix this. Please let me know if you discover this not to be the case! |
@flimzy Sorry for the slow response! It works for me too. Thanks for all the hard work!! |
If you store a document with an ID that contains one or more
/
characters, then it won't be retrievable later with the same ID.To replicate: put a document under ID
https://example.com
, then try to retrieve it later. You'll get an error after doingrow.ScanDoc
telling you that it's missing.Note: This works correctly in v2.0.0. but not in v3 or v4. I used CouchDB v3.1.0.
It looks like an issue with the URL encoding. From the CouchDB logs, it looks like Kivik v2 converts
https://example.com
tohttps%3A%2F%2Fexample.com
for both Put and Get requests. In Kivik v3 and newer,https://example.com
gets converted tohttps:%2F%2Fexample.com
for the Put, but for the Get it converts it tohttps:%252F%252Fexample.com
which does not URL decode back to the original document ID.Let me know if I can provide any more info. Thanks!
The text was updated successfully, but these errors were encountered: