{"action":"closed","issue":{"url":"https://api.github.com/repos/histrio/py-couchdb/issues/53","labels_url":"https://api.github.com/repos/histrio/py-couchdb/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/histrio/py-couchdb/issues/53/comments","events_url":"https://api.github.com/repos/histrio/py-couchdb/issues/53/events","html_url":"https://github.com/histrio/py-couchdb/issues/53","id":90629287,"number":53,"title":"Saving a design document fails due to malformed URL","user":{"login":"internaut","id":1526321,"avatar_url":"https://avatars.githubusercontent.com/u/1526321?v=3","gravatar_id":"","url":"https://api.github.com/users/internaut","html_url":"https://github.com/internaut","followers_url":"https://api.github.com/users/internaut/followers","following_url":"https://api.github.com/users/internaut/following{/other_user}","gists_url":"https://api.github.com/users/internaut/gists{/gist_id}","starred_url":"https://api.github.com/users/internaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/internaut/subscriptions","organizations_url":"https://api.github.com/users/internaut/orgs","repos_url":"https://api.github.com/users/internaut/repos","events_url":"https://api.github.com/users/internaut/events{/privacy}","received_events_url":"https://api.github.com/users/internaut/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-24T09:57:01Z","updated_at":"2015-08-27T19:34:18Z","closed_at":"2015-08-27T19:34:18Z","body":"I was trying to upload a simple design document with the document ID \"_design/browse\". It failed with\r\n\r\n```\r\n  File \"/usr/local/lib/python3.4/dist-packages/pycouchdb/client.py\", line 225, in save\r\n    if \"rev\" in result and result[\"rev\"] is not None:\r\nTypeError: argument of type 'NoneType' is not iterable\r\n```\r\n\r\nSaving other documents (non-design documents) works without problems. Deleting, creating a DB, etc. works too, so it is not a problem related to permissions (I'm connected as admin user).\r\n\r\nAfter further investigation, I found out that the response from the server is a 404 document not found error. I further found out that it was trying to save the document to the URL `http://127.0.0.1:8080/couchdb/bsdp_v2/_design%2Fbrowse` which I guess reveals the error. I think it should be `http://127.0.0.1:8080/couchdb/bsdp_v2/_design/browse`, so slashes shouldn't be URL-encoded (at least not in the case of design documents.\r\n\r\nI'm using pycouchdb 1.12."}}