Changing bug attribute raises exception, if no attribute was previously read.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
Triaged
|
Low
|
Unassigned |
Bug Description
When a program wants to change attributes of a bug, it must first read one
attribute of the bug; otherwise the program fails with an exception from deep
inside Launchpadlib.
This script triggers the error:
from launchpadlib.
launchpad = Launchpad.
lp_task = launchpad.load(
'https:/
lp_bug = lp_task.bug
#Un-commenting this makes the error go away.
#lp_bug.title
lp_bug.title = "Test bug"
lp_bug.description = "A bug for testing Launchpadlib."
#Fails with:
#Traceback (most recent call last):
# File "lp_problem.py", line 8, in <module>
# lp_bug.title = "Test bug"
# File "/usr/local/
#site-packages/
# if not self.lp_
# File "/usr/local/
#site-packages/
# return self._get_
# File "/usr/local/
#site-packages/
# _get_external_
# if self._wadl_
# File "/usr/local/
#line 452, in get_parameter
# definition = self._find_
# File "/usr/local/
#line 564, in _find_represent
# "Resource is not bound to any representation, and no media "
#wadllib.
# representation, and no media media type was specified.
Changed in launchpadlib: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in bug-repo-syncer: | |
status: | New → Confirmed |
importance: | Undecided → Low |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
@Eike this bug isn't present in bug-repo-syncer - it may be affected by it, but it will be entirely fixed when launchpadlib is fixed - so I'm removing your task. If you want a bug on bug-repo-syncer to track your working around this, I suggest using a separate bug.