{"action":"created","issue":{"url":"https://api.github.com/repos/djc/couchdb-python/issues/309","repository_url":"https://api.github.com/repos/djc/couchdb-python","labels_url":"https://api.github.com/repos/djc/couchdb-python/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/djc/couchdb-python/issues/309/comments","events_url":"https://api.github.com/repos/djc/couchdb-python/issues/309/events","html_url":"https://github.com/djc/couchdb-python/issues/309","id":185874170,"number":309,"title":"Not url-encoding doc IDs in update handler call","user":{"login":"giftig","id":2862039,"avatar_url":"https://avatars.githubusercontent.com/u/2862039?v=3","gravatar_id":"","url":"https://api.github.com/users/giftig","html_url":"https://github.com/giftig","followers_url":"https://api.github.com/users/giftig/followers","following_url":"https://api.github.com/users/giftig/following{/other_user}","gists_url":"https://api.github.com/users/giftig/gists{/gist_id}","starred_url":"https://api.github.com/users/giftig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giftig/subscriptions","organizations_url":"https://api.github.com/users/giftig/orgs","repos_url":"https://api.github.com/users/giftig/repos","events_url":"https://api.github.com/users/giftig/events{/privacy}","received_events_url":"https://api.github.com/users/giftig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-10-28T09:08:31Z","updated_at":"2016-12-05T09:11:02Z","closed_at":null,"body":"I'm doing a call like this:\n\n```\n            db.update_doc(\n                const.RECORD_EXTERNAL_ID_UPDATE_HANDLER,\n                docid=doc_id,\n                body=json.dumps({\n                  'something': 'data needed by my update handler'\n                })\n            )\n```\n\n...where doc_id is a string like `REF-08911/2-0001`\n\nThis is resulting in couch telling me 'invalid path', because the library isn't urlencoding doc_id before putting it into the URL used to hit couchdb. I've had to manually `urllib.quote` it, which imo shouldn't be necessary because the library should be transparent about where it's putting this data, and should do it itself since it knows it's putting it into a URL.\n\nApologies if this is an old / duplicate, I'm using version 1.0 of the library and haven't yet attempted to reproduce it with 1.1.\n"},"comment":{"url":"https://api.github.com/repos/djc/couchdb-python/issues/comments/264801659","html_url":"https://github.com/djc/couchdb-python/issues/309#issuecomment-264801659","issue_url":"https://api.github.com/repos/djc/couchdb-python/issues/309","id":264801659,"user":{"login":"giftig","id":2862039,"avatar_url":"https://avatars.githubusercontent.com/u/2862039?v=3","gravatar_id":"","url":"https://api.github.com/users/giftig","html_url":"https://github.com/giftig","followers_url":"https://api.github.com/users/giftig/followers","following_url":"https://api.github.com/users/giftig/following{/other_user}","gists_url":"https://api.github.com/users/giftig/gists{/gist_id}","starred_url":"https://api.github.com/users/giftig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giftig/subscriptions","organizations_url":"https://api.github.com/users/giftig/orgs","repos_url":"https://api.github.com/users/giftig/repos","events_url":"https://api.github.com/users/giftig/events{/privacy}","received_events_url":"https://api.github.com/users/giftig/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T09:11:02Z","updated_at":"2016-12-05T09:11:02Z","body":"FTR it took a while but I've heard back from Cloudant engineers and it seems the issue may in fact be in the nginx proxy my company uses to talk to Cloudant, as they say they can't reproduce the issue their end. So it seems the egg may be on my (or my colleague's) face after all."}}
{"actor":{"display_login":"giftig"}}