|
136 | 136 | }, |
137 | 137 | { |
138 | 138 | type => "config", |
139 | | - comment => "SecRequestBodyLimitAction ProcessPartial (forcebodybuf, >Limit, <=NoFilesLimit) should be 200", |
| 139 | + comment => "SecRequestBodyLimitAction ProcessPartial (forcebodybuf, >Limit, <=NoFilesLimit)", |
140 | 140 | conf => qq( |
141 | 141 | SecRuleEngine On |
142 | 142 | SecDebugLog $ENV{DEBUG_LOG} |
|
148 | 148 | SecRule REQUEST_URI "/test.txt" "id:500219,phase:1,t:none,pass,ctl:forceRequestBodyVariable=On" |
149 | 149 | ), |
150 | 150 | match_log => { |
151 | | - error => [ qr/exit signal Segmentation fault \(11\), possible coredump in/, 1 ], |
| 151 | + error => [ qr/ModSecurity: Request body \(Content-Length\) is larger than the configured limit \(16384\)\./, 1 ], |
| 152 | + debug => [ qr/enable_partial_processing for none reqbody_processor/, 1 ], |
152 | 153 | }, |
153 | 154 | match_response => { |
154 | | - status => qr/^500$/, |
| 155 | + status => qr/^200$/, |
155 | 156 | }, |
156 | 157 | request => new HTTP::Request( |
157 | 158 | POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt", |
|
164 | 165 | }, |
165 | 166 | { |
166 | 167 | type => "config", |
167 | | - comment => "SecRequestBodyLimitAction ProcessPartial (forcebodybuf, >Limit, >NoFilesLimit) should be 200", |
| 168 | + comment => "SecRequestBodyLimitAction ProcessPartial (forcebodybuf, >Limit, >NoFilesLimit)", |
168 | 169 | conf => qq( |
169 | 170 | SecRuleEngine On |
170 | 171 | SecDebugLog $ENV{DEBUG_LOG} |
|
176 | 177 | SecRule REQUEST_URI "/test.txt" "id:500219,phase:1,t:none,pass,ctl:forceRequestBodyVariable=On" |
177 | 178 | ), |
178 | 179 | match_log => { |
179 | | - error => [ qr/exit signal Segmentation fault \(11\), possible coredump in/, 1 ], |
| 180 | + error => [ qr/ModSecurity: Request body \(Content-Length\) is larger than the configured limit \(32768\)\./, 1 ], |
| 181 | + debug => [ qr/enable_partial_processing for none reqbody_processor/, 1 ], |
180 | 182 | }, |
181 | 183 | match_response => { |
182 | | - status => qr/^500$/, |
| 184 | + status => qr/^200$/, |
183 | 185 | }, |
184 | 186 | request => new HTTP::Request( |
185 | 187 | POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt", |
|
0 commit comments