You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
The fromBytes() API internally uses the decimal:fromString() method which is currently panics for invalid string instead of returning an error. Refer ballerina-platform/ballerina-lang#43377 for lang issue.
Steps to reproduce:
Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):
The text was updated successfully, but these errors were encountered:
As a workaround we need to manually call the trap when calling decimal:fromString() method.
MohamedSabthar
changed the title
Copybook fromBytes() panic when invalid string provided as a decimal value
Copybook fromBytes() panic when invalid value provided as a decimal value
Sep 11, 2024
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.
- Reason/EngineeringMistake - The issue occurred due to a mistake made in the past. - Reason/Regression - The issue has introduced a regression. - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components. - Reason/Complex - Issue occurred due to complex scenario. - Reason/Invalid - Issue is invalid. - Reason/Other - None of the above cases.
Description:
The fromBytes() API internally uses the decimal:fromString() method which is currently panics for invalid string instead of returning an error. Refer ballerina-platform/ballerina-lang#43377 for lang issue.
Steps to reproduce:
Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):
The text was updated successfully, but these errors were encountered: