tools/check-newsbugs.py fails if a bug is private

Bug #603761 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Vincent Ladeuil

Bug Description

I was running check-newsmerge and it crashed after a while, with a complaint about accessing an Unauthorized resource because the bug was marked private.

1) I don't know what bug this was. The traceback would indicate bug #408841, but that bug isn't private

2) It would be nice if it reported 'this bug was private'. at the very least,
do something about not falling over. Since I can't really just resume it.

Bug 408841 was mentioned in NEWS but is not marked as affecting bzr
Traceback (most recent call last):
  File "tools/check-newsbugs.py", line 70, in <module>
    for task in bug.bug_tasks:
  File "c:\Python26\lib\site-packages\lazr.restfulclient-0.9.20-py2.6.egg\lazr\restfulclient\resource.py", line 643, in __getattr__
    return super(Entry, self).__getattr__(name)
  File "c:\Python26\lib\site-packages\lazr.restfulclient-0.9.20-py2.6.egg\lazr\restfulclient\resource.py", line 305, in __getattr__
    return self.lp_get_parameter(attr)
  File "c:\Python26\lib\site-packages\lazr.restfulclient-0.9.20-py2.6.egg\lazr\restfulclient\resource.py", line 196, in lp_get_parameter
    self._ensure_representation()
  File "c:\Python26\lib\site-packages\lazr.restfulclient-0.9.20-py2.6.egg\lazr\restfulclient\resource.py", line 331, in _ensure_representation
    representation = self._root._browser.get(self._wadl_resource)
  File "c:\Python26\lib\site-packages\lazr.restfulclient-0.9.20-py2.6.egg\lazr\restfulclient\_browser.py", line 287, in get
    response, content = self._request(url, extra_headers=headers)
  File "c:\Python26\lib\site-packages\lazr.restfulclient-0.9.20-py2.6.egg\lazr\restfulclient\_browser.py", line 277, in _request
    raise HTTPError(response, content)
lazr.restfulclient.errors.HTTPError: HTTP Error 401: Unauthorized

Tags: easy
Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 603761] [NEW] tools/check-newsbugs.py fails if a bug is private

This is almost a launchpadlib bug that you get such a poor error, but
it's probably also something we can work around in bzr.

--
Martin

Jelmer Vernooij (jelmer)
tags: added: easy
Revision history for this message
Vincent Ladeuil (vila) wrote :

Fixed while fixing bug #354985

Changed in bzr:
assignee: nobody → Vincent Ladeuil (vila)
milestone: none → 2.3.0
status: Confirmed → 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.