Clear original response code in send_error_bucket function#2850
Clear original response code in send_error_bucket function#2850TomasKorbar wants to merge 1 commit intoowasp-modsecurity:v2/masterfrom
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