Comment 2 for bug 296680

Revision history for this message
Björn Tillenius (bjornt) wrote : Re: [Bug 296680] [NEW] Imported comment from Trac mangles hyperlink

On Tue, Nov 11, 2008 at 12:57:58PM -0000, Graham Binns wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> > I think this is a problem with Trac hyperlinks in general, not Debian
> > bug links in particular.
>
> The problem is the fact that although Trac allows people to use its
> wiki syntax when commenting on a ticket, Launchpad doesn't get the
> html-ified version of those comments. Instead, it gets the raw wiki
> marked-up version and doesn't know what to do with it.
>
> The options are as follows:
>
> * Launchpad could try to convert the comments to HTML when it imports them.
> * Launchpad could strip out the wiki markup when it imports the comments
> * The Trac LP plugin could be updated to return the HTML version of
> the comments rather than the raw version.

I don't think the last one is a viable option. We shouldn't be inserting
raw HTML returned from a remote server.

Another option is not to make 'bug XXX' into links. Those don't make
much sense for imported comments (unless we map them to the bug tracker
from where we imported the comment).