[ 
https://issues.apache.org/jira/browse/JSPWIKI-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14995621#comment-14995621
 ] 

Christopher Janitschke commented on JSPWIKI-922:
------------------------------------------------

Ok i added the file encoding line for java_opts. Still getting the same errors.

@Dave
Thanks, but i don't think so. 

As in your bug described, if i try to create a page named "t%$*§(st" it encoded 
the name to "tst". So normal behavior. 

Some examples, but not important for the bug:
Create pages named:
- täst -> TÃ St
- T%FCst -> Tüst

But this is just the tomcat URIencoding, i guess.

The important part is, that it's not possible to upload an attachment to a 
(perfectly normal?) page, named and saved as "T%FCst" and shown in the wiki as 
"tüst".

Also i want to add, that it's not just a problem with "german umlaut".

If i try to upload an attachment to another page, encoded as ISO-8859-1 for 
example "T%DEst" shown in the JSPWiki as "T Þst", i also get the same error, 
which i described earlier.


> java.io.IOException: Upload Files to a Page with german Umlaute
> ---------------------------------------------------------------
>
>                 Key: JSPWIKI-922
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-922
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.10.1
>            Reporter: Christopher Janitschke
>
> I have several pages with german umlaute in the pagename.
> If i try to upload a file to one of these pages i get an exception.
> ---------------------------------------------------------------------
> java.io.IOException: Upload failed because the provider failed: Die 
> übergeordnete Seite existiert nicht.
>       
> org.apache.wiki.attachment.AttachmentServlet.upload(AttachmentServlet.java:565)
>       
> org.apache.wiki.attachment.AttachmentServlet.doPost(AttachmentServlet.java:416)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>       org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>       
> org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
> ---------------------------------------------------------------------
> I tried it with UTF-8 and ISO-8859-1.
> For now we rename those pages, but it would be nice if this would work in the 
> future.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to