Skip to content

change(ua-restriction): allowlist and denylist can't be enabled at the same time#9841

Merged
juststillthinking merged 7 commits into
apache:masterfrom
jiangfucheng:ua-restriction
Jul 24, 2023
Merged

change(ua-restriction): allowlist and denylist can't be enabled at the same time#9841
juststillthinking merged 7 commits into
apache:masterfrom
jiangfucheng:ua-restriction

Conversation

@jiangfucheng

@jiangfucheng jiangfucheng commented Jul 15, 2023

Copy link
Copy Markdown
Member

Description

Fixes #7467

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

Comment thread apisix/plugins/ua-restriction.lua Outdated
@juststillthinking juststillthinking changed the title fix: allowlist and denylist can't be enabled at the same time change(ua-restriction): allowlist and denylist can't be enabled at the same time Jul 17, 2023
Comment thread apisix/plugins/ua-restriction.lua Outdated
@juststillthinking juststillthinking added the wait for update wait for the author's response in this issue/PR label Jul 17, 2023
Comment thread apisix/plugins/ua-restriction.lua Outdated
Comment thread apisix/plugins/ua-restriction.lua Outdated
Comment thread apisix/plugins/ua-restriction.lua Outdated
@Sn0rt

Sn0rt commented Jul 18, 2023

Copy link
Copy Markdown
Contributor

@jiangfucheng thx your PR, pls take a look at the comments from monkeyDluffy6017

Comment thread apisix/plugins/ua-restriction.lua Outdated
Comment thread t/plugin/ua-restriction.t



=== TEST 18: bypass_missing test, using default, reset conf(part1)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bypass_missing should work when allowlist or denylist exists and no user agent, the test case is needed

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

Comment thread apisix/plugins/ua-restriction.lua Outdated
Comment thread apisix/plugins/ua-restriction.lua Outdated
@juststillthinking juststillthinking added approved and removed wait for update wait for the author's response in this issue/PR labels Jul 19, 2023
@juststillthinking
juststillthinking merged commit e6adec5 into apache:master Jul 24, 2023
@jiangfucheng
jiangfucheng deleted the ua-restriction branch July 24, 2023 05:49
kldcty pushed a commit to kldcty/apisix that referenced this pull request Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat:As a user, I don't think allowlist and denylist of ua-restriction can be enabled at the same time

4 participants