Closed TharmiganK closed 3 months ago
This error is coming from this parser block: https://github.com/ballerina-platform/module-ballerina-http/blob/883eb410c1536141f36e67b4f0c4d0cca90cd6ef/native/src/main/java/io/ballerina/stdlib/http/api/client/caching/ResponseCacheControlObj.java#L206 where the value is "23.45"
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:
When the
maxAge
is set to a decimal value, the resource invocation fails withNumberFormatException
.Steps to reproduce:
This can be reproduced with the following sample:
Make a request to the resource with cURL:
Affected Versions:
Ballerina SwanLake Update 8 and higher