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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.4.1
    • Response Writers
    • 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. patch-SOLR-1936.txt
          0.9 kB
          Robert Hofstra
        2. patch-SOLR-1936-test.txt
          0.8 kB
          Robert Hofstra
        3. patch-SOLR-1936-TRUNK.patch
          1.0 kB
          Robert Hofstra
        4. SOLR-1936.patch
          0.9 kB
          Yonik Seeley

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: