Jetty
  1. Jetty
  2. JETTY-1151

IllegalArgumentException !utf8 in Utf8StringBuilder when getting a request parameter

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.1
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      This is duplicate of JETTY-1098.
      I'm creating new issue as it is still not fixed in 7.0.1 (and 7.0.0 is already released with this bug).

      Umlauts works for me but still have problems with string like this (Thai language):
      ฟหกวดา่กฟวหสดา่หฟกวดสาฟกหรด้ฟหนกรดี
      although umlauts works.

      Exception (v7.0.1):
      java.lang.IllegalArgumentException: !utf8
      at org.eclipse.jetty.util.Utf8StringBuilder.append(Utf8StringBuilder.java:112)
      at org.eclipse.jetty.util.UrlEncoded.decodeUtf8To(UrlEncoded.java:450)
      at org.eclipse.jetty.util.UrlEncoded.decodeTo(UrlEncoded.java:497)
      at org.eclipse.jetty.server.Request.extractParameters(Request.java:254)
      at org.eclipse.jetty.server.Request.getParameter(Request.java:648)

      To reproduce create page jsp page with:

      <form method="POST">
      <textarea name="description">$

      {param.description}

      </textarea>
      <input type="submit" />
      </form>

      and submit form with above string.

        Issue Links

          Activity

          Hide
          Jan Bartel added a comment -

          Greg, please look into this for jetty-7. See also the linked issue: http://jira.codehaus.org/browse/JETTY-1098.

          thanks,
          Jan

          Show
          Jan Bartel added a comment - Greg, please look into this for jetty-7. See also the linked issue: http://jira.codehaus.org/browse/JETTY-1098 . thanks, Jan
          Hide
          Greg Wilkins added a comment -

          allow utf-8 bytes to have 0 carry bits

          Show
          Greg Wilkins added a comment - allow utf-8 bytes to have 0 carry bits

            People

            • Assignee:
              Greg Wilkins
              Reporter:
              Oleksandr Maksymchuk
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: