Solr
  1. Solr
  2. SOLR-1489

A UTF-8 character is output twice (Bug in Jetty)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Environment:

      Jetty-6.1.3
      Jetty-6.1.21
      Jetty-7.0.0RC6

      Description

      A UTF-8 character is output twice under particular conditions.
      Attach the sample data.(error_utf8-example.xml)
      Registered only sample data, click the following URL.

      http://localhost:8983/solr/select?q=*%3A*&version=2.2&start=0&rows=10&omitHeader=true&fl=attr_json&wt=json

      Sample data is only "B", but response is "BB".
      When wt=phps, error occurs in PHP unsrialize() function.

      This bug is like a bug in Jetty.

      jettybugsample.war is the simplest one to reproduce the problem.
      Copy example/webapps, and start Jetty server, and click the following URL.

      http://localhost:8983/jettybugsample/filter/hoge

      Like earlier, B is output twice. Sysout only B once.
      I have tested this on Jetty 6.1.3 and 6.1.21, 7.0.0rc6.
      (When testing with 6.1.21or 7.0.0rc6, change "bufsize" from 128 to 512 in web.xml. )

      1. error_utf8-example.xml
        2 kB
        Jun Ohtani
      2. jetty-6.1.22.jar
        524 kB
        Jun Ohtani
      3. jettybugsample.war
        4 kB
        Jun Ohtani
      4. jetty-util-6.1.22.jar
        173 kB
        Jun Ohtani
      5. jsp-2.1.zip
        1.11 MB
        Jun Ohtani
      6. servlet-api-2.5-20081211.jar
        131 kB
        Jun Ohtani
      7. SOLR-1489.patch
        4 kB
        Koji Sekiguchi

        Issue Links

          Activity

          Jun Ohtani created issue -
          Jun Ohtani made changes -
          Field Original Value New Value
          Attachment error_utf8-example.xml [ 12421195 ]
          Attachment jettybugsample.war [ 12421196 ]
          Koji Sekiguchi made changes -
          Assignee Koji Sekiguchi [ koji ]
          Jun Ohtani made changes -
          Attachment jetty-6.1.22.jar [ 12426069 ]
          Attachment jetty-util-6.1.22.jar [ 12426070 ]
          Attachment servlet-api-2.5-20081211.jar [ 12426071 ]
          Jun Ohtani made changes -
          Attachment jsp-2.1.zip [ 12426077 ]
          Koji Sekiguchi made changes -
          Link This issue is related to SOLR-632 [ SOLR-632 ]
          Koji Sekiguchi made changes -
          Attachment SOLR-1489.patch [ 12426093 ]
          Koji Sekiguchi made changes -
          Link This issue is related to SOLR-2381 [ SOLR-2381 ]
          Koji Sekiguchi made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 3.1 [ 12314371 ]
          Fix Version/s 4.0 [ 12314992 ]
          Resolution Fixed [ 1 ]
          Grant Ingersoll made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Koji Sekiguchi
              Reporter:
              Jun Ohtani
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development