Commit 55ca5dc
committed
Fix SetBucketLifecycle() for global rules
https://docs.aws.amazon.com/AmazonS3/latest/API/API_LifecycleRule.html
mentions that
Filter is required
if the LifecycleRule does not contain a Prefix element.
After #2177, this requirement is broken for bucket-global (=prefixless)
rules. And clients setting such may run into server side validation
issues like.
HTTP/1.1 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>MalformedXML</Code>
...
</Error>1 parent a071aa0 commit 55ca5dc
2 files changed
Lines changed: 46 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | 270 | | |
275 | 271 | | |
276 | 272 | | |
| |||
508 | 504 | | |
509 | 505 | | |
510 | 506 | | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
511 | 551 | | |
512 | 552 | | |
513 | 553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
522 | 521 | | |
523 | 522 | | |
524 | 523 | | |
| |||
543 | 542 | | |
544 | 543 | | |
545 | 544 | | |
546 | | - | |
547 | | - | |
| 545 | + | |
548 | 546 | | |
549 | 547 | | |
550 | 548 | | |
| |||
559 | 557 | | |
560 | 558 | | |
561 | 559 | | |
562 | | - | |
563 | | - | |
| 560 | + | |
564 | 561 | | |
565 | 562 | | |
566 | 563 | | |
| |||
0 commit comments