Issue Details (XML | Word | Printable)

Key: UWC-111
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Laura Kolker
Reporter: Justin Bertman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence Universal Wiki Converter

plain text treated as html link

Created: 26/Apr/07 10:17 AM   Updated: 04/May/07 01:33 PM
Component/s: Tikiwiki Converter
Affects Version/s: 41
Fix Version/s: 43

Time Tracking:
Not Specified

File Attachments: None
Image Attachments:

1. PlainlinksInCode.png
(120 kB)
Environment:
tikiwiki 1.9.7
confluence 2.3.3 build 645

Labels:


 Description  « Hide
Plain text from tikiwiki is being treated as an html link. It is important to keep the urls in plain text as they may house spyware or a drive-by site.

Before conversion:
in plain text "http://www.webroot.com"
Current UWC conversion:
in a hyperlink "http://www.webroot.com"
Desired:
in plain text "http://www.webroot.com"


More info:

This is something Confluence does to http links in plain text.

Options for hiding the link feature:

  • turn on the html plugin, and use an html macro: {html}http://www.webroot.com{html}
  • use the noformat macro. The problem with this one is that it won't be inline. Example: {noformat:nopanel=true}http://www.webroot.com\{noformat}
  • add escaped link syntax. The problem with this is that the brackets will be visible. Example: \\\[http://www.webroot.com \\\]

Note to self: This is not likely to be a popular feature, so the committed properties file will have it commented out.



 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
Laura Kolker added a comment - 30/Apr/07 05:32 PM
Alternative: replace the colon with the html entity

Laura Kolker added a comment - 01/May/07 10:46 AM
The relevant property is Tikiwiki.0210-plaintext-links-not-linkified.class

It will be commented out in the committed svn file


Justin Bertman added a comment - 04/May/07 09:26 AM
Some of the plain text links are now not hyperlinks, which is great. In code blocks it looks like the alternative has been taken, which I guess is to replace the character with it's html code. We would like the html code with the actual colon in the code blocks also.

Laura Kolker added a comment - 04/May/07 09:54 AM
Hi Justin,

What I'm hearing is that you want plain links to be "linkified", in code blocks.

Tikiwiki:
{CODE()}
http://www.google.com
{CODE}

Confluence current:
{code}
http://www.google.com
{code}

Confluence Ideal:
{code}
http://www.google.com
{code}

Is that correct?
Thanks,
Laura


Justin Bertman added a comment - 04/May/07 09:59 AM
No, I think the issue is that plain text html links in code blocks are having their colon replaced with the html code. For example, on page "UFP 007 Spy", under section "Original Research", under subsection "Common String(s)", there is a bullet with a code block. Inside this code block in tikiwiki there is a url "http://www.e-spy-software.com", and when this is imported to confluence it shows as "http://www.e-spy-software.com". We'd like it to be "http://www.e-spy-software.com".

Justin Bertman added a comment - 04/May/07 10:01 AM
Heh I think we've found a limitation of using a web page to report web page syntax issues. ;p

What I typed didn't come through properly, in confluence the link is "http'ampersand''pound''number58''semi-colon'//www.e-spy-software.com".


Laura Kolker added a comment - 04/May/07 10:06 AM
Indeed, I've been having the same problem.

Just to confirm:
You want the confluence result to NOT have the entity?

I'll attach a screenshot of what I think you want to happen.

Thanks,
Laura


Laura Kolker added a comment - 04/May/07 10:07 AM
Attaching a screenshot of the expected behavior in Confluence when a plain text link is in a code block

Laura Kolker added a comment - 04/May/07 11:31 AM
re-opening issue.
Waiting on confirmation of expected behavior.

Laura Kolker added a comment - 04/May/07 01:33 PM
So, there are two things being handled here.

The initial fix which provided a converter that would escape plain text http links, so that they would not linkify was released with version 42.
The additional tweak so that code blocks are not affected by this converter will be released with version 43.