Attempting to add an unregistered branch to a bug gives confusing error

Bug #141412 reported by Stuart Bishop
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Unassigned

Bug Description

Attempting to add a branch to a bug, I get an 'Invalid value' validation error if that branch has not yet been registered with Launchpad. I either need to be told *why* it is invalid, or the branch registered for me and the form accepts the value.

Revision history for this message
Tim Penhey (thumper) wrote :

Which branch, and which bug, and how were you attempting to attach it?

Changed in launchpad:
status: New → Incomplete
Revision history for this message
Stuart Bishop (stub) wrote :

Attempting to link bzr+ssh://devpad.canonical.com/code/matsubara/launchpad/bug-130901 to Bug #130901

Revision history for this message
Jonathan Lange (jml) wrote :

We only support linking bugs to branches that are registered in Launchpad.

I guess it's possible that we could improve the workflow of linking bugs to branches by allowing users to specify a branch URL and then creating a remote branch for that URL (or looking for a branch with a matching URL in the database). I'm not sure it's worth the effort though.

Changed in launchpad:
status: Incomplete → Invalid
Revision history for this message
Andrew Bennetts (spiv) wrote :

Even if we don't to improve the workflow here, the error message could be much better. "Invalid value" gives the confusing connotation of "we don't like that URL" rather than "that's not the name of a branch registered in Launchpad."

Stuart Bishop (stub)
description: updated
Changed in launchpad:
status: Invalid → New
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

See also bug 65007.

Changed in launchpad:
status: New → Confirmed
Revision history for this message
Jonathan Lange (jml) wrote :

Launchpad will now register a branch if you give this field a URL. This does not address the 'Invalid value' part of the bug.

Also, for bzr+ssh:// URLs, Launchpad will make a mirrored branch. Really it should make a remote branch instead. (A remote branch is like a mirrored branch except it's not mirrored).

Changed in launchpad-bazaar:
importance: Undecided → Medium
Jonathan Lange (jml)
tags: added: branch-vocabulary
Changed in launchpad-code:
status: Triaged → 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.