Commit e7b53b2
fix: improve get_supported_components() — RFC compliance, async, hints
RFC 4791 §5.2.3 states that absent supported-calendar-component-set means
the server accepts all component types. Previously the method raised
KeyError (fallback path) or returned an empty list (protocol-layer path).
Changes:
- Returns the RFC-compliant component set when the property is absent,
adjusted per compatibility hints (e.g. excludes VTODO if save-load.todo
is unsupported for the given server)
- Fixes async path that returned an unawaited coroutine instead of the result
- Removes dead _find_objects_and_props() fallback code
- Replaces no_supported_components_support flag with get-supported-components
feature, allowing caldav-server-tester to track it
- Adds create-calendar.with-supported-component-types feature definition
Fixes #653
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1df3770 commit e7b53b2
File tree
5 files changed
+115
-46
lines changed- caldav
- tests
5 files changed
+115
-46
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
749 | 769 | | |
750 | 770 | | |
751 | 771 | | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
752 | 778 | | |
753 | 779 | | |
754 | 780 | | |
755 | | - | |
| 781 | + | |
| 782 | + | |
756 | 783 | | |
757 | 784 | | |
| 785 | + | |
758 | 786 | | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
771 | 791 | | |
772 | 792 | | |
773 | 793 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
| |||
809 | 815 | | |
810 | 816 | | |
811 | 817 | | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | 818 | | |
816 | 819 | | |
817 | 820 | | |
| |||
1227 | 1230 | | |
1228 | 1231 | | |
1229 | 1232 | | |
1230 | | - | |
1231 | 1233 | | |
1232 | 1234 | | |
1233 | 1235 | | |
1234 | 1236 | | |
| 1237 | + | |
1235 | 1238 | | |
1236 | 1239 | | |
1237 | 1240 | | |
| |||
1404 | 1407 | | |
1405 | 1408 | | |
1406 | 1409 | | |
1407 | | - | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
1413 | 1413 | | |
1414 | 1414 | | |
1415 | 1415 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1819 | 1819 | | |
1820 | 1820 | | |
1821 | 1821 | | |
1822 | | - | |
1823 | 1822 | | |
1824 | 1823 | | |
1825 | 1824 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
555 | 625 | | |
556 | 626 | | |
557 | 627 | | |
| |||
779 | 849 | | |
780 | 850 | | |
781 | 851 | | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | 852 | | |
804 | 853 | | |
805 | 854 | | |
| |||
0 commit comments