cache entries get corrupted and lead to hard to diagnose failures

Bug #799271 reported by Soren Hansen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpadlib
Triaged
High
Unassigned

Bug Description

As an example, the landing_targets_collection_link of a branch object points to a json object holding a list of dicts that have no web_link key.

Revision history for this message
Soren Hansen (soren) wrote :

Hm... At least that's what I see when it's been processed through launchpadlib..

>>> lp.branches.getByUniqueName(unique_name='~ttx/nova/lp791627').landing_targets[0].web_link
  File "<console>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py", line 673, in __getattr__
    return super(Entry, self).__getattr__(name)
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py", line 319, in __getattr__
    % (self.__class__.__name__, attr))
AttributeError: 'Entry' object has no attribute 'web_link'

However, if accessing https://api.launchpad.net/1.0/~ttx/nova/lp791627 with curl, I do see landing_targets_collection_link pointing to https://api.launchpad.net/1.0/~ttx/nova/lp791627/landing_targets, which in turn contains an element with the web_link key. I could have sworn I saw it return an element without this key a bit earlier, though. :-/

Gary Poster (gary)
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Soren Hansen (soren) wrote :

Apparently, this was caused by a stale cache of the WSDL file. Clearing the ~/.launchpadlib cache fixed this entirely.

Changed in launchpad:
status: Triaged → Invalid
Changed in launchpad:
status: Invalid → Triaged
affects: launchpad → launchpadlib
summary: - branch_merge_proposal_collection entries are incomplete
+ cache entries get corrupted and lead to hard to diagnose failures
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.