[
https://issues.apache.org/jira/browse/JSPWIKI-922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arturo Bernal resolved JSPWIKI-922.
-----------------------------------
Fix Version/s: 3.0.1
Resolution: Fixed
Pull request 571 (https://github.com/apache/jspwiki/pull/571) is merged. Ulf
Dittmer confirmed in it that, with the change, he can upload and download
attachments whose names contain umlauts and that the downloaded files keep
their names. The change writes the attachment name in the Content-Disposition
header as RFC 6266 / RFC 8187 describe, instead of sending raw non-ASCII bytes.
The original report, a page whose name contains umlauts, was not reproduced;
what is fixed is the download of attachments with non-ASCII file names.
> 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
> Fix For: 3.0.1
>
>
> 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)