grab-attachments doesn't work with private bugs anymore
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.
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/
main()
File "/usr/bin/
f = a.data.open()
File "/usr/lib/
return HostedFileBuffe
File "/usr/lib/
self.url, return_
File "/usr/lib/
response, content = self._request(url, extra_headers=
File "/usr/lib/
str(url), method=method, body=data, headers=headers)
File "/usr/lib/
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/lib/
redirections, cachekey)
File "/usr/lib/
(response, content) = self.request(
File "/usr/lib/
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/lib/
redirections, cachekey)
File "/usr/lib/
(response, content) = self._conn_
File "/usr/lib/
conn, request_uri, method, body, headers)
File "/usr/lib/
raise ServerNotFoundE
httplib2.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: ubuntu-dev-tools 0.99
ProcVersionSign
Uname: Linux 2.6.32-25-generic x86_64
Architecture: amd64
CheckboxSubmission: 58c98fa50658f38
CheckboxSystem: bb422ca46d02494
Date: Mon Nov 15 10:02:56 2010
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
PackageArchitec
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: ubuntu-dev-tools
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.