[lp-set-dup] "You can't mark a bug as a duplicate of itself."

Bug #636789 reported by Rolf Leggewie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lptools (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

Binary package hint: devscripts

I am running an up-to-date lucid system. I had originally set bug 341688 as a dupe to bug 360893, but then wanted to reverse that relation. I don't really understand why the script is trying at the end to set 360893 as a dupe to itself.

$ tsocks lp-set-dup 360893 341688
Setting up Launchpad
Launchpad setup complete
Processing 341688
Found 3 dups for 341688
Would set the following bugs as duplicates of 360893: 342275 351500 352447 341688
Proceed? [y/N]y
Marking bug 342275 as a duplicate of 360893
Marking bug 351500 as a duplicate of 360893
Marking bug 352447 as a duplicate of 360893
Marking bug 341688 as a duplicate of 360893
$ tsocks lp-set-dup 341688 360893
Setting up Launchpad
Launchpad setup complete
Bug 341688 is a duplicate of 360893; would you like to use 360893 as the new main bug instead? [y/N]y
Processing 360893
Found 4 dups for 360893
Would set the following bugs as duplicates of 360893: 341688 342275 351500 352447 360893
Proceed? [y/N]y
Marking bug 341688 as a duplicate of 360893
Marking bug 342275 as a duplicate of 360893
Marking bug 351500 as a duplicate of 360893
Marking bug 352447 as a duplicate of 360893
Marking bug 360893 as a duplicate of 360893
Traceback (most recent call last):
  File "/usr/bin/lp-set-dup", line 114, in <module>
    bug.lp_save()
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/resource.py", line 683, in lp_save
    URI(self.self_link), representation, headers)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py", line 366, in patch
    'PATCH', extra_headers=extra_headers)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py", line 306, in _request
    raise HTTPError(response, content)
lazr.restfulclient.errors.HTTPError: HTTP Error 417: Expectation Failed
Response headers:
---
content-length: 47
content-type: text/plain
date: Mon, 13 Sep 2010 03:23:49 GMT
server: zope.server.http (HTTP)
status: 417
vary: Accept-Encoding
via: 1.1 wildcard.edge.launchpad.net
x-powered-by: Zope (www.zope.org), Python (www.python.org)
---
Response body:
---

You can't mark a bug as a duplicate of itself.
---

Revision history for this message
Benjamin Drung (bdrung) wrote :

lp-set-dup is part of ubuntu-dev-tools, but not devscripts.

summary: - "You can't mark a bug as a duplicate of itself."
+ [lp-set-dup] "You can't mark a bug as a duplicate of itself."
affects: devscripts (Ubuntu) → ubuntu-dev-tools (Ubuntu)
Revision history for this message
Benjamin Drung (bdrung) wrote :

lp-set-dup moved from ubuntu-dev-tools into lptools.

affects: ubuntu-dev-tools (Ubuntu) → lptools (Ubuntu)
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I suspect the issue is that the bug you're trying to mark 360893 as a dupe of is itself a dupe of 360893.

lp-set-up should be printing a saner error message, warning you beforehand or allowing you to break that cycle by unmarking 360893 as a dupe first.

Changed in lptools (Ubuntu):
status: New → Triaged
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.