Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not consider semicolon as query param separator #9131

Closed
exalate-issue-sync bot opened this issue Jul 11, 2023 · 0 comments
Closed

Do not consider semicolon as query param separator #9131

exalate-issue-sync bot opened this issue Jul 11, 2023 · 0 comments

Comments

@exalate-issue-sync
Copy link

exalate-issue-sync bot commented Jul 11, 2023

The API uses a semicolon as a value separator for query parameters and then the ; is getting translated to &.

As it maybe a Breaking Change for some users, we will introduce a settings into the gravitee.yaml to define the behaviour to adopt.

To handle this without impacting other APIs that may need to handle semicolon as a separator, implement a new custom-query-parameters-parser policy: https://github.com/gravitee-io/gravitee-policy-custom-query-parameters-parser

How to test

  • create an api
  • add the policy in your flow
  • do some calls with query parameters containing semicolon (for ewample ?filter=field1%20name;field2%20age)

Should also work in debug mode

Additional information

Policy is not part of the default bundle
you can find it here: https://download.gravitee.io/#graviteeio-apim/plugins/policies/gravitee-policy-custom-query-parameters-parser/

@exalate-issue-sync exalate-issue-sync bot changed the title Do not considere semicolon as query param separator Do not consider semicolon as query param separator Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants