HTTP 401 for valid auth information when talking to couchdb over SSL

Bug #446516 reported by Chad Miller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
desktopcouch
Fix Released
Critical
Chad Miller
desktopcouch (Ubuntu)
Fix Released
Undecided
Chad Miller

Bug Description

2009-10-08 12:32:24,490 - can't create/verify 'u/b12/dc8/22476/chadfoo' couchdb.one.ubuntu.com:443 oauth={'consumer_secret': 'hammertime', 'token': 'QRZp7JB3Tbx7PNswjmp2', 'consumer_key': 'ubuntuone', 'token_secret': 'zc6MfPZ5NQMHtqBLh13Htzg1jbLwSsvpw52XtxDrh3WF6MKrkB20lsZDxPTbBv3GBBS12zf9LD7nhljZ'}
Traceback (most recent call last):
  File "/home/cmiller/work/desktopcouch/trunk/desktopcouch/pair/couchdb_pairing/couchdb_io.py", line 228, in replicate
    target_ssl, target_oauth)
  File "/home/cmiller/work/desktopcouch/trunk/desktopcouch/pair/couchdb_pairing/couchdb_io.py", line 194, in create_database
    oauth_tokens=oauth_tokens)
  File "/home/cmiller/work/desktopcouch/trunk/desktopcouch/records/server.py", line 53, in __init__
    server_class=server_class, oauth_tokens=oauth_tokens)
  File "/home/cmiller/work/desktopcouch/trunk/desktopcouch/records/server_base.py", line 114, in __init__
    if database not in self._server:
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 124, in __contains__
    self.resource.head(validate_dbname(name))
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 981, in head
    return self._request('HEAD', path, headers=headers, **params)
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 1036, in _request
    raise ServerError((status_code, error))
ServerError: (401, '')

Related branches

Revision history for this message
Chad Miller (cmiller) wrote :

The hostname probably shouldn't include an obvious port in producing the OAuth signature.

Chad Miller (cmiller)
tags: added: ubuntuone-karmic
Chad Miller (cmiller)
Changed in desktopcouch:
status: Confirmed → Fix Committed
Chad Miller (cmiller)
Changed in desktopcouch:
status: Fix Committed → Fix Released
Changed in desktopcouch (Ubuntu):
status: New → In Progress
assignee: nobody → Chad Miller (cmiller)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package desktopcouch - 0.4.4-0ubuntu1

---------------
desktopcouch (0.4.4-0ubuntu1) karmic; urgency=low

  * New upstream release.
    + Include doc "txt" and translation files in sources.
    + couchgrid does not correctly retrieve record id (LP: #447512)
    + couchgrid selected_records property is buggy and should be removed for
      karmic if possible (LP: #448357)

desktopcouch (0.4.3-0ubuntu1) karmic; urgency=low

  * Include compulsory-auth INI file to be secure by default.
    (LP: #438800)
  * Make debhelper warn about files not installed to some package.
  * Shorten debhelper install paths using dh_install exlusions.
  * New upstream release:
    + couchgrid did not correctly retrieve record id (LP: #447512)
    + HTTP 401 for valid auth information when talking to couchdb over SSL
      (LP: #446516)
    + Support headless apps. (LP: #428681)
    + desktopcouch-service "ValueError: dictionary update sequence..." on
      stdout(LP: #446511)

 -- Chad MILLER <email address hidden> Mon, 12 Oct 2009 10:17:50 -0400

Changed in desktopcouch (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.