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 Bug
    • Status: Closed Closed
    • Priority: Major 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}}
      

        Issue Links

          Activity

          Hide
          Sergiu Dumitriu added a comment -

          Fixed in 0560fc.

          Show
          Sergiu Dumitriu added a comment - Fixed in 0560fc.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: