Shouldn't be possible to register two mirrors with two identical URLs by swapping the case in one of them

Bug #164543 reported by Guilherme Salgado
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

A canadian mirror was registered twice [1], and it was only possible because the URLs for the second one had some characters in upper case whereas the first had everything lower case. This shouldn't be allowed.

[1] https://launchpad.net/ubuntu/+mirror/gulus-archive
     https://launchpad.net/ubuntu/+mirror/gulus.usherbrooke.ca

Changed in launchpad:
assignee: nobody → salgado
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Guilherme Salgado (salgado) wrote : Unassign myself from untargetted bugs

 assignee nobody
 subscribe

Changed in launchpad:
assignee: salgado → nobody
Curtis Hovey (sinzui)
affects: launchpad-foundations → launchpad-registry
Changed in launchpad-registry:
importance: Medium → Low
Jonathan Davies (jpds)
tags: added: mirror
Revision history for this message
Jonathan Davies (jpds) wrote :

I've just tested this at https://staging.launchpad.net/ubuntu/+newmirror with the URLs for the two URLs listed above and I'm refused registration ("The distribution mirror Gulus is already registered with this URL.").

Perhaps this was fixed at some point in time?

Revision history for this message
Curtis Hovey (sinzui) wrote :

This is not fixed: I just registered http://gulus.usherbrooke.ca/UbuntU/ on staging. It was permitted because I capitalised the U's in Ubuntu.

The correct fix might be to make the field always lowercase the value when it is set and update the view to check for the submitted lower case value in a validate() method.

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.