Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14005

Filename encoding issue with multipart attachment uploading vie REST API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 8.2.1
    • REST
    • None
    • CentOS 7
    • Unknown

    Description

      Uploading attachments which name consists of special characters such as é leads to encoding issue.

      For an example giving a file with a name tést.pdf:

      {{html}}
      <form method="post" action="/xwiki/rest/wikis/xwiki/spaces/XWiki/pages/WebHome/attachments" enctype="multipart/form-data">
      <div>
      <input type="file" name="a"/>
      <input type="submit" />
      </div>
      </form>
      {{/html}}
      

      Results in a file named: Tést

      Similar issue (not REST): http://jira.xwiki.org/browse/XWIKI-6573

      Attachments

        Activity

          People

            Unassigned Unassigned
            ekkul Ekku Laukkarinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: