Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1936

Json output Incorrect escaping Unicode Character 'LINE SEPARATOR' (U+2028)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.4.1
    • Component/s: Response Writers
    • Labels:
      None

      Description

      The Unicode Character 'LINE SEPARATOR' (U+2028) is not escaped in json response, resulting in a exception when evaluting this response on a client (in our case a firefox 3.0.19 , chrome 5.0.375.55 beta) webbrowser.

      Evaluting a response with this U+2028 char results in a 'unterminated string literal' error in firefox.

        Attachments

        1. SOLR-1936.patch
          0.9 kB
          Yonik Seeley
        2. patch-SOLR-1936-TRUNK.patch
          1.0 kB
          Robert Hofstra
        3. patch-SOLR-1936-test.txt
          0.8 kB
          Robert Hofstra
        4. patch-SOLR-1936.txt
          0.9 kB
          Robert Hofstra

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              robert.hofstra Robert Hofstra
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: