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

ASF subversion and git services commented on JSPWIKI-922:
---------------------------------------------------------

Commit b425afe50f0eb419aacef3e96bc282d3d00a9bb3 in jspwiki's branch 
refs/heads/master from Arturo Bernal
[ https://gitbox.apache.org/repos/asf?p=jspwiki.git;h=b425afe50 ]

JSPWIKI-922 Encode non-ASCII attachment names in the Content-Disposition header

The name of an attachment was written as it is inside the quoted filename 
parameter. A character
outside printable ASCII went out as a single raw byte (0xE4 for a-umlaut), 
which is not valid UTF-8,
and a name with a quote or a backslash ended the quoted string. Such names now 
get an ASCII
fallback in filename and the UTF-8 name, percent encoded, in filename* as in 
RFC 6266 and RFC 8187.
Names made of printable ASCII characters are written as before.


> 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
>            Priority: Major
>              Labels: pull-request-available
>
> 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
(v10.3.26#10030026)

Reply via email to