Issue Description
I’ve observed a weird behaviour:
stalwart-cli snapshot Certificate | stalwart-cli apply --stdin
snapshot: 1 upserts, 0 singletons
fetching Certificate...
7 fetched
Certificate: 7
snapshot complete
Plan: 0 destroy, 0 update, 0 create, 1 upsert (7 objects)
✗ upsert Certificate: Certificate: match property `subjectAlternativeNames` is missing from the object body
Done: 0 destroyed, 0 updated, 0 created (1 failed)
error: Certificate: match property `subjectAlternativeNames` is missing from the object body
stalwart-cli snapshot Certificate yields:
{
"@type": "upsert",
"object": "Certificate",
"matchOn": [
"subjectAlternativeNames"
],
"value": {
"certificate-iyt0es3kakaa": {
"privateKey": {
"@type": "File",
"filePath": "/etc/stalwart/certs/domain1.key"
},
"certificate": {
"@type": "File",
"filePath": "/etc/stalwart/certs/domain1.crt"
}
},
"certificate-iyt0elckajqa": {
"privateKey": {
"@type": "File",
"filePath": "/etc/stalwart/certs/domain2.key"
},
"certificate": {
"@type": "File",
"filePath": "/etc/stalwart/certs/domain2.crt"
}
}
}
}
stalwart-cli apply fails:
Plan: 0 destroy, 0 update, 0 create, 1 upsert (2 objects)
✗ upsert Certificate: Certificate: match property `subjectAlternativeNames` is missing from the object body
Done: 0 destroyed, 0 updated, 0 created (1 failed)
error: Certificate: match property `subjectAlternativeNames` is missing from the object body
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