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
One case this affects our users is the GitLab Connector.
Expected Behavior
Already encoded elements of the URL should not be decoded and sent as is to the upstream server.
Solutions
We could provided an optional property in the request mode to deactivate the automatic URL decoding. This flag disables the decoding on our side and would keep the URL as is. The flag could be marked as hidden defaulting to true and can optionally be disabled for example in the GitLab Connector for calls that support branch names.
Update the Gitlab Connector accordingly to avoid URL encoding there.
Describe the Bug
We received a support request from a client: https://jira.camunda.com/browse/SUPPORT-24612?focusedCommentId=382201&atlLinkOrigin=c2xhY2staW50ZWdyYXRpb258Y29tbWVudA%3D%3D
The REST Connector by default decodes incoming URLs to properly encoded them again. This removed already encoded elements of the incoming URL.
Example: "http://your.test.server/test%2Ftest" --> "http://your.test.server/test/test"
The server requires the last path segment to be encoded as "test%2Ftest" is the name of the resource.
One example where this behavior leads to issues is in the GitLab Connector as GitLab requires users to encode slashes in URLs when they are part of branch names: https://forum.gitlab.com/t/how-to-get-with-api-a-branch-name-containing-slashes/59347/5
Steps to Reproduce
One case this affects our users is the GitLab Connector.
Expected Behavior
Already encoded elements of the URL should not be decoded and sent as is to the upstream server.
Solutions
We could provided an optional property in the request mode to deactivate the automatic URL decoding. This flag disables the decoding on our side and would keep the URL as is. The flag could be marked as hidden defaulting to true and can optionally be disabled for example in the GitLab Connector for calls that support branch names.
Update the Gitlab Connector accordingly to avoid URL encoding there.
An alternative would be to refactor our URL decoding in the HTTP base connector by keeping elements that dont require re-encoding as they are like it was done in the previous implementation in the Google HTTP Client library: https://github.com/googleapis/google-http-java-client/blob/main/google-http-client/src/main/java/com/google/api/client/util/escape/CharEscapers.java
Environment
The text was updated successfully, but these errors were encountered: