various db constraints allow trailing newlines

Bug #144462 reported by Michael Hudson-Doyle
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

There are several database constraints in trusted.sql that match a name against a regular expression ending in $, aiming to allow python-identifier like names.

However, $ allows for a trailing newline, so these constraints aren't doing what they intend (they should end with \Z).

The fix for bug #137237 fixed valid_name and valid_branch_name which were causing actual problems. I *think* the other constraints are reasonably safe because of schema constraints, so this is low-ish priority, but they should still be fixed.

visibility: private → public
Curtis Hovey (sinzui)
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
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.