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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1 M1, 2.7.2, 3.0.1
    • 3.0
    • None
    • None
    • i18n, encoding
    • Easy

    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

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

              Dates

                Created:
                Updated:
                Resolved: