grab-attachments doesn't work with private bugs anymore

Bug #675576 reported by Peter Petrakis
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: ubuntu-dev-tools

This appears to be a regression. I work alot on the OEM side and
have to deal with private bugs almost exclusively. Some time after a launchpad
update, I found that grab-attachments ceased to function. At first I thought
it was my system and ruled that out, then I brought it to IS's attention to explain
to me the use of lplibrarian.internal why it's no longer accessible.

Here's the trace, the same tool works perfectly fine with public bugs on
the same system. Yes I have credentials to access this bug.

$ grab-attachments 674778
Traceback (most recent call last):
  File "/usr/bin/grab-attachments", line 62, in <module>
    main()
  File "/usr/bin/grab-attachments", line 49, in main
    f = a.data.open()
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/resource.py", line 357, in open
    return HostedFileBuffer(self, mode, content_type, filename)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/resource.py", line 948, in __init__
    self.url, return_response=True)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py", line 316, in get
    response, content = self._request(url, extra_headers=headers)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py", line 260, in _request
    str(url), method=method, body=data, headers=headers)
  File "/usr/lib/pymodules/python2.6/httplib2/__init__.py", line 1129, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py", line 154, in _request
    redirections, cachekey)
  File "/usr/lib/pymodules/python2.6/httplib2/__init__.py", line 946, in _request
    (response, content) = self.request(location, redirect_method, body=body, headers = headers, redirections = redirections - 1)
  File "/usr/lib/pymodules/python2.6/httplib2/__init__.py", line 1129, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py", line 154, in _request
    redirections, cachekey)
  File "/usr/lib/pymodules/python2.6/httplib2/__init__.py", line 901, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py", line 159, in _conn_request
    conn, request_uri, method, body, headers)
  File "/usr/lib/pymodules/python2.6/httplib2/__init__.py", line 865, in _conn_request
    raise ServerNotFoundError("Unable to find the server at %s" % conn.host)
httplib2.ServerNotFoundError: Unable to find the server at lplibrarian.internal

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: ubuntu-dev-tools 0.99
ProcVersionSignature: Ubuntu 2.6.32-25.45-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic x86_64
Architecture: amd64
CheckboxSubmission: 58c98fa50658f383166e88755ff68e92
CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f
Date: Mon Nov 15 10:02:56 2010
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: ubuntu-dev-tools

Revision history for this message
Peter Petrakis (peter-petrakis) wrote :
Revision history for this message
Michael Bienia (geser) wrote :

This is not a bug in the script itself but a current limitition in LP. It's currently not possible to access attachments from private bugs over the LP API. But it's being worked on (bug 395960).

Till this is fixed the script could get modified to not crash on private bugs anymore.

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Triaged
importance: Undecided → Low
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.