LaunchpadValidationError raised while registering a branch using the xmlrpc interface

Bug #209892 reported by Diogo Matsubara
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Jonathan Lange

Bug Description

As seen in OOPS-820EA60 a LaunchpadValidationError was raised while using the BranchSetAPI to register a new branch.

The offending branch had invalid characters in its name which was caught by the name validator.
The thing is, if we expect people to try to register a branch with a invalid name, we should return a nice error message to them and not log an oops when that happens.

The exception type and exception value are:

 LaunchpadValidationError: Invalid branch name '.bzr'. Branch names must start with
a number or letter. The characters +, -, _, . and @ are also allowed after the first
character.

description: updated
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Oh hm, I think I probably misunderstood something about how exceptions in XML-RPC published resources work. Shouldn't be too hard to fix...

Changed in launchpad-bazaar:
assignee: nobody → mwhudson
Jonathan Lange (jml)
Changed in launchpad-bazaar:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I'm unassigning because I'm not going to work on it in the short term and I don't want to discourage anyone else...

Changed in launchpad-bazaar:
assignee: mwhudson → nobody
Jonathan Lange (jml)
Changed in launchpad-bazaar:
assignee: nobody → jml
milestone: none → 1.99
status: Triaged → In Progress
Revision history for this message
Jonathan Lange (jml) wrote :

RF 6671

Changed in launchpad-bazaar:
status: In Progress → Fix Committed
Jonathan Lange (jml)
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.