URLs ending with a ) aren't linkified properly

Bug #118284 reported by Cesare Tirabassi
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
j.c.sackett
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

In this answer:

https://answers.launchpad.net/ubuntu/+source/gnome-games/+question/7531

the string http://en.wikipedia.org/wiki/Robots_(computer_game) has been transformed into a URL but with the wrong address (the final parenthesis is missing).

I checked this in the page source, and it is indeed reported as:

href="http://en.wikipedia.org/wiki/Robots_(computer_game"

Related branches

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Well, same piece of software, some bug ... also in this page :)

Revision history for this message
Francis J. Lacoste (flacoste) wrote :

This is a bug with the linkifier code.

Changed in launchpad-answers:
status: Unconfirmed → Confirmed
description: updated
Revision history for this message
Cesare Tirabassi (norsetto) wrote : Re: URL ending with a ) aren't not linkified properly

My guess is that this is on purpose. When the ) is parsed it is not linkified; that's because the link could actually be between parenthesis (http://this.is.linkified/correctly). Perhaps the logic could be improved so that if a ( is included in the address than a following ) should also be considered part of the address.
Of course, an address like this: http://this.is.a.really/stupid.address) will not be linkified and most probably deserves not to be...

Revision history for this message
Stuart Bishop (stub) wrote : Re: [Bug 118284] Re: URL ending with a ) aren't not linkified properly

It was deliberately done this way, but the suggestion of looking for opening
brackets in the URL sounds like an improvement.

Revision history for this message
James Henstridge (jamesh) wrote :

Not linkifying the closing parenthesis was a concious decision for the reason Cesare gave. This is probably the reason that the links Wikipedia generates for such pages look like http://en.wikipedia.org/wiki/Robots_%28computer_game%29 (which does link correctly).

Changed in launchpad-foundations:
importance: Undecided → Low
status: Confirmed → Triaged
Curtis Hovey (sinzui)
tags: added: tales
Curtis Hovey (sinzui)
affects: launchpad-foundations → launchpad-web
Curtis Hovey (sinzui)
tags: added: bugjam2010
j.c.sackett (jcsackett)
Changed in launchpad:
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
Changed in launchpad:
assignee: nobody → j.c.sackett (jcsackett)
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
j.c.sackett (jcsackett)
tags: added: bad-commit-12102 qa-bad
removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-bad
Revision history for this message
Данило Шеган (danilo) wrote :
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Данило Шеган (danilo) wrote :

We shouldn't clear up bad-commit-12102 tag until all of revisions up to (and including) 12121 have "cleared" for landing (fwiw, I am interested in this simply because I have an OOPS fix for roughly a 1000 of OOPSes a day :).

Revision history for this message
j.c.sackett (jcsackett) wrote :

Everything through r12121 is good to go now, so we can kill bad-commit.

tags: removed: bad-commit-12102
Curtis Hovey (sinzui)
Changed in launchpad:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
Changed in launchpad:
milestone: none → 11.01
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.