[
https://issues.apache.org/jira/browse/JSPWIKI-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18134363#comment-18134363
]
Arturo Bernal commented on JSPWIKI-922:
---------------------------------------
Tried with the current code (upstream master, Tomcat 10.1 on Java 17, Chrome).
I made a page named Größe Übung, opened its Add Attachment page and uploaded a
small text file. The upload worked: the attachment is listed on the page, the
log says that BasicAttachmentProvider saved the contents in a directory under
the default storage directory named after the page with the umlauts percent
encoded, and the attachment servlet returned the file with status 200 and the
same 31 bytes. There is no error in the log, and in particular not the message
that the parent page does not exist.
Limits: I created the page by putting its file in the page directory, not
through the editor, although the file name is the same one the provider
produces; the container ran with a UTF-8 locale, while the report mentions the
file encoding of the JVM, which I did not vary; and the uploaded file name had
no umlauts. The comment of 2017 already could not reproduce it on 2.10.2.
Leaving the issue open for the reporter to confirm.
> 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
>
> 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)