+addrelease form doesn't validate uniqueness of (distribution, name)

Bug #42807 reported by Diogo Matsubara
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Unassigned

Bug Description

Steps to reproduce:

1. http://localhost:8086/distros/ubuntu/+addrelease
2. Fill in distribution information:
   - Name: hoary
   - Parent Release: The Warty Warthog Release
   - Other fields: anything
3. Crash:

ProgrammingError: ERROR: duplicate key violates unique constraint "distrorelease_distribution_key" INSERT INTO DistroRelease (id, datereleased, displayname, description, messagecount, lucilleconfig, driver, distribution, releasestatus, parentrelease, owner, datelastlangpack, changeslist, name, title, sourcecount, binarycount, summary, version, nominatedarchindep) VALUES (13, NULL, 'test distro', 'a test distribution to show that this form lacks input validation', 0, NULL, NULL, 1, 1, 1, 16, NULL, NULL, 'hoary', 'a test distribution', DEFAULT, DEFAULT, 'test distribution', '1.0', NULL)

Changed in launchpad:
status: Unconfirmed → Confirmed
Curtis Hovey (sinzui)
Changed in launchpad-registry:
importance: Medium → Low
status: Confirmed → Triaged
Curtis Hovey (sinzui)
tags: added: story-release-planning
Revision history for this message
Curtis Hovey (sinzui) wrote :

+addrelease is superseded by +addseries. The name validator was landed a few weeks ago and the unique error was found and fixed during testing.

Changed in launchpad-registry:
assignee: nobody → Curtis Hovey (sinzui)
milestone: none → 2.2.8
status: Triaged → Fix Released
milestone: 2.2.8 → 2.2.7
Curtis Hovey (sinzui)
Changed in launchpad:
assignee: Curtis Hovey (sinzui) → nobody
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.