-
Notifications
You must be signed in to change notification settings - Fork 276
Description
Feature Request
When connecting to a backend service, there is a problem if the ProxyPath is not to be encoded.
Here is an example:
The connected backend service requires the following parameter to provide the data:
smart.data%2Fdemo%2Frepo%2F1%2F1%2F454576463545648365874
The transfer is done with the following command
curl --location --request GET 'http://localhost:19191/api/public/1/smart.data%2Fdemo%2Frepo%2F1%2F1%2F454576463545648365874' \
--header 'Authorization: 1234' \
--header 'X-Api key: password'
In the DataPlane log console, you can see that the URL is encoded
DEBUG 2024-02-13T12:34:06.879157137 Executing HTTP request: https://backend/repository/smart.data/demo/repo/1/1/454576463545648365874
But the backend expects the following url
https://backend/repository/smart.data%2Fdemo%2Frepo%2F1%2F1%2F454576463545648365874
For this use case it should be possible to make the decoding configurable
Which Areas Would Be Affected?
data-plane-http
Why Is the Feature Desired?
Enhanced compatibility with back-end systems
Solution Proposal
Change/extend the implementation in
Line 102 in 1324429
builder.addPathSegments(sanitizedPath); |