-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fix(admin): reject AdminAPI call with empty tags #13723
Merged
Merged
+70
−5
Conversation
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
github-actions
bot
added
core/admin-api
cherry-pick kong-ee
schedule this PR for cherry-picking to kong/kong-ee
labels
Sep 30, 2024
nowNick
force-pushed
the
fix/fix-for-tags-null
branch
2 times, most recently
from
October 1, 2024 16:00
26a3788
to
813fd53
Compare
nowNick
changed the title
fix(admin): allow to receive empty tags
fix(admin): reject AdminAPI call with empty tags
Oct 1, 2024
team-gateway-bot
added
the
author/community
PRs from the open-source community (not Kong Inc)
label
Oct 1, 2024
hutchic
approved these changes
Oct 16, 2024
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.
LGTM. Does the openapi spec need to be updated to reflect?
brentos
reviewed
Oct 29, 2024
brentos
reviewed
Oct 29, 2024
2 tasks
nowNick
force-pushed
the
fix/fix-for-tags-null
branch
from
October 29, 2024 15:47
813fd53
to
3818583
Compare
brentos
reviewed
Oct 29, 2024
brentos
reviewed
Oct 29, 2024
Just a couple minor comments, otherwise LGTM |
locao
approved these changes
Oct 30, 2024
nowNick
force-pushed
the
fix/fix-for-tags-null
branch
2 times, most recently
from
October 30, 2024 16:29
4c7f8b0
to
3b5af35
Compare
PR Review fixes - remove typo emtpy -> empty
PR Review fixes - improve error message: remove info about empty string
brentos
approved these changes
Oct 30, 2024
github-actions bot
pushed a commit
that referenced
this pull request
Oct 30, 2024
(cherry picked from commit d1069e6)
3 tasks
Cherry-pick failed for Please cherry-pick the changes locally. git remote add upstream https://github.com/kong/kong-ee
git fetch upstream master
git worktree add -d .worktree/cherry-pick-13723-to-master-to-upstream upstream/master
cd .worktree/cherry-pick-13723-to-master-to-upstream
git checkout -b cherry-pick-13723-to-master-to-upstream
ancref=$(git merge-base 94c7a9ff549f976888948788241da1b221f17ffa 3b5af359cda51f1f09d72a674cfa38dc3349b554)
git cherry-pick -x $ancref..3b5af359cda51f1f09d72a674cfa38dc3349b554 |
Successfully created backport PR for |
github-actions
bot
added
the
incomplete-cherry-pick
A cherry-pick was incomplete and needs manual intervention
label
Oct 30, 2024
locao
pushed a commit
that referenced
this pull request
Oct 30, 2024
(cherry picked from commit d1069e6)
kevwilliams
pushed a commit
that referenced
this pull request
Oct 30, 2024
(cherry picked from commit d1069e6)
StarlightIbuki
pushed a commit
that referenced
this pull request
Oct 31, 2024
locao
removed
the
incomplete-cherry-pick
A cherry-pick was incomplete and needs manual intervention
label
Oct 31, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
author/community
PRs from the open-source community (not Kong Inc)
backport release/3.8.x
cherry-pick kong-ee
schedule this PR for cherry-picking to kong/kong-ee
core/admin-api
size/M
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
When querying entities that have tags assigned a user can send a request with
tags
parameter. Previously sendingtags=
(empty parameter) resulted in 500 error. This commit changes that so that it returns 400 error as empty explicit tags are not allowed.Checklist
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdIssue reference
KAG-5496
Fix #13591