Issue Description
CalendarEvent/get treats an explicitly empty properties array as equivalent to omitting the argument, returning the complete CalendarEvent.
RFC 8620 §5.1 defines the standard /get behavior:
“If supplied, only the properties listed in the array are returned for each Foo object.”
It also specifies that the id property is always returned even when not explicitly requested.
Expected Behavior
With:
{
"properties": []
}
CalendarEvent/get should return only the mandatory id property.
Omitting properties, or setting it to null, should return all applicable properties.
Actual Behavior
Stalwart treats properties: [] as requesting all properties and returns the complete CalendarEvent object.
Reproduction Steps
- Create any CalendarEvent.
- Fetch it using
CalendarEvent/getwithproperties: []. - Observe that the response contains the full event rather than only
id.
Relevant Log Output
N/A
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