IntegrityError raised setting a branch for a project series.
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Launchpad itself |
Critical
|
Steve Kowalik | ||
Bug Description
As seen on OOPS-1598O2756 an IntegrityError: duplicate key value violates unique constraint "branch_url_unique" was raised while setting the branch for a project.
Steps to reproduce:
1. Go to https:/
2. Choose "Import a branch hosted somewhere else"
3. Fill in Branch URL: http://
4. Fill in branch name: dev
5. Click Update
6. Go back to https:/
7. Change the repeat steps 2 and 3. In Branch name fill in: foo
8. Click Update
9. OOPS-2048AY76
| Changed in launchpad-code: | |
| status: | New → Triaged |
| importance: | Undecided → High |
| Tim Penhey (thumper) wrote : | #1 |
| Changed in launchpad: | |
| importance: | High → Critical |
| tags: | added: branches series |
| summary: |
- IntegrityError raised setting a branch for a project. + IntegrityError raised setting a branch for a project series. |
| tags: | added: easy |
| Aaron Bentley (abentley) wrote : | #2 |
I was not able to reproduce this by going to https:/
| Changed in launchpad: | |
| status: | Triaged → Incomplete |
| Launchpad Janitor (janitor) wrote : | #3 |
[Expired for Launchpad itself because there has been no activity for 60 days.]
| Changed in launchpad: | |
| status: | Incomplete → Expired |
| description: | updated |
| Changed in launchpad: | |
| status: | Expired → Triaged |
| Steve Kowalik (stevenk) wrote : | #4 |
This is already fixed.
Attempting the above on qastaging results in "This foreign branch URL is already specified for the imported branch ~stevenk/
| Changed in launchpad: | |
| status: | Triaged → Fix Released |
| William Grant (wgrant) wrote : | #5 |
It's not fixed, but it's not trivial to reproduce. See eg. OOPS-2107EE48
| Changed in launchpad: | |
| status: | Fix Released → Triaged |
| Michael Hudson-Doyle (mwhudson) wrote : | #6 |
I think this is more or less fixed by accident now: we no longer create MIRRORED branches, which are the only branches with url non-NULL, and so the only ones that can hit this constraint.
| Steve Kowalik (stevenk) wrote : | #7 |
This has been confirmed as fixed.
| Changed in launchpad: | |
| assignee: | nobody → Steve Kowalik (stevenk) |
| status: | Triaged → Fix Released |

Almost certainly this is in the new product series set branch view.