mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 16:13:15 +00:00
Stalwart 1.0 treats a FileNode's `modified` as the client's: a content update leaves it alone unless the patch asks for it. Saves from the document editor therefore kept the old date in the file list, and the editor's conflict check (409 with COOLStatusCode 1010) never noticed a change made by another JMAP client. PutFile now sends `modified: null`, which has the server stamp the save. 1.0 echoes the new time in `updated`; 0.16.6+ answer `null` as before and the batched FileNode/get reads it. The editor also could not open a file in someone else's shared drive, on any version: the Files app sent the listing's "<owner>:<id>" id for the user's own account, and the launch failed with a 404. It now names the owner's account and the node's own id, so owner and sharee join the same editor session. A save uploads into the user's own account and then points the owner's node at that blob, because Stalwart only lets members of an account use a blob uploaded into it. The access token carries that upload account; tokens minted before it upload into the document's account as before. The editor now also uses the cookie slot of the login the Pro shell is browsing, not always the active one.