Uploaded image for project: 'ZZZ-WSO2 Carbon'
  1. ZZZ-WSO2 Carbon
  2. CARBON-12298

Attribute of a xml element is missing after an <assign/> a value for that xml element

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 3.2.2
    • Fix Version/s: 4.0.0
    • Labels:
      None
    • Severity:
      Critical
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      How to reproduce the issue:
      1. Deploy the attached testXPathAttribute.zip
      2. Invoke it with

      <body>
      <p:testProcessRequest xmlns="http://eclipse.org/bpel/sample">
      <p:input>1</p:input>
      </p:testProcessRequest>
      </body>

      3. Check the variable value of "extPLRequest"

      4. It should have been something like

      <message>
      <parameters>
      <getRewardTransRecord xmlns="http://ws.wso2.org/dataservice" testAttribute="testAttributeValue">
      <ns1:userIdin testUserIdAttribute="testValue" xmlns:ns1="http://ws.wso2.org/dataservice">1</ns1:userIdin>
      <ns1:countIn xmlns:ns1="http://ws.wso2.org/dataservice">9</ns1:countIn>
      </getRewardTransRecord>
      </parameters>
      </message>

      But the real value is
      <message>
      <parameters>
      <getRewardTransRecord xmlns="http://ws.wso2.org/dataservice" testAttribute="testAttributeValue">
      <ns1:userIdin xmlns:ns1="http://ws.wso2.org/dataservice">1</ns1:userIdin>
      <ns1:countIn xmlns:ns1="http://ws.wso2.org/dataservice">9</ns1:countIn>
      </getRewardTransRecord>
      </parameters>
      </message>

      So the attribute is missing.

      Regards,
      Denis Weerasiri

      Note- Associated JIRA https://issues.apache.org/jira/browse/ODE-960

        Attachments

          Activity

            People

            • Assignee:
              waruna@wso2.com Waruna Ranasinghe
              Reporter:
              denis@wso2.com Denis Weerasiri
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: