valid_name and valid_branch_name are not consistent

Bug #134090 reported by Michael Hudson-Doyle
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Michael Hudson-Doyle

Bug Description

In trusted.sql we find this:

COMMENT ON FUNCTION valid_branch_name(text)
    IS 'validate a branch name.

    As per valid_name, except we allow uppercase and @';

This isn't really true, though, as valid_name allows one character names, but valid_branch_name does not (see https://bugs.launchpad.net/launchpad/+bug/2446).

<ddaa> We can deal with this in various ways
<ddaa> 1. loose valid_branch_name
<ddaa> 2. special case naming of import branches for single-char series
<ddaa> 3. tighten valid_name
<ddaa> I favor 1.
<mwhudson> me too

Tags: lp-code
description: updated
Revision history for this message
David Allouche (ddaa) wrote :

Confirming, importance critical as it allows user to set up series for which we cannot deliver a code import without changing the name of the series.

Changed in launchpad:
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
David Allouche (ddaa) wrote :

On second though, High importance, because nobody has noticed it in something like 20 months.

Changed in launchpad:
importance: Critical → High
Revision history for this message
David Allouche (ddaa) wrote :

Also, moving it into launchpad-bazaar project.

Tim Penhey (thumper)
Changed in launchpad-bazaar:
assignee: nobody → mwhudson
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Actually the fix for this rolled up with my fix for the other valid_branch_name bug (bug 137237), so this should be fixed in 1.1.9.

Changed in launchpad-bazaar:
status: Confirmed → In Progress
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

RF 4830.

Changed in launchpad-bazaar:
status: In Progress → Fix Committed
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Fixed in 1.1.9.

Changed in launchpad-bazaar:
status: Fix Committed → Fix Released
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.