committing a status-change does not work

Bug #137437 reported by Markus Korn
2
Affects Status Importance Assigned to Milestone
python-launchpad-bugs
Fix Released
Medium
Markus Korn

Bug Description

As pointed out by keescook committing status-changes does not work:
>>> b = Bug(137325)
>>> b.status = "New"
>>> b.commit(force_changes=True, ignore_lp_errors=False)
New Undecided
{'ubuntu.actions.save': '1', 'ubuntu.sourcepackagename': '', 'ubuntu.status-empty-marker': '1', 'ubuntu.status': 'New', 'ubuntu.comment_on_change': ''}
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/markus/prog/bugs/python-launchpad-bugs/main/launchpadbugs/html_bug.py", line 1538, in commit
    result = i.component.commit(force_changes, ignore_lp_errors)
  File "/home/markus/prog/bugs/python-launchpad-bugs/main/launchpadbugs/html_bug.py", line 548, in commit
    i.component.commit(force_changes, ignore_lp_errors)
  File "/home/markus/prog/bugs/python-launchpad-bugs/main/launchpadbugs/html_bug.py", line 367, in commit
    raise ValueError, "There is a problem with the information you entered. Please fix it and try again."
ValueError: There is a problem with the information you entered. Please fix it and try again.

Revision history for this message
Markus Korn (thekorn) wrote :

I'm working on this, set importance to medium as it breaks parts of py-lp-bugs

Changed in python-launchpad-bugs:
assignee: nobody → thekorn
importance: Undecided → Medium
Revision history for this message
Markus Korn (thekorn) wrote :

This patch against py-lp-bugs.main r48 should solve this issue, it needs more testing on different bugreports before committing to main.

Markus

Revision history for this message
Daniel Holbach (dholbach) wrote :

Patch uploaded - thanks a lot Markus!

Changed in python-launchpad-bugs:
status: New → Fix Released
Revision history for this message
Kees Cook (kees) wrote :

Markus, thanks! This fixed the problems I was having. Nice. :)

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.