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
When a ballerina service is defined with the rest path parameter and invoked via a URL which contains (properly encoded)slash inside a the path segment, the array value obtained as the path parameter returns invalid result.
Make a cURL request (Please note that the 4th path segment has encoded slash):
$ curl -v "http://localhost:9090/api/path1/path2/path3%2Fsegment/path4" -X POST
The printed path segments: ["path1","path2","path3","segment","path4"]
The expected path segments: ["path1","path2","path3/segment","path4"] - path3/segment should be a single path segment
Version
Ballerina SwanLake Update 10
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered:
Description
When a ballerina service is defined with the rest path parameter and invoked via a URL which contains (properly encoded)slash inside a the path segment, the array value obtained as the path parameter returns invalid result.
Steps to Reproduce
Simple reproducible code:
Make a cURL request (Please note that the 4th path segment has encoded slash):
$ curl -v "http://localhost:9090/api/path1/path2/path3%2Fsegment/path4" -X POST
The printed path segments: ["path1","path2","path3","segment","path4"]
The expected path segments: ["path1","path2","path3/segment","path4"] -
path3/segment
should be a single path segmentVersion
Ballerina SwanLake Update 10
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered: