Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22321

Typed URL links should not be displayed as wanted links when the URL is invalid

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 15.10
    • None
    • Unknown

    Description

      Example: [[label>>url:abc]].

      What happens is that when we parse the link reference, we have a fallback in the URLResourceReferenceTypeParser code to fallback on an UNKNOWN type if the passed URL is not valid, but in DefaultLinkReferenceParser if the type is UNKNOWN we fallback to the untyped link reference parser, which considers it as a document reference, thus leading to a wanted link.

      While it's good that the rendering code never breaks, the fallback seems wrong and we should probably end up with a broken HTML link instead, rather than a wanted link.

      Note: I've created the issue in platform as wanted links are a platform feature, but the fix is likely in rendering and this issue might need to be moved.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: