make_bugtracker_name creates names that are invalid

Bug #245232 reported by Gavin Panella
8
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

`c.l.database.bugtracker.make_bugtracker_name` could create a name containing an underscore.

If the URL is an email address and the local part contains an underscore, or if the URL is not an email address and the host part contains an underscore, `make_bugtracker_name` will return a name containing an underscore.

We should replace underscores with hyphens, and remove sequences of multiple hyphens (like `sed -r 's/-{2,}/-/g'`). Perhaps add an assertion using `IBugTracker['name'].validate`.

Tags: lp-bugs
Curtis Hovey (sinzui)
Changed in malone:
status: New → Triaged
importance: Undecided → Low
visibility: private → public
summary: - make_bugtracker_name could create an invalid name
+ make_bugtracker_name creates names that are invalid
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.