Issue Description
Calendar/get omits some Calendar properties when properties is omitted or null.
For example, defaultAlertsWithTime and defaultAlertsWithoutTime are only returned when explicitly requested.
The Calendars specification defines Calendar/get as:
“This is a standard “/get” method as described in Section 5.1 of [RFC8620].”
RFC 8620 §5.1 says:
“If null, all properties of the object are returned.”
Expected Behavior
With no properties argument, all Calendar properties should be returned, including defaultAlertsWithTime and defaultAlertsWithoutTime.
Actual Behavior
A request such as:
["Calendar/get", {
"accountId": "account1",
"ids": ["calendar1"]
}, "0"]
omits the default alert properties.
Explicitly requesting them:
["Calendar/get", {
"accountId": "account1",
"ids": ["calendar1"],
"properties": [
"id",
"defaultAlertsWithTime",
"defaultAlertsWithoutTime"
]
}, "0"]
returns the configured value correctly, e.g.:
"defaultAlertsWithTime": {
"alert1": {
"@type": "Alert",
"action": "display",
"trigger": {
"@type": "OffsetTrigger",
"relativeTo": "start",
"offset": "-PT10M"
}
}
}
Reproduction Steps
- Configure a Calendar with a default alert.
- Call
Calendar/getwithoutproperties; observe that the default alert properties are absent. - Repeat while explicitly requesting
defaultAlertsWithTimeanddefaultAlertsWithoutTime; observe that they are returned.
Relevant Log Output
No error is logged; the request succeeds normally. The issue is limited to the returned property set.
Stalwart Version
v0.16.x
Installation Method
Built from source
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on