Bug importer allows illegal tags to be created

Bug #910158 reported by Renegade
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Good day,

the bug import format specification states that tags should be of kind lpname, and that lpname should be of the form [a-z0-9][a-z0-9\+\.\-]*.

When transferring our bugs to LP, I had the exporter auto-generate tags from the bug descriptions, to make them more accessible overall. This -of course- resulted not only in reasonable tags, but also in a few junk tags, including tags that are simply "0" (zero).

Since plain zero conforms to the regexp [a-z0-9][a-z0-9\+\.\-]*, the importer happily accepted these tags and we have 28 bugs tagged "0" in our list, making it the fifth most-used tag overall.

If, however, you actually *click* that tag, you get bounced to the search page, with the tag input field having the error "'0' isn't a valid tag name. Tags must start with a letter or number and be lowercase. The characters "+", "-" and "." are also allowed after the first character." (https://bugs.launchpad.net/ares/+bugs?field.tag=0)

Attempting the same with a single character yields the same result. (https://bugs.launchpad.net/ares/+bugs?field.tag=a)

So either the importer must reject single-letter tags, or the search function must allow searching for them. The way it is, single-letter tags hang in limbo, and the import specification is wrong.

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

The Lp engineer who vetted the importer conversion and tested the output should have caught this issue.

tags: added: bugtag lp-bugs
removed: tags
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Renegade (renegade) wrote :

Nah, he was awesome. I was very happy with him.
As said, it's a junk tag, we don't really care about it. I just thought I'd report it so it can be fixed sometime.

Happy New Year, everyone.

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.