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

Request parameters retrieved from a form sent with multipart/form-data encoding (for file uploads) have the wrong encoding

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1 M1, 2.7.2, 3.0.1
    • Component/s: None
    • Labels:
      None
    • keywords:
      i18n, encoding
    • Difficulty:
      Easy
    • Similar issues:

      Description

      The issue seems to come from somewhere inside com.xpn.xwiki.web.Utils.handleMultipart(HttpServletRequest, XWikiContext)

      For example:

      {{html}}
      <form method="post" action="" enctype="multipart/form-data">
      <div>
      <input type="text" name="a" value="chèrie" />
      <input type="submit" />
      </div>
      </form>
      {{/html}}
      
      {{velocity}}
      $!request.a
      {{/velocity}}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sdumitriu Sergiu Dumitriu
                Reporter:
                sdumitriu Sergiu Dumitriu
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: