Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When used with xml custom mapper, Int/Long values greater than 3 digits become comma separated #1046

Open
ug205 opened this issue Oct 14, 2019 · 0 comments

Comments

@ug205
Copy link

ug205 commented Oct 14, 2019

Description:
When a XML custom mapper is added, the values both int and long will be a comma-separated if the value is greater than three digits.
e.g.: 1234 --> 1,234

Suggested Labels:
wso2sp

Affected Product Version:
wso2sp-4.3.0, wso2sp-4.4.0

Steps to reproduce:

  • Create a siddhi app with a custom XML mapper
    (example sink is given below)

@sink(type = 'http-request', sink.id = "A1", publisher.url ="http://localhost:8290/services/SOAPTEST", method = "POST", headers = "'Content-Type:text/xml','SOAPAction:urn:echoInt'",
@Map(type = 'xml', @payload("soapenv:Header/soapenv:Bodyecho:echoInt{{attr1}}</echo:echoInt></soapenv:Body>")))

define stream outputStream (attr1 long);

  • Simulate the app with values higher than 3 digits.

  • Note that the payload we get for the HTTP server will have the comma-separated value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant