Repository navigation
Conversation
- jmaptest and opencloud_full: Stalwart 0.16.27 -> 1.2.0, stalwart-cli 1.0.13 -> 2.0.0, configuration snapshots converted to the v1 schema with the role permissions added in 1.x - opencloud_full: use the new volume stalwart-data-v1, as Stalwart 1.x can't start on the data of 0.16 - jmap: rename mayAdmin to mayShare in the address book and calendar rights (RFC 9610), Stalwart 1.x rejects mayAdmin in shareWith - jmaptest: adapt the tests to Stalwart 1.x (sortOrder range, optional query limit, attachment keywords set by the server) Assisted-by: Claude Code:claude-opus-5-5
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
🟢 Coverage 0.00% diff coverage · +0.00% coverage variation
Metric Results Coverage variation ✅ +0.00% coverage variation (-1.00%) Diff coverage ✅ 0.00% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (f626a77) Report Missing Report Missing Report Missing Head commit (f3f0be7) 106035 (+0) 26712 (+0) 25.19% (+0.00%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#4127) 2 0 0.00% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Description
Upgrades Stalwart from 0.16.27 to 1.2.0 and
stalwart-clifrom 1.0.13 to 2.0.0, for the integration tests (pkg/jmaptest) and foropencloud_full:jmap_stalwart.go,opencloud_full/config/stalwart/idmldap.json): renamed fields (e.g.tlsImplicit→implicitTls,isEnabled→enable,passwordMinLength→minPasswordLength), permissions that no longer exist in 1.x removed, and the permissions added in 1.x (mail rules, junk e-mail lists, calendar settings, passkeys, …) added to the roles. Theopencloud_fullsnapshot is now written asupsertbystalwart-cli2.0, sostalwart-snapshot-passwordshandlesupsertas well.stalwart-data-v1inopencloud_full: Stalwart 1.x can't start on the data of 0.16, so existing setups get a fresh, initialized Stalwart;DEVELOPER.mdexplains how to remove the old volume.mayAdmin→mayShareinAddressBookRightsandCalendarRights(pkg/jmap): Stalwart 1.x follows RFC 9610 and the current JMAP Calendars draft, rejectsmayAdmininshareWith(Invalid permission "mayAdmin") and reportsmayShareinmyRights. Before, sharing address books and calendars failed andmyRightsalways reported the right asfalse.TaskRightsis unchanged, as tasks are mocked.pkg/jmaptest):enableinstead ofenabledsortOrderof the generated address books and calendars is a 16 bit value, Stalwart 1.x rejects the 64 bit random values (it fails from about 2^31 on, JMAP allows up to 2^53-1)limitis only asserted when it is returned, Stalwart 1.x only returns it when it used a different limit (RFC 8620 section 5.5)$hasattachmentand$hasnoattachment, which Stalwart 1.x adds to every email by itself, are ignored when comparing keywordsAI assistance: Claude Code (claude-opus-5-5) was used to convert the snapshots, find and fix the Stalwart 1.x incompatibilities and run the tests.
Related Issue
Motivation and Context
The web development environment moves to Stalwart 1.2.0. The Groupware backend should be tested against the same Stalwart version, and sharing address books and calendars needs the
maySharefix to work with Stalwart 1.x.How Has This Been Tested?
go build ./pkg/... ./services/groupware/...andgo vetonpkg/jmap,pkg/jmaptest,services/groupware/pkg/groupwarepkg/jmap,pkg/jscalendarandpkg/jscontactpassgo test -p 1 ./pkg/jmaptest/... ./services/groupware/...): all pass, 3 out of 3 runs,TestEmailsadditionally 5 out of 5 runs. In earlier runs an unrelated401when fetching the session of a random test user and aTestGroupwareVacationfailure occurred once each and couldn't be reproduced afterwards.opencloud_fullsnapshot applied with stalwart-cli 2.0.0 to a fresh Stalwart 1.2.0 volume: 7 updated, 17 created, 0 failed, Stalwart starts in production mode and is healthygroupwarestate: mailboxes, address books and calendars load, events can be created. Not tested with an image built from this branch.Screenshots (if appropriate):
n/a
Types of changes
Checklist: