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

UNSIGNED8 values not deserialized correctly from XML source

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: 6.4.36, 7.0.20
    • Fix Version/s: 7.2.0
    • Component/s: Code Generator
    • Labels:
      None

      Description

      Any UNISIGNED8 value that is in excess of the maximum positive INTEGER8 value is deserialized as the maximum INTEGER8 value (9223372036854775807).

       

      This was first witnessed by Aleida Lima when making a SOAPCALL to a Boca Roxie service that returned UNSIGNED8 values.

       

      Anthony Fishbeck produced this simple ECL to illustrate the more generic issue:

       

      OutRecord :=

          RECORD

              UNSIGNED8 id;

              string val{xpath('id')};

          END;

       

      rec := FROMXML(OutRecord,'<Row><id>18196239629641154791</id></Row>');

      OUTPUT(rec, NAMED('FromXML'), NOXPATH);

       

      OUTPUT(PROJECT(DATASET(rec), TRANSFORM(OutRecord,SELF.id := (UNSIGNED8)LEFT.val; SELF := LEFT)), NAMED('proj'), NOXPATH);

        Attachments

          Activity

            People

            • Assignee:
              richardkchapman Richard Chapman
              Reporter:
              kev77log Kevin Logemann
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: