[jira] Created: (SOLR-1489) A UTF-8 character is output twice (Bug in Jetty)

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (SOLR-1489) A UTF-8 character is output twice (Bug in Jetty)

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

                 Key: SOLR-1489
                 URL: https://issues.apache.org/jira/browse/SOLR-1489
             Project: Solr
          Issue Type: Bug
         Environment: Jetty-6.1.3
Jetty-6.1.21
Jetty-7.0.0RC6
            Reporter: Jun Ohtani
            Priority: Critical


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. )


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-1489) A UTF-8 character is output twice (Bug in Jetty)

Tim Allison (Jira)

     [ https://issues.apache.org/jira/browse/SOLR-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jun Ohtani updated SOLR-1489:
-----------------------------

    Attachment: jettybugsample.war
                error_utf8-example.xml

Attached sample data and Jetty bug sample program.

> A UTF-8 character is output twice (Bug in Jetty)
> ------------------------------------------------
>
>                 Key: SOLR-1489
>                 URL: https://issues.apache.org/jira/browse/SOLR-1489
>             Project: Solr
>          Issue Type: Bug
>         Environment: Jetty-6.1.3
> Jetty-6.1.21
> Jetty-7.0.0RC6
>            Reporter: Jun Ohtani
>            Priority: Critical
>         Attachments: error_utf8-example.xml, jettybugsample.war
>
>
> 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. )

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-1489) A UTF-8 character is output twice (Bug in Jetty)

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

    [ https://issues.apache.org/jira/browse/SOLR-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761884#action_12761884 ]

Jun Ohtani commented on SOLR-1489:
----------------------------------

Report Jetty's JIRA.
http://jira.codehaus.org/browse/JETTY-1122

> A UTF-8 character is output twice (Bug in Jetty)
> ------------------------------------------------
>
>                 Key: SOLR-1489
>                 URL: https://issues.apache.org/jira/browse/SOLR-1489
>             Project: Solr
>          Issue Type: Bug
>         Environment: Jetty-6.1.3
> Jetty-6.1.21
> Jetty-7.0.0RC6
>            Reporter: Jun Ohtani
>            Priority: Critical
>         Attachments: error_utf8-example.xml, jettybugsample.war
>
>
> 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. )

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-1489) A UTF-8 character is output twice (Bug in Jetty)

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

    [ https://issues.apache.org/jira/browse/SOLR-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761900#action_12761900 ]

Koji Sekiguchi commented on SOLR-1489:
--------------------------------------

Good catch, Otani-san! I can reproduce the problem with the data and the filter you attached when running it on Jetty. And thank you for opening the JIRA ticket in Jetty.
Now we are closing to releasing 1.4, I don't want this to be a blocker because this is not a Solr bug as you said. You can run Solr on arbitrary servlet containers other than Jetty if you'd like.
I'd like to keep this opening, and watching  http://jira.codehaus.org/browse/JETTY-1122 . Thanks.

> A UTF-8 character is output twice (Bug in Jetty)
> ------------------------------------------------
>
>                 Key: SOLR-1489
>                 URL: https://issues.apache.org/jira/browse/SOLR-1489
>             Project: Solr
>          Issue Type: Bug
>         Environment: Jetty-6.1.3
> Jetty-6.1.21
> Jetty-7.0.0RC6
>            Reporter: Jun Ohtani
>            Priority: Critical
>         Attachments: error_utf8-example.xml, jettybugsample.war
>
>
> 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. )

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (SOLR-1489) A UTF-8 character is output twice (Bug in Jetty)

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

     [ https://issues.apache.org/jira/browse/SOLR-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi reassigned SOLR-1489:
------------------------------------

    Assignee: Koji Sekiguchi

> A UTF-8 character is output twice (Bug in Jetty)
> ------------------------------------------------
>
>                 Key: SOLR-1489
>                 URL: https://issues.apache.org/jira/browse/SOLR-1489
>             Project: Solr
>          Issue Type: Bug
>         Environment: Jetty-6.1.3
> Jetty-6.1.21
> Jetty-7.0.0RC6
>            Reporter: Jun Ohtani
>            Assignee: Koji Sekiguchi
>            Priority: Critical
>         Attachments: error_utf8-example.xml, jettybugsample.war
>
>
> 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. )

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-1489) A UTF-8 character is output twice (Bug in Jetty)

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

    [ https://issues.apache.org/jira/browse/SOLR-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12779814#action_12779814 ]

Koji Sekiguchi commented on SOLR-1489:
--------------------------------------

Ok, http://jira.codehaus.org/browse/JETTY-1122 has been marked as fixed and jetty 6.1.22 released. Ohtani-san, can you test the new jetty with your test case to see the bug is gone? Thanks.

> A UTF-8 character is output twice (Bug in Jetty)
> ------------------------------------------------
>
>                 Key: SOLR-1489
>                 URL: https://issues.apache.org/jira/browse/SOLR-1489
>             Project: Solr
>          Issue Type: Bug
>         Environment: Jetty-6.1.3
> Jetty-6.1.21
> Jetty-7.0.0RC6
>            Reporter: Jun Ohtani
>            Assignee: Koji Sekiguchi
>            Priority: Critical
>         Attachments: error_utf8-example.xml, jettybugsample.war
>
>
> 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. )

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-1489) A UTF-8 character is output twice (Bug in Jetty)

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

    [ https://issues.apache.org/jira/browse/SOLR-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12779848#action_12779848 ]

Jun Ohtani commented on SOLR-1489:
----------------------------------

Sekiguchi-san, I test new jetty.
This bug was not reproduced with jettybugsample.war.

It doesn't test in error_utf8-example.xml. It is because the size of the buffer in new jetty has been changed.

> A UTF-8 character is output twice (Bug in Jetty)
> ------------------------------------------------
>
>                 Key: SOLR-1489
>                 URL: https://issues.apache.org/jira/browse/SOLR-1489
>             Project: Solr
>          Issue Type: Bug
>         Environment: Jetty-6.1.3
> Jetty-6.1.21
> Jetty-7.0.0RC6
>            Reporter: Jun Ohtani
>            Assignee: Koji Sekiguchi
>            Priority: Critical
>         Attachments: error_utf8-example.xml, jettybugsample.war
>
>
> 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. )

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-1489) A UTF-8 character is output twice (Bug in Jetty)

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

     [ https://issues.apache.org/jira/browse/SOLR-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jun Ohtani updated SOLR-1489:
-----------------------------

    Attachment: servlet-api-2.5-20081211.jar
                jetty-util-6.1.22.jar
                jetty-6.1.22.jar

Jetty-6.1.22's jar

> A UTF-8 character is output twice (Bug in Jetty)
> ------------------------------------------------
>
>                 Key: SOLR-1489
>                 URL: https://issues.apache.org/jira/browse/SOLR-1489
>             Project: Solr
>          Issue Type: Bug
>         Environment: Jetty-6.1.3
> Jetty-6.1.21
> Jetty-7.0.0RC6
>            Reporter: Jun Ohtani
>            Assignee: Koji Sekiguchi
>            Priority: Critical
>         Attachments: error_utf8-example.xml, jetty-6.1.22.jar, jetty-util-6.1.22.jar, jettybugsample.war, servlet-api-2.5-20081211.jar
>
>
> 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. )

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-1489) A UTF-8 character is output twice (Bug in Jetty)

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

     [ https://issues.apache.org/jira/browse/SOLR-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jun Ohtani updated SOLR-1489:
-----------------------------

    Attachment: jsp-2.1.zip

jsp-2.1 dir

> A UTF-8 character is output twice (Bug in Jetty)
> ------------------------------------------------
>
>                 Key: SOLR-1489
>                 URL: https://issues.apache.org/jira/browse/SOLR-1489
>             Project: Solr
>          Issue Type: Bug
>         Environment: Jetty-6.1.3
> Jetty-6.1.21
> Jetty-7.0.0RC6
>            Reporter: Jun Ohtani
>            Assignee: Koji Sekiguchi
>            Priority: Critical
>         Attachments: error_utf8-example.xml, jetty-6.1.22.jar, jetty-util-6.1.22.jar, jettybugsample.war, jsp-2.1.zip, servlet-api-2.5-20081211.jar
>
>
> 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. )

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-1489) A UTF-8 character is output twice (Bug in Jetty)

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

    [ https://issues.apache.org/jira/browse/SOLR-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782335#action_12782335 ]

Koji Sekiguchi commented on SOLR-1489:
--------------------------------------

Thanks, Ohtani-san.

Using these new jetty jars (6.1.22), I run ant test, but I got a failure:

{code:title=TEST-org.apache.solr.servlet.CacheHeaderTest.txt}
Testcase: testCacheVetoHandler took 2.469 sec
Testcase: testCacheVetoException took 1.25 sec
        FAILED
null expected:<[no-cache, ]no-store> but was:<[must-revalidate,no-cache,]no-store>
junit.framework.ComparisonFailure: null expected:<[no-cache, ]no-store> but was:<[must-revalidate,no-cache,]no-store>
        at org.apache.solr.servlet.CacheHeaderTest.checkVetoHeaders(CacheHeaderTest.java:65)
        at org.apache.solr.servlet.CacheHeaderTest.testCacheVetoException(CacheHeaderTest.java:59)

Testcase: testLastModified took 1.188 sec
Testcase: testEtag took 1.11 sec
Testcase: testCacheControl took 1.391 sec
{code}

According to SOLR-632, the cache header related test was failed when we used jetty-6.1.11, Lars filed https://jira.codehaus.org/browse/JETTY-646. Now the issue has been fixed, I thought jetty-6.1.22 should work. I've not looked into the details of cache header test, though.

> A UTF-8 character is output twice (Bug in Jetty)
> ------------------------------------------------
>
>                 Key: SOLR-1489
>                 URL: https://issues.apache.org/jira/browse/SOLR-1489
>             Project: Solr
>          Issue Type: Bug
>         Environment: Jetty-6.1.3
> Jetty-6.1.21
> Jetty-7.0.0RC6
>            Reporter: Jun Ohtani
>            Assignee: Koji Sekiguchi
>            Priority: Critical
>         Attachments: error_utf8-example.xml, jetty-6.1.22.jar, jetty-util-6.1.22.jar, jettybugsample.war, jsp-2.1.zip, servlet-api-2.5-20081211.jar
>
>
> 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. )

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-1489) A UTF-8 character is output twice (Bug in Jetty)

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

     [ https://issues.apache.org/jira/browse/SOLR-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi updated SOLR-1489:
---------------------------------

    Attachment: SOLR-1489.patch

Attached patch fixes the above failure, but I got another failure (no expires header):

{code}
Testcase: testCacheVetoHandler took 3.29 sec
Testcase: testCacheVetoException took 1.395 sec
        FAILED
We got no Expires header
junit.framework.AssertionFailedError: We got no Expires header
        at org.apache.solr.servlet.CacheHeaderTest.checkVetoHeaders(CacheHeaderTest.java:73)
        at org.apache.solr.servlet.CacheHeaderTest.testCacheVetoException(CacheHeaderTest.java:59)

Testcase: testLastModified took 1.485 sec
Testcase: testEtag took 1.577 sec
Testcase: testCacheControl took 1.035 sec
{code}


> A UTF-8 character is output twice (Bug in Jetty)
> ------------------------------------------------
>
>                 Key: SOLR-1489
>                 URL: https://issues.apache.org/jira/browse/SOLR-1489
>             Project: Solr
>          Issue Type: Bug
>         Environment: Jetty-6.1.3
> Jetty-6.1.21
> Jetty-7.0.0RC6
>            Reporter: Jun Ohtani
>            Assignee: Koji Sekiguchi
>            Priority: Critical
>         Attachments: error_utf8-example.xml, jetty-6.1.22.jar, jetty-util-6.1.22.jar, jettybugsample.war, jsp-2.1.zip, servlet-api-2.5-20081211.jar, SOLR-1489.patch
>
>
> 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. )

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.