mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 14:05:52 +03:00
[GH-ISSUE #94] waf_rule_path in http context works improperly #71
Labels
No labels
MacOS
Nginx
OpenResty
Tengine
bug
documentation
enhancement
needs-investigation
pull-request
question
stale
stale
stale
timeout
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ngx_waf#71
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ononoki1 on GitHub (May 9, 2022).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/94
Problem
The following config will not work:
While the following one works:
And this one also works:
Technically, NGINX's current context's config should inherit its parent's one, which is not the case in this particular circumstance. I think this should be a bug instead of a feature.
@ononoki1 commented on GitHub (May 9, 2022):
The ngx_waf version is latest current branch.
@stale[bot] commented on GitHub (May 18, 2022):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
此 issue 因为最近没有任何活动已经被标记,如果在此之后的一段时间内仍没有任何活动则会被关闭。感谢您对项目的支持。
@ononoki1 commented on GitHub (May 18, 2022):
What can I do to help investigate this issue?
@ADD-SP commented on GitHub (May 22, 2022):
There may be some bugs here, I'm not sure.
github.com/ADD-SP/ngx_waf@107cca9dec/src/ngx_http_waf_module_config.c (L1761-L1774)github.com/ADD-SP/ngx_waf@107cca9dec/src/ngx_http_waf_module_config.c (L187-L203)@stale[bot] commented on GitHub (May 29, 2022):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
此 issue 因为最近没有任何活动已经被标记,如果在此之后的一段时间内仍没有任何活动则会被关闭。感谢您对项目的支持。
@ononoki1 commented on GitHub (May 29, 2022):
Since it's not a security bug and has a workaround, I just close it. You can reopen it when having time to solve.