Uploaded image for project: 'XWiki MS Office Integration'
  1. XWiki MS Office Integration
  2. XOFFICE-135

Exception "Illegal characters in path" for some external images

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0
    • Fix Version/s: 1.2 M2
    • Component/s: Content Filtering
    • Labels:
      None
    • Similar issues:

      Description

      DownloadImage method from WebImageAdaptorFilter does not escape illegal characters (\/:*?"<>|) from image's URL causing "Illegal characters in path" exception to be thrown. The illegal characters should be replaced with a dash ('-') or underscore('_').
      Example:

      <img src="image.php?id=23" alt="Image 1"/>
      <img src="http://opi.yahoo.com/online?u=USERNAME&m=g&t=1" alt="Yahoo Macro" />
      
      <img src="image.php-id=23" alt="Image 1"/>
      <img src="http---opi.yahoo.com-online-u=USERNAME&m=g&t=1" alt="Yahoo Macro" />
      

        Attachments

          Activity

            People

            • Assignee:
              florin_c Florin Ciubotaru
              Reporter:
              tachirei Teofil Achirei
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: