You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Bruno Peeters (JIRA)" <ji...@apache.org> on 2009/02/02 17:07:59 UTC

[jira] Created: (JSPWIKI-490) image preview impossible if image name contains special characters

image preview impossible if image name contains special characters
------------------------------------------------------------------

                 Key: JSPWIKI-490
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-490
             Project: JSPWiki
          Issue Type: Bug
    Affects Versions: 2.8.1
            Reporter: Bruno Peeters


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-490) image preview impossible if image name contains special characters

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670332#action_12670332 ] 

Janne Jalkanen commented on JSPWIKI-490:
----------------------------------------

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

> image preview impossible if image name contains special characters
> ------------------------------------------------------------------
>
>                 Key: JSPWIKI-490
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-490
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.8.1
>            Reporter: Bruno Peeters
>            Assignee: Dirk Frederickx
>         Attachments: picture-with-².gif
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-490) image preview impossible if image name contains special characters

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670692#action_12670692 ] 

Janne Jalkanen commented on JSPWIKI-490:
----------------------------------------

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.)

> image preview impossible if image name contains special characters
> ------------------------------------------------------------------
>
>                 Key: JSPWIKI-490
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-490
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.8.1
>            Reporter: Bruno Peeters
>            Assignee: Dirk Frederickx
>         Attachments: picture-with-².gif
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-490) image preview impossible if image name contains special characters

Posted by "Dirk Frederickx (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669711#action_12669711 ] 

Dirk Frederickx commented on JSPWIKI-490:
-----------------------------------------



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

[pipo².gif] 

is converted into

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

which can not be retrieved from the back-end.

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





> image preview impossible if image name contains special characters
> ------------------------------------------------------------------
>
>                 Key: JSPWIKI-490
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-490
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.8.1
>            Reporter: Bruno Peeters
>            Assignee: Dirk Frederickx
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JSPWIKI-490) image preview impossible if image name contains special characters

Posted by "Bruno Peeters (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruno Peeters updated JSPWIKI-490:
----------------------------------

    Attachment: picture-with-².gif

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.

> image preview impossible if image name contains special characters
> ------------------------------------------------------------------
>
>                 Key: JSPWIKI-490
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-490
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.8.1
>            Reporter: Bruno Peeters
>            Assignee: Dirk Frederickx
>         Attachments: picture-with-².gif
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-490) image preview impossible if image name contains special characters

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669749#action_12669749 ] 

Janne Jalkanen commented on JSPWIKI-490:
----------------------------------------

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.

> image preview impossible if image name contains special characters
> ------------------------------------------------------------------
>
>                 Key: JSPWIKI-490
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-490
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.8.1
>            Reporter: Bruno Peeters
>            Assignee: Dirk Frederickx
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-490) image preview impossible if image name contains special characters

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669949#action_12669949 ] 

Janne Jalkanen commented on JSPWIKI-490:
----------------------------------------

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

> image preview impossible if image name contains special characters
> ------------------------------------------------------------------
>
>                 Key: JSPWIKI-490
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-490
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.8.1
>            Reporter: Bruno Peeters
>            Assignee: Dirk Frederickx
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JSPWIKI-490) image preview impossible if image name contains special characters

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Janne Jalkanen updated JSPWIKI-490:
-----------------------------------


Dirk, can you investigate, please?

> image preview impossible if image name contains special characters
> ------------------------------------------------------------------
>
>                 Key: JSPWIKI-490
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-490
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.8.1
>            Reporter: Bruno Peeters
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-490) image preview impossible if image name contains special characters

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669944#action_12669944 ] 

Janne Jalkanen commented on JSPWIKI-490:
----------------------------------------

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

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

> image preview impossible if image name contains special characters
> ------------------------------------------------------------------
>
>                 Key: JSPWIKI-490
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-490
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.8.1
>            Reporter: Bruno Peeters
>            Assignee: Dirk Frederickx
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-490) image preview impossible if image name contains special characters

Posted by "Bruno Peeters (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670665#action_12670665 ] 

Bruno Peeters commented on JSPWIKI-490:
---------------------------------------

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.

> image preview impossible if image name contains special characters
> ------------------------------------------------------------------
>
>                 Key: JSPWIKI-490
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-490
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.8.1
>            Reporter: Bruno Peeters
>            Assignee: Dirk Frederickx
>         Attachments: picture-with-².gif
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-490) image preview impossible if image name contains special characters

Posted by "Bruno Peeters (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669939#action_12669939 ] 

Bruno Peeters commented on JSPWIKI-490:
---------------------------------------

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

> image preview impossible if image name contains special characters
> ------------------------------------------------------------------
>
>                 Key: JSPWIKI-490
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-490
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.8.1
>            Reporter: Bruno Peeters
>            Assignee: Dirk Frederickx
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-490) image preview impossible if image name contains special characters

Posted by "Bruno Peeters (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670327#action_12670327 ] 

Bruno Peeters commented on JSPWIKI-490:
---------------------------------------

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.

> image preview impossible if image name contains special characters
> ------------------------------------------------------------------
>
>                 Key: JSPWIKI-490
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-490
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.8.1
>            Reporter: Bruno Peeters
>            Assignee: Dirk Frederickx
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.