JSPWiki
  1. JSPWiki
  2. JSPWIKI-490

image preview impossible if image name contains special characters

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.8.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      We uploaded an image called pm²logo.gif to one of our wiki pages. Clicking on the image link for the attachment page gave a correct image. Embedding this image on a wiki page was also ok : [pm²logo.gif].

      Visualing this image with the image preview on the attachment page (by clicking on the >> sign) resulted in an image not being shown.

      If we changed the "²" in the filename to another character, eg "2", the image preview behaves correctly. This lead us in supposing that the image preview could have a problem with special characters in the file name.

        Activity

        Hide
        Janne Jalkanen added a comment -

        Dirk, can you investigate, please?

        Show
        Janne Jalkanen added a comment - Dirk, can you investigate, please?
        Hide
        brushed added a comment -

        I wonder if the normal image visualisation is working - at least it didn't in my test

        [pipo².gif]

        is converted into

        <img class="inline" src="/JSPWiki-url/attach/Testpage/3pipo%C2%B2.gif" alt="Testpage/pipo².gif]" />
        

        which can not be retrieved from the back-end.

        ==> Janne, seems like a problem when rendering the image src link.

        Show
        brushed added a comment - I wonder if the normal image visualisation is working - at least it didn't in my test [pipo².gif] is converted into <img class= "inline" src= "/JSPWiki-url/attach/Testpage/3pipo%C2%B2.gif" alt= "Testpage/pipo².gif]" /> which can not be retrieved from the back-end. ==> Janne, seems like a problem when rendering the image src link.
        Hide
        Janne Jalkanen added a comment -

        This could be an UTF-8 issue with tomcat config. Are you using Latin1 or UTF-8?

        We also need more info on your server config (Tomcat, Glassfish, whatever) to duplicate.

        Show
        Janne Jalkanen added a comment - This could be an UTF-8 issue with tomcat config. Are you using Latin1 or UTF-8? We also need more info on your server config (Tomcat, Glassfish, whatever) to duplicate.
        Hide
        Bruno Peeters added a comment -

        Character Encoding is UTF-8

        Our production version of JSPWiki is still 2.2.33, running on Tomcat 5.0.25 on AIX.
        Uploading an image called pm²logo.gif and visualising it is no problem. Image preview is not possible in version 2.2.33.

        We have a test installation of JSPWiki 2.8.1 on Websphere on AIX
        Uploading an image called pm²logo.gif and visualising it is no problem, the image preview is not working correctly, as reported above.

        We have another test installation of JSPWiki 2.8.1 on Tomcat 5.5.26 on Windows 2000
        Visualising the image called pm²logo.gif is not possible, see error message below.

        HTTP Status 404 - Attachment 'Test grafiekenPmÂLogo.gif', version -1 does not exist.
        --------------------------------------------------------------------------------
        type Status report
        message Attachment 'Test grafiekenPmÂLogo.gif', version -1 does not exist.
        description The requested resource (Attachment 'Test grafiekenPmÂLogo.gif', version -1 does not exist.) is not available.
        --------------------------------------------------------------------------------
        Apache Tomcat/5.5.26

        Show
        Bruno Peeters added a comment - Character Encoding is UTF-8 Our production version of JSPWiki is still 2.2.33, running on Tomcat 5.0.25 on AIX. Uploading an image called pm²logo.gif and visualising it is no problem. Image preview is not possible in version 2.2.33. We have a test installation of JSPWiki 2.8.1 on Websphere on AIX Uploading an image called pm²logo.gif and visualising it is no problem, the image preview is not working correctly, as reported above. We have another test installation of JSPWiki 2.8.1 on Tomcat 5.5.26 on Windows 2000 Visualising the image called pm²logo.gif is not possible, see error message below. HTTP Status 404 - Attachment 'Test grafiekenPmÂLogo.gif', version -1 does not exist. -------------------------------------------------------------------------------- type Status report message Attachment 'Test grafiekenPmÂLogo.gif', version -1 does not exist. description The requested resource (Attachment 'Test grafiekenPmÂLogo.gif', version -1 does not exist.) is not available. -------------------------------------------------------------------------------- Apache Tomcat/5.5.26
        Hide
        Janne Jalkanen added a comment -

        And you're sure you've followed the instructions on this page?

        http://www.jspwiki.org/wiki/TomcatAndUTF8

        Show
        Janne Jalkanen added a comment - And you're sure you've followed the instructions on this page? http://www.jspwiki.org/wiki/TomcatAndUTF8
        Hide
        Janne Jalkanen added a comment -

        It seems to work on sandbox.jspwiki.org, so my guess is that this is a config-related issue.

        Show
        Janne Jalkanen added a comment - It seems to work on sandbox.jspwiki.org, so my guess is that this is a config-related issue.
        Hide
        Bruno Peeters added a comment -

        The target environment will be on Websphere, not on Tomcat anymore. After applying the instructions for Tomcat, we were able to display the image correctly (by clicking on it). The image preview is still not working.

        Show
        Bruno Peeters added a comment - The target environment will be on Websphere, not on Tomcat anymore. After applying the instructions for Tomcat, we were able to display the image correctly (by clicking on it). The image preview is still not working.
        Hide
        Bruno Peeters added a comment -

        See the attached screenshot.

        Clicking on >> in front of pm²logo.gif opens the image previewer, but the image is not loaded and the arrows in the middle continue to turn in rounds.

        Clicking on >> in front of pm2logo.gif opens the image previewer with the image loaded correctly.

        Show
        Bruno Peeters added a comment - See the attached screenshot. Clicking on >> in front of pm²logo.gif opens the image previewer, but the image is not loaded and the arrows in the middle continue to turn in rounds. Clicking on >> in front of pm2logo.gif opens the image previewer with the image loaded correctly.
        Hide
        Janne Jalkanen added a comment -

        Can you please try it on sandbox.jspwiki.org? I am unable to duplicate this issue, so it is probably a configuration problem.

        Show
        Janne Jalkanen added a comment - Can you please try it on sandbox.jspwiki.org? I am unable to duplicate this issue, so it is probably a configuration problem.
        Hide
        Bruno Peeters added a comment -

        I have uploaded 3 images to http://sandbox.jspwiki.org/Wiki.jsp?page=TestAttachments
        I am unable to get a preview for 2 of them, both pages with a special character in the file name.

        Perhaps this is also browser-related, at our company we are still using IE6.

        Show
        Bruno Peeters added a comment - I have uploaded 3 images to http://sandbox.jspwiki.org/Wiki.jsp?page=TestAttachments I am unable to get a preview for 2 of them, both pages with a special character in the file name. Perhaps this is also browser-related, at our company we are still using IE6.
        Hide
        Janne Jalkanen added a comment -

        All work for me on Firefox 3.1-beta-2 and Safari 3.2.1. Yes, this seems to be an IE6-only issue, which means it's back to Dirk's domain... It could even be a mootools problem, in which case we can't do much about it.

        (You should probably consider upgrading, IE6 is a huge security problem. In addition, we are dropping IE6 support very soon now.)

        Show
        Janne Jalkanen added a comment - All work for me on Firefox 3.1-beta-2 and Safari 3.2.1. Yes, this seems to be an IE6-only issue, which means it's back to Dirk's domain... It could even be a mootools problem, in which case we can't do much about it. (You should probably consider upgrading, IE6 is a huge security problem. In addition, we are dropping IE6 support very soon now.)
        Hide
        brushed added a comment -

        I propose to close this issue.
        I can't reproduce; we don't support IE6 anymore.

        dirk

        Show
        brushed added a comment - I propose to close this issue. I can't reproduce; we don't support IE6 anymore. dirk
        Hide
        Harry Metske added a comment -

        +1 on closing

        Show
        Harry Metske added a comment - +1 on closing
        Hide
        Juan Pablo Santos Rodríguez added a comment -

        +1 on closing too

        Show
        Juan Pablo Santos Rodríguez added a comment - +1 on closing too
        Hide
        Florian Holeczek added a comment -

        Not reproducable, IE 6 not supported anymore

        Show
        Florian Holeczek added a comment - Not reproducable, IE 6 not supported anymore

          People

          • Assignee:
            Unassigned
            Reporter:
            Bruno Peeters
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development