[Bug 660549] Re: osc forgets authentication credentials

dino99 660549 at bugs.launchpad.net
Sun May 3 13:29:00 UTC 2015


Support for this version has ended

** Changed in: python2.6 (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.6 in Ubuntu.
https://bugs.launchpad.net/bugs/660549

Title:
  osc forgets authentication credentials

Status in python2.6 package in Ubuntu:
  Invalid

Bug description:
  Binary package hint: osc

  I've seen this behaviour with both checkout and commit. The data used
  for authentication is lost or at least not used where needed. Commit
  fails entirely. In checkout only the first package is retrieved
  properly. The second one fails due to missing authorization.

  The sequence for package retrieval seems to be:
  1. request PKG/_meta
  2. receive 401: Unauthorized
  3. retry with authentication header
  4. receive _meta
  5. request first file
  6. receive 401: Unauthorized
  7. retry with authentication header

  ... and so on. The first package in the OBS repository is retrieved
  correctly, but the second one fails. The output looks like this:

  --- snip ---
  plop:/tmp/obsdir% osc checkout myrepo:yepyep
  A    myrepo:yepyep
  A    myrepo:yepyep/whatnow
  A    myrepo:yepyep/whatnow/whatnow_0.1.0.dsc
  A    myrepo:yepyep/whatnow/whatnow_0.1.0.tar.gz
  Server returned an error: HTTP Error 401: basic auth failed
  Traceback (most recent call last):
    File "/usr/bin/osc", line 21, in <module>
      r = babysitter.run(osccli)
    File "/usr/lib/pymodules/python2.6/osc/babysitter.py", line 107, in run
      body = e.read()
  AttributeError: 'HTTPError' object has no attribute 'read'
  --- snap ---

  However, if I request an update, I get the next package in line. The
  package following that fails again, though:

  --- snip ---
  % osc update
  Updating whatnow
  At revision 4.
  checking out new package qtie
  A    qtie
  A    qtie/quiteobs_0.0.1-3.dsc
  A    qtie/quiteobs_0.0.1-3.tar.gz
  checking out new package qutie
  Server returned an error: HTTP Error 401: basic auth failed
  (Same traceback as above)
  --- snap ---

  For some reason the third package can not be retrieved at all. So -
  for whatever reason osc forgets the authorization it used for the
  first package, but only after it has requested the second file's
  metadata.

  If I do "osc commit", the final package upload fails with the same
  error for missing authorization credentials.

  This works on lucid. I tried with the version from lucid, but that
  still breaks on maverick, which makes me suspect the underlying reason
  for this failure may be in some of the python modules. I have attached
  a sanitised log from "osc checkout --http-debug"; the address of the
  repository has been changed and the HTTP authorization code in sent
  headers has been overwritten.

  Because the bug shows up with osc, most users probably will look into
  its bugs first. Please reassign as needed.

  Thank you.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.10
  Package: osc 0.127-1
  ProcVersionSignature: Ubuntu 2.6.35-22.34-generic 2.6.35.4
  Uname: Linux 2.6.35-22-generic x86_64
  Architecture: amd64
  CheckboxSubmission: 127dcf7fd180478e42eb14d21bc4676b
  CheckboxSystem: d00f84de8a555815fa1c4660280da308
  Date: Thu Oct 14 16:24:09 2010
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=en_US:en
   LC_CTYPE=fi_FI.utf8
   PATH=(custom, user)
   LANG=C
   SHELL=/usr/bin/zsh
  SourcePackage: osc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/660549/+subscriptions



More information about the foundations-bugs mailing list