Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-9623

Incorrect SOAP sample when using SET input

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.10.8
    • Fix Version/s: 4.0.2
    • Component/s: WS-ECL
    • Labels:
    • Environment:
      3.10.8-8

      Description

      Consider the following query published to Roxie:

      #WORKUNIT('name','dantest');
      
      SET OF STRING	some_items := [] : STORED('items');
      
      OUTPUT(some_items,NAMED('EnteredItems'));
      OUTPUT(COUNT(some_items),NAMED('NumItems'));
      

      If you go to the query interface web page (port 8002), enter two or more return-delimited lines into the text box, then select the 'SOAP Text' popup item the resulting query looks something like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
       <soap:Body>
        <dantestRequest xmlns="urn:hpccsystems:ecl:dantest">
         <items>
      &gt;
          <Item>foo</Item>
          <Item>bar</Item>
         </items>
        </dantestRequest>
       </soap:Body>
      </soap:Envelope>
      

      Note the spurious '>' embedded in the query. This does not affect the result. Removing it also does not affect the query. It appears to be purely a visual error, but it could cause problems for people who copy and paste the example query for whatever reason.

        Attachments

          Activity

            People

            • Assignee:
              afishbeck Anthony Fishbeck
              Reporter:
              dcamper Dan S. Camper
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: