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

Filename encoding issue with multipart attachment uploading vie REST API

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.2.1
    • Fix Version/s: None
    • Component/s: REST
    • Labels:
      None
    • Environment:
      CentOS 7
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Date of First Response: