Incorrect urljoin when getting couchdb user
mhora opened this issue · 2 comments
mhora commented
It appears that replacing urljoin by urllib.parse.urljoin causes a problem when getting a user from couchdb. I have found that it is caused by urllib handling the colon in typical user id e.g. org.couchdb.user:username
>>> from urlparse import urljoin
>>> urljoin('http://example.com', 'org.couchdb.user:username')
'org.couchdb.user:username'
The same applies to python 3.x
This leads to
requests.exceptions.InvalidSchema: No connection adapters were found for 'org.couchdb.user:username'
To me it looks like urllib problem as I would say a colon is an allowed character.
mhora commented
Thanks a lot for such a quick action