Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-318

Encoding problem in text returned by HTTP-SU

    XMLWordPrintableJSON

Details

    Description

      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>

      Attachments

        1. wsdl-first-sa-3.2-SNAPSHOT.jar
          94 kB
          Gert Vanthienen
        2. SM-1119.patch
          0.7 kB
          Gert Vanthienen
        3. multimatch-search2.zip
          16 kB
          Philip Webster
        4. ASF.LICENSE.NOT.GRANTED--multimatch-search.zip
          16 kB
          Philip Webster

        Activity

          People

            Unassigned Unassigned
            phil_webster Philip Webster
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: