Commit f84f57a
committed
[MCG] Using put-bucket-policy with wrong syntax under Resource results in InternalError instead of MalformedPolicy
The malformed syntax should give malformed systax error.
Issue: Square brackets ([ ]) in resource_bucket_part were misinterpreted in regex.
Fix: Escape all regex special characters before inserting into RegExp().
Fixes: https://issues.redhat.com/browse/DFBUGS-1517
Signed-off-by: Vinayakswami Hariharmath <vharihar@redhat.com>1 parent 23aec8d commit f84f57a
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
273 | 279 | | |
274 | 280 | | |
275 | 281 | | |
| |||
0 commit comments