trailing whitespace in bug duplicate causes failure

Bug #481324 reported by John A Meinel
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Karl Fogel

Bug Description

somewhat related to bug #69616 most likely.

Anyway, I was recently trying to mark a bug as a duplicate. I copy and pasted the other bug number, but apparently added a trailing whitespace. I then got a failure about "not a valid bug number or nickname".

To reproduce:
  take a bug
  click the 'mark as duplicate'
  set it to another bug number but add a trailing blank space, like "12345 "

boom.

Related branches

Deryck Hodge (deryck)
Changed in malone:
status: New → Triaged
importance: Undecided → High
tags: added: bug-page ui
Revision history for this message
Rune Philosof (olberd) wrote :

I think I accidentally included a \n, which resulted in that I couldn't see that I had a trailing whitespace.
Since the pop up doesn't clear the form when you close it, the \n remained in the form through several tries of getting it right.
Very confusing.

Shouldn't this be extremely easy to fix?
papercut

Revision history for this message
Deryck Hodge (deryck) wrote :

Yes, this is extremely easy to fix. But if a community developer doesn't take it on -- and I would be happy to help someone land this as an easy first commit to Launchpad -- it still has to be scheduled among all the other higher priority work that has to be done, unless someone happens to be working in a related area and can pick it up.

tags: added: trivial
Karl Fogel (kfogel)
Changed in malone:
assignee: nobody → Karl Fogel (kfogel)
status: Triaged → In Progress
milestone: none → 10.03
Revision history for this message
Ursula Junque (ursinha) wrote : Bug fixed by a commit
Changed in malone:
status: In Progress → Fix Committed
tags: added: qa-needstesting
Deryck Hodge (deryck)
tags: added: qa-ok
removed: qa-needstesting
Karl Fogel (kfogel)
Changed in malone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.