Jetty
  1. Jetty
  2. JETTY-1340

Utf8StringBuffer incorrectly handles characters outside of the basic multilingual plane

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.25
    • Fix Version/s: 6.1.27
    • Component/s: None
    • Labels:
      None
    • Testcase included:
      yes
    • Patch Submitted:
      Yes
    • Number of attachments :
      3

      Description

      In the Apache Solr project, we had some problems with jetty supporting Unicode characters outside
      of the basic multilingual plane (codepoints greater than 0xffff).

      The problem boils down to Utf8StringBuffer, all of the utf8 logic looks generally correct, but at
      the end when it is time to append to the underlying StringBuffer, it needs to append the two
      UTF-16 surrogates for characters in this range... its a rather simple fix.

      The patch is against http://svn.codehaus.org/jetty/jetty/branches/jetty-6.1 (I hope this is correct?)

      1. AbstractGenerator.patch
        10 kB
        Bernd Fehling
      2. JETTY-1340.patch
        4 kB
        Robert Muir
      3. jettyUnicode.patch
        2 kB
        Robert Muir

        Issue Links

          Activity

          Robert Muir made changes -
          Field Original Value New Value
          Attachment JETTY-1340.patch [ 53937 ]
          Greg Wilkins made changes -
          Assignee Greg Wilkins [ gregw ]
          Greg Wilkins made changes -
          Link This issue duplicates JETTY-1328 [ JETTY-1328 ]
          Bernd Fehling made changes -
          Attachment AbstractGenerator.patch [ 54134 ]
          Greg Wilkins made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 6.1.27 [ 17238 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              Greg Wilkins
              Reporter:
              Robert Muir
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: