fmt:text-to-html causes OOPSs for URLs ending in "&"

Bug #72998 reported by James Henstridge
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
James Henstridge

Bug Description

The following URL gives an OOPS after the last rollout:

https://launchpad.net/distros/ubuntu/+source/flashplugin-nonfree/+bug/66873/+index

(e.g. OOPS-326B405).

From the look of it, this happens if there is a URL in the text where the last character gets converted to an entity (e.g. & or <, but not > because it is handled specially).

The URL extraction uses a post processing step to cut trailing characters from the URL that usually aren't part of the URL (e.g. a comma). This is stripping the semicolon from the end of the entity at the end of the URL.

Previously this was just giving invalid HTML, but the new word breaking code is tripping up on it.

Changed in launchpad:
assignee: nobody → jamesh
status: Unconfirmed → Confirmed
Revision history for this message
Christian Reis (kiko) wrote :

Top oopser.

Changed in launchpad:
importance: Undecided → Critical
Revision history for this message
James Henstridge (jamesh) wrote :

Fix merged to rocketfuel as r4268.

Changed in launchpad:
status: Confirmed → Fix Committed
Revision history for this message
James Henstridge (jamesh) wrote :

Fix rolled out to production.

Changed in launchpad:
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.