-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Clear original response code in send_error_bucket function #2850
base: v2/master
Are you sure you want to change the base?
Conversation
If this is left intact, then apache thinks that this code was generated during processing of ErrorDocument and does not handle it properly Fix owasp-modsecurity#2849
Could this be merged? I can provide further help if needed. |
FYI: We're using it on prod for 2 months on several huge sites |
I haven't had opportunity to do a detailed analysis of this. It looks simple, but this is the type of change that could potentially have unintended consequences -- perhaps only for some configurations and/or use cases. Some questions that spring to mind immediately:
|
I admit it seemed strange to me as well but fortunately i described the breaking point in #2849, so let me clarify.
I think so, because it looks to me that send_error_bucket is used only when mod_security wants to change status code of the response and if the original status code, so it does not matter what the old response code was. Please correct me if i am wrong. |
Hi @martinhsv , |
Hi @TomasKorbar , No imminent plans. As I suggested previously, I'd need to gain higher confidence of the correctness of this change before merging. In the meantime, the PR is available for anyone who wishes to merge in their own environment to make use of it. |
If this is left intact, then apache thinks that this code was generated during processing of ErrorDocument and does not handle it properly
Fix #2849