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.