-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(admin-api): nested parameters can be parsed correctly when using …
…form-urlencoded requests (#13668) When using curl to send a form-urlencoded request with nested parameters, such as $ curl -X POST http://localhost:8001/parsed_params \ --data 'items[1]=foo' \ --data 'items[2]=bar' the expected response is {"items":["foo","bar"]}, but instead, it returns {"items":{}}. This is actually an EE issue, but I see that there is a risk of this in CE even though it doesn't currently occur. So I initiated that fix on CE. The cause of the problem is due to the fact that nested parameters are lost when the decode_args method is called twice, without this fix. FTI-6165
- Loading branch information
Showing
4 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
message: Fixed an issue where nested parameters can not be parsed correctly when using form-urlencoded requests. | ||
type: bugfix | ||
scope: Admin API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5cab556
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bazel Build
Docker image available
kong/kong:5cab556adc6b0c74c11b83baeb2b81010881e8dc
Artifacts available https://github.com/Kong/kong/actions/runs/11607298625