tagging rules prevent capitals colons and underscores in tagnames

Bug #537591 reported by Brian Murray
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Launchpad has tagging rules that prevent capitals colons and underscores in tagnames. Additionally violating these rules fails silently in the ajax UI and with an unexposed error over launchpadlib.

Tags: lp-bugs
Revision history for this message
Brad Figg (brad-figg) wrote :

I just tried adding 'snd_seq' to a bug and that failed as well (silently). So, '_' (underscore) is not allowed either.

Revision history for this message
Brad Figg (brad-figg) wrote :

Colon is not accepted as well. I was trying to use a colon to tags audio codecs which are normally specified as two hex numbers separated by a colon.

Deryck Hodge (deryck)
Changed in malone:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Brad Crittenden (bac) wrote :

Attempting to set a tag via lplib with a capital letter also fails, though not silently:

>>> bug.tags = ['ePub']
>>> bug.lp_save()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/resource.py", line 688, in lp_save
    URI(self.self_link), representation, headers)
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/_browser.py", line 332, in patch
    'PATCH', extra_headers=extra_headers)
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/_browser.py", line 277, in _request
    raise HTTPError(response, content)
HTTPError: HTTP Error 400: Bad Request

[...]
---
Response body:
---
tags: [ConstraintNotSatisfied(u'ePub')]

summary: - tagging a bug with a capital letter in the tag fails silently
+ tagging rules prevent capitals colons and underscores in tagnames
description: updated
Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :

When you try to report a bug with a tag containing a colon (':'), you get an Timeout error page from launchpad and the bug is not created.

I wouldn't see this as a Low priority bug.

At least the tags field should validate this both when reporting a bug (causing a timeout error page) or when changing a bug (the silent ajax problem above)

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.