You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Philip Webster (JIRA)" <ji...@apache.org> on 2007/10/29 16:36:23 UTC
[jira] Created: (SM-1119) Encoding problem in text returned by
HTTP-SU
Encoding problem in text returned by HTTP-SU
--------------------------------------------
Key: SM-1119
URL: https://issues.apache.org/activemq/browse/SM-1119
Project: ServiceMix
Issue Type: Bug
Components: servicemix-core, servicemix-http, servicemix-jsr181
Affects Versions: 3.1.2, 3.1.1, 3.1
Environment: This issue can be reproduced on Windows XP Pro and Red Hat Linux.
Reporter: Philip Webster
Attachments: multimatch-search.zip
It looks as though there is an encoding problem at the point after the results are returned from the JSR181 service unit.
The issue can be reproduced on 3.1, 3.1.1, 3.1.2 and the October 25th snapshot of 3.2
As discussed on this thread:
http://www.nabble.com/Encoding-problem-in-text-returned-by-HTTP-SU-tf4676140s12049r3.html
The attached service usints and service assembly can be used to reproduce the issue.
Use the following input against http://localhost:8492/MultiMatchSearch/
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sear="http://eir.multimatch.org/search">
<soapenv:Header/>
<soapenv:Body>
<sear:doSearchRequest>
<query>
<searchTriples>
<searchTerms>Charles Perrault</searchTerms>
<searchFields>Title</searchFields>
<searchOperators>~</searchOperators>
</searchTriples>
<queryLanguage>SPANISH</queryLanguage>
<resultLanguages>ENGLISH</resultLanguages>
<metadataSchema>nonCached</metadataSchema>
<fields>metadata</fields>
<contentTypesRequested>
<contentType>TEXT</contentType>
<startResults>0</startResults>
<numberOfResults>1</numberOfResults>
</contentTypesRequested>
</query>
<returnFullObjects>false</returnFullObjects>
</sear:doSearchRequest>
</soapenv:Body>
</soapenv:Envelope>
The result is:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
<results>
<textResults>
<identifier>urn://org.multimatch/search/result/1193668323010</identifier>
<Title>MeñiquÃn Charles Perrault ; traducción de Teodoro Baró</Title>
<sourceUrl>http://www.google.com/</sourceUrl>
</textResults>
</results>
</ns2:doSearchResponse>
</soapenv:Body>
</soapenv:Envelope>
The result should be:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
<results>
<textResults>
<identifier>urn://org.multimatch/search/result/1193668323010</identifier>
<Title>Meñiquín Charles Perrault ; traducción de Teodoro Baró</Title>
<sourceUrl>http://www.google.com/</sourceUrl>
</textResults>
</results>
</ns2:doSearchResponse>
</soapenv:Body>
</soapenv:Envelope>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SM-1119) Encoding problem in text returned by
HTTP-SU
Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gert Vanthienen updated SM-1119:
--------------------------------
Attachment: wsdl-first-sa-3.2-SNAPSHOT.jar
I was unable to build the example provided (due to missing libraries that are not publicly available), but I think I managed to reproduce the same error with this SA.
> Encoding problem in text returned by HTTP-SU
> --------------------------------------------
>
> Key: SM-1119
> URL: https://issues.apache.org/activemq/browse/SM-1119
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-core, servicemix-http, servicemix-jsr181
> Affects Versions: 3.1, 3.1.1, 3.1.2
> Environment: This issue can be reproduced on Windows XP Pro and Red Hat Linux.
> Reporter: Philip Webster
> Attachments: multimatch-search.zip, wsdl-first-sa-3.2-SNAPSHOT.jar
>
>
> It looks as though there is an encoding problem at the point after the results are returned from the JSR181 service unit.
> The issue can be reproduced on 3.1, 3.1.1, 3.1.2 and the October 25th snapshot of 3.2
> As discussed on this thread:
> http://www.nabble.com/Encoding-problem-in-text-returned-by-HTTP-SU-tf4676140s12049r3.html
> The attached service usints and service assembly can be used to reproduce the issue.
> Use the following input against http://localhost:8492/MultiMatchSearch/
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sear="http://eir.multimatch.org/search">
> <soapenv:Header/>
> <soapenv:Body>
> <sear:doSearchRequest>
> <query>
> <searchTriples>
> <searchTerms>Charles Perrault</searchTerms>
> <searchFields>Title</searchFields>
> <searchOperators>~</searchOperators>
> </searchTriples>
> <queryLanguage>SPANISH</queryLanguage>
> <resultLanguages>ENGLISH</resultLanguages>
> <metadataSchema>nonCached</metadataSchema>
> <fields>metadata</fields>
> <contentTypesRequested>
> <contentType>TEXT</contentType>
> <startResults>0</startResults>
> <numberOfResults>1</numberOfResults>
> </contentTypesRequested>
> </query>
> <returnFullObjects>false</returnFullObjects>
> </sear:doSearchRequest>
> </soapenv:Body>
> </soapenv:Envelope>
> The result is:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
> <results>
> <textResults>
> <identifier>urn://org.multimatch/search/result/1193668323010</identifier>
> <Title>MeñiquÃn Charles Perrault ; traducción de Teodoro Baró</Title>
> <sourceUrl>http://www.google.com/</sourceUrl>
> </textResults>
> </results>
> </ns2:doSearchResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> The result should be:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
> <results>
> <textResults>
> <identifier>urn://org.multimatch/search/result/1193668323010</identifier>
> <Title>Meñiquín Charles Perrault ; traducción de Teodoro Baró</Title>
> <sourceUrl>http://www.google.com/</sourceUrl>
> </textResults>
> </results>
> </ns2:doSearchResponse>
> </soapenv:Body>
> </soapenv:Envelope>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SM-1119) Encoding problem in text returned by
HTTP-SU
Posted by "Philip Webster (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40582 ]
Philip Webster commented on SM-1119:
------------------------------------
I've had trouble building ServiceMix to test the patch due to missing dependencies in the repos. However, I have created a new version of the sample with the non-public dependencies removed.
> Encoding problem in text returned by HTTP-SU
> --------------------------------------------
>
> Key: SM-1119
> URL: https://issues.apache.org/activemq/browse/SM-1119
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-core, servicemix-http, servicemix-jsr181
> Affects Versions: 3.1, 3.1.1, 3.1.2
> Environment: This issue can be reproduced on Windows XP Pro and Red Hat Linux.
> Reporter: Philip Webster
> Attachments: multimatch-search.zip, multimatch-search2.zip, SM-1119.patch, wsdl-first-sa-3.2-SNAPSHOT.jar
>
>
> It looks as though there is an encoding problem at the point after the results are returned from the JSR181 service unit.
> The issue can be reproduced on 3.1, 3.1.1, 3.1.2 and the October 25th snapshot of 3.2
> As discussed on this thread:
> http://www.nabble.com/Encoding-problem-in-text-returned-by-HTTP-SU-tf4676140s12049r3.html
> The attached service usints and service assembly can be used to reproduce the issue.
> Use the following input against http://localhost:8492/MultiMatchSearch/
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sear="http://eir.multimatch.org/search">
> <soapenv:Header/>
> <soapenv:Body>
> <sear:doSearchRequest>
> <query>
> <searchTriples>
> <searchTerms>Charles Perrault</searchTerms>
> <searchFields>Title</searchFields>
> <searchOperators>~</searchOperators>
> </searchTriples>
> <queryLanguage>SPANISH</queryLanguage>
> <resultLanguages>ENGLISH</resultLanguages>
> <metadataSchema>nonCached</metadataSchema>
> <fields>metadata</fields>
> <contentTypesRequested>
> <contentType>TEXT</contentType>
> <startResults>0</startResults>
> <numberOfResults>1</numberOfResults>
> </contentTypesRequested>
> </query>
> <returnFullObjects>false</returnFullObjects>
> </sear:doSearchRequest>
> </soapenv:Body>
> </soapenv:Envelope>
> The result is:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
> <results>
> <textResults>
> <identifier>urn://org.multimatch/search/result/1193668323010</identifier>
> <Title>MeñiquÃn Charles Perrault ; traducción de Teodoro Baró</Title>
> <sourceUrl>http://www.google.com/</sourceUrl>
> </textResults>
> </results>
> </ns2:doSearchResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> The result should be:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
> <results>
> <textResults>
> <identifier>urn://org.multimatch/search/result/1193668323010</identifier>
> <Title>Meñiquín Charles Perrault ; traducción de Teodoro Baró</Title>
> <sourceUrl>http://www.google.com/</sourceUrl>
> </textResults>
> </results>
> </ns2:doSearchResponse>
> </soapenv:Body>
> </soapenv:Envelope>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SM-1119) Encoding problem in text returned by
HTTP-SU
Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gert Vanthienen resolved SM-1119.
---------------------------------
Resolution: Fixed
Fix Version/s: 3.3
3.2.1
3.1.3
Thank you, Philip, for providing the necessary test SAs to verify this fix!
Adding "charset=utf-8" to the content type fixes the issue:
http://svn.apache.org/viewvc?view=rev&revision=594063 (3.1 branch)
http://svn.apache.org/viewvc?view=rev&revision=594078 (3.2 branch)
http://svn.apache.org/viewvc?view=rev&revision=594064 (3.3 -- trunk)
> Encoding problem in text returned by HTTP-SU
> --------------------------------------------
>
> Key: SM-1119
> URL: https://issues.apache.org/activemq/browse/SM-1119
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-core, servicemix-http, servicemix-jsr181
> Affects Versions: 3.1, 3.1.1, 3.1.2
> Environment: This issue can be reproduced on Windows XP Pro and Red Hat Linux.
> Reporter: Philip Webster
> Fix For: 3.1.3, 3.2.1, 3.3
>
> Attachments: multimatch-search.zip, multimatch-search2.zip, SM-1119.patch, wsdl-first-sa-3.2-SNAPSHOT.jar
>
>
> It looks as though there is an encoding problem at the point after the results are returned from the JSR181 service unit.
> The issue can be reproduced on 3.1, 3.1.1, 3.1.2 and the October 25th snapshot of 3.2
> As discussed on this thread:
> http://www.nabble.com/Encoding-problem-in-text-returned-by-HTTP-SU-tf4676140s12049r3.html
> The attached service usints and service assembly can be used to reproduce the issue.
> Use the following input against http://localhost:8492/MultiMatchSearch/
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sear="http://eir.multimatch.org/search">
> <soapenv:Header/>
> <soapenv:Body>
> <sear:doSearchRequest>
> <query>
> <searchTriples>
> <searchTerms>Charles Perrault</searchTerms>
> <searchFields>Title</searchFields>
> <searchOperators>~</searchOperators>
> </searchTriples>
> <queryLanguage>SPANISH</queryLanguage>
> <resultLanguages>ENGLISH</resultLanguages>
> <metadataSchema>nonCached</metadataSchema>
> <fields>metadata</fields>
> <contentTypesRequested>
> <contentType>TEXT</contentType>
> <startResults>0</startResults>
> <numberOfResults>1</numberOfResults>
> </contentTypesRequested>
> </query>
> <returnFullObjects>false</returnFullObjects>
> </sear:doSearchRequest>
> </soapenv:Body>
> </soapenv:Envelope>
> The result is:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
> <results>
> <textResults>
> <identifier>urn://org.multimatch/search/result/1193668323010</identifier>
> <Title>MeñiquÃn Charles Perrault ; traducción de Teodoro Baró</Title>
> <sourceUrl>http://www.google.com/</sourceUrl>
> </textResults>
> </results>
> </ns2:doSearchResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> The result should be:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
> <results>
> <textResults>
> <identifier>urn://org.multimatch/search/result/1193668323010</identifier>
> <Title>Meñiquín Charles Perrault ; traducción de Teodoro Baró</Title>
> <sourceUrl>http://www.google.com/</sourceUrl>
> </textResults>
> </results>
> </ns2:doSearchResponse>
> </soapenv:Body>
> </soapenv:Envelope>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SM-1119) Encoding problem in text returned by
HTTP-SU
Posted by "Jorge Rodríguez Pedrianes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40587 ]
Jorge Rodríguez Pedrianes commented on SM-1119:
-----------------------------------------------
Hello!
I've seen your patch but I think that it can be wrong if the outcome message isn't in UTF-8 charset. For example, if outcome message is codified in ISO-8859-1 must be charset=ISO-8859-1.
When a SoapWriter is created, we must determine the outcome message charset. I think that It's incorrect to define an charset by default.
Thaks
> Encoding problem in text returned by HTTP-SU
> --------------------------------------------
>
> Key: SM-1119
> URL: https://issues.apache.org/activemq/browse/SM-1119
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-core, servicemix-http, servicemix-jsr181
> Affects Versions: 3.1, 3.1.1, 3.1.2
> Environment: This issue can be reproduced on Windows XP Pro and Red Hat Linux.
> Reporter: Philip Webster
> Fix For: 3.1.3, 3.2.1, 3.3
>
> Attachments: multimatch-search.zip, multimatch-search2.zip, SM-1119.patch, wsdl-first-sa-3.2-SNAPSHOT.jar
>
>
> It looks as though there is an encoding problem at the point after the results are returned from the JSR181 service unit.
> The issue can be reproduced on 3.1, 3.1.1, 3.1.2 and the October 25th snapshot of 3.2
> As discussed on this thread:
> http://www.nabble.com/Encoding-problem-in-text-returned-by-HTTP-SU-tf4676140s12049r3.html
> The attached service usints and service assembly can be used to reproduce the issue.
> Use the following input against http://localhost:8492/MultiMatchSearch/
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sear="http://eir.multimatch.org/search">
> <soapenv:Header/>
> <soapenv:Body>
> <sear:doSearchRequest>
> <query>
> <searchTriples>
> <searchTerms>Charles Perrault</searchTerms>
> <searchFields>Title</searchFields>
> <searchOperators>~</searchOperators>
> </searchTriples>
> <queryLanguage>SPANISH</queryLanguage>
> <resultLanguages>ENGLISH</resultLanguages>
> <metadataSchema>nonCached</metadataSchema>
> <fields>metadata</fields>
> <contentTypesRequested>
> <contentType>TEXT</contentType>
> <startResults>0</startResults>
> <numberOfResults>1</numberOfResults>
> </contentTypesRequested>
> </query>
> <returnFullObjects>false</returnFullObjects>
> </sear:doSearchRequest>
> </soapenv:Body>
> </soapenv:Envelope>
> The result is:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
> <results>
> <textResults>
> <identifier>urn://org.multimatch/search/result/1193668323010</identifier>
> <Title>MeñiquÃn Charles Perrault ; traducción de Teodoro Baró</Title>
> <sourceUrl>http://www.google.com/</sourceUrl>
> </textResults>
> </results>
> </ns2:doSearchResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> The result should be:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
> <results>
> <textResults>
> <identifier>urn://org.multimatch/search/result/1193668323010</identifier>
> <Title>Meñiquín Charles Perrault ; traducción de Teodoro Baró</Title>
> <sourceUrl>http://www.google.com/</sourceUrl>
> </textResults>
> </results>
> </ns2:doSearchResponse>
> </soapenv:Body>
> </soapenv:Envelope>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SM-1119) Encoding problem in text returned by
HTTP-SU
Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gert Vanthienen updated SM-1119:
--------------------------------
Attachment: SM-1119.patch
Philip,
The WSDL first SA I created works correctly if I add "encoding=utf-8" to the content type in SoapWriter. Could you try if this patch also solves your original problem?
Gert
> Encoding problem in text returned by HTTP-SU
> --------------------------------------------
>
> Key: SM-1119
> URL: https://issues.apache.org/activemq/browse/SM-1119
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-core, servicemix-http, servicemix-jsr181
> Affects Versions: 3.1, 3.1.1, 3.1.2
> Environment: This issue can be reproduced on Windows XP Pro and Red Hat Linux.
> Reporter: Philip Webster
> Attachments: multimatch-search.zip, SM-1119.patch, wsdl-first-sa-3.2-SNAPSHOT.jar
>
>
> It looks as though there is an encoding problem at the point after the results are returned from the JSR181 service unit.
> The issue can be reproduced on 3.1, 3.1.1, 3.1.2 and the October 25th snapshot of 3.2
> As discussed on this thread:
> http://www.nabble.com/Encoding-problem-in-text-returned-by-HTTP-SU-tf4676140s12049r3.html
> The attached service usints and service assembly can be used to reproduce the issue.
> Use the following input against http://localhost:8492/MultiMatchSearch/
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sear="http://eir.multimatch.org/search">
> <soapenv:Header/>
> <soapenv:Body>
> <sear:doSearchRequest>
> <query>
> <searchTriples>
> <searchTerms>Charles Perrault</searchTerms>
> <searchFields>Title</searchFields>
> <searchOperators>~</searchOperators>
> </searchTriples>
> <queryLanguage>SPANISH</queryLanguage>
> <resultLanguages>ENGLISH</resultLanguages>
> <metadataSchema>nonCached</metadataSchema>
> <fields>metadata</fields>
> <contentTypesRequested>
> <contentType>TEXT</contentType>
> <startResults>0</startResults>
> <numberOfResults>1</numberOfResults>
> </contentTypesRequested>
> </query>
> <returnFullObjects>false</returnFullObjects>
> </sear:doSearchRequest>
> </soapenv:Body>
> </soapenv:Envelope>
> The result is:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
> <results>
> <textResults>
> <identifier>urn://org.multimatch/search/result/1193668323010</identifier>
> <Title>MeñiquÃn Charles Perrault ; traducción de Teodoro Baró</Title>
> <sourceUrl>http://www.google.com/</sourceUrl>
> </textResults>
> </results>
> </ns2:doSearchResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> The result should be:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
> <results>
> <textResults>
> <identifier>urn://org.multimatch/search/result/1193668323010</identifier>
> <Title>Meñiquín Charles Perrault ; traducción de Teodoro Baró</Title>
> <sourceUrl>http://www.google.com/</sourceUrl>
> </textResults>
> </results>
> </ns2:doSearchResponse>
> </soapenv:Body>
> </soapenv:Envelope>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SM-1119) Encoding problem in text returned by
HTTP-SU
Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40588 ]
Gert Vanthienen commented on SM-1119:
-------------------------------------
Right you are! Although every message will be re-encoded by the SourceTransformer, I wrongfully assumed that it would always encode the response in UTF-8, while in reality this can be configured through the 'org.apache.servicemix.default.charset' system property. Thanks for reviewing the code so carefully!
http://svn.apache.org/viewvc?view=rev&revision=594255 (3.1 branch)
http://svn.apache.org/viewvc?view=rev&revision=594267 (3.2 branch)
http://svn.apache.org/viewvc?view=rev&revision=594259 (3.3 -- trunk)
> Encoding problem in text returned by HTTP-SU
> --------------------------------------------
>
> Key: SM-1119
> URL: https://issues.apache.org/activemq/browse/SM-1119
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-core, servicemix-http, servicemix-jsr181
> Affects Versions: 3.1, 3.1.1, 3.1.2
> Environment: This issue can be reproduced on Windows XP Pro and Red Hat Linux.
> Reporter: Philip Webster
> Fix For: 3.1.3, 3.2.1, 3.3
>
> Attachments: multimatch-search.zip, multimatch-search2.zip, SM-1119.patch, wsdl-first-sa-3.2-SNAPSHOT.jar
>
>
> It looks as though there is an encoding problem at the point after the results are returned from the JSR181 service unit.
> The issue can be reproduced on 3.1, 3.1.1, 3.1.2 and the October 25th snapshot of 3.2
> As discussed on this thread:
> http://www.nabble.com/Encoding-problem-in-text-returned-by-HTTP-SU-tf4676140s12049r3.html
> The attached service usints and service assembly can be used to reproduce the issue.
> Use the following input against http://localhost:8492/MultiMatchSearch/
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sear="http://eir.multimatch.org/search">
> <soapenv:Header/>
> <soapenv:Body>
> <sear:doSearchRequest>
> <query>
> <searchTriples>
> <searchTerms>Charles Perrault</searchTerms>
> <searchFields>Title</searchFields>
> <searchOperators>~</searchOperators>
> </searchTriples>
> <queryLanguage>SPANISH</queryLanguage>
> <resultLanguages>ENGLISH</resultLanguages>
> <metadataSchema>nonCached</metadataSchema>
> <fields>metadata</fields>
> <contentTypesRequested>
> <contentType>TEXT</contentType>
> <startResults>0</startResults>
> <numberOfResults>1</numberOfResults>
> </contentTypesRequested>
> </query>
> <returnFullObjects>false</returnFullObjects>
> </sear:doSearchRequest>
> </soapenv:Body>
> </soapenv:Envelope>
> The result is:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
> <results>
> <textResults>
> <identifier>urn://org.multimatch/search/result/1193668323010</identifier>
> <Title>MeñiquÃn Charles Perrault ; traducción de Teodoro Baró</Title>
> <sourceUrl>http://www.google.com/</sourceUrl>
> </textResults>
> </results>
> </ns2:doSearchResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> The result should be:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
> <results>
> <textResults>
> <identifier>urn://org.multimatch/search/result/1193668323010</identifier>
> <Title>Meñiquín Charles Perrault ; traducción de Teodoro Baró</Title>
> <sourceUrl>http://www.google.com/</sourceUrl>
> </textResults>
> </results>
> </ns2:doSearchResponse>
> </soapenv:Body>
> </soapenv:Envelope>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SM-1119) Encoding problem in text returned by
HTTP-SU
Posted by "Philip Webster (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Philip Webster updated SM-1119:
-------------------------------
Attachment: multimatch-search2.zip
Bug example with no non-public dependencies.
> Encoding problem in text returned by HTTP-SU
> --------------------------------------------
>
> Key: SM-1119
> URL: https://issues.apache.org/activemq/browse/SM-1119
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-core, servicemix-http, servicemix-jsr181
> Affects Versions: 3.1, 3.1.1, 3.1.2
> Environment: This issue can be reproduced on Windows XP Pro and Red Hat Linux.
> Reporter: Philip Webster
> Attachments: multimatch-search.zip, multimatch-search2.zip, SM-1119.patch, wsdl-first-sa-3.2-SNAPSHOT.jar
>
>
> It looks as though there is an encoding problem at the point after the results are returned from the JSR181 service unit.
> The issue can be reproduced on 3.1, 3.1.1, 3.1.2 and the October 25th snapshot of 3.2
> As discussed on this thread:
> http://www.nabble.com/Encoding-problem-in-text-returned-by-HTTP-SU-tf4676140s12049r3.html
> The attached service usints and service assembly can be used to reproduce the issue.
> Use the following input against http://localhost:8492/MultiMatchSearch/
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sear="http://eir.multimatch.org/search">
> <soapenv:Header/>
> <soapenv:Body>
> <sear:doSearchRequest>
> <query>
> <searchTriples>
> <searchTerms>Charles Perrault</searchTerms>
> <searchFields>Title</searchFields>
> <searchOperators>~</searchOperators>
> </searchTriples>
> <queryLanguage>SPANISH</queryLanguage>
> <resultLanguages>ENGLISH</resultLanguages>
> <metadataSchema>nonCached</metadataSchema>
> <fields>metadata</fields>
> <contentTypesRequested>
> <contentType>TEXT</contentType>
> <startResults>0</startResults>
> <numberOfResults>1</numberOfResults>
> </contentTypesRequested>
> </query>
> <returnFullObjects>false</returnFullObjects>
> </sear:doSearchRequest>
> </soapenv:Body>
> </soapenv:Envelope>
> The result is:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
> <results>
> <textResults>
> <identifier>urn://org.multimatch/search/result/1193668323010</identifier>
> <Title>MeñiquÃn Charles Perrault ; traducción de Teodoro Baró</Title>
> <sourceUrl>http://www.google.com/</sourceUrl>
> </textResults>
> </results>
> </ns2:doSearchResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> The result should be:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns2:doSearchResponse xmlns:ns2="http://eir.multimatch.org/search">
> <results>
> <textResults>
> <identifier>urn://org.multimatch/search/result/1193668323010</identifier>
> <Title>Meñiquín Charles Perrault ; traducción de Teodoro Baró</Title>
> <sourceUrl>http://www.google.com/</sourceUrl>
> </textResults>
> </results>
> </ns2:doSearchResponse>
> </soapenv:Body>
> </soapenv:Envelope>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.