v0.6.403: public link controls (#1105), Copy a link again (#1140), personal folder sizes (#1106), space managers (#1107) #1142

Merged
Cordy merged 130 commits from b3v07 into main 2026-11-07 19:23:30 +00:00
Owner

Batch 3 of v0.7 (b3v07), target v0.6.403.

  • #1105 Public link controls: edit a link in place (label, note, role view/download/upload/both, download limit, expiry, password), view-only links opened read only in the document editor with watermark, guarded by WOPI proof keys or an address list; limited links count every GET (no Range); admin Sharing policy boxes and list columns.
  • #1140 Copy a link again: key links keep their key sealed (instance key or encryption custody); Copy link again, paste a full link, make a new link from an old one.
  • #1106 Personal folder sizes per person and by directory group (own > largest group > default), Accounts storage column, Sizes by group, the person's view, 10 s re-read across instances.
  • #1107 Spaces with one owner plus managers: Members dialog, hand-over, stop managing, managers in sharing, bells, locks, Find spaces, admin column and assign, restore checklist Space access row.

Waves W1-W4 with reviews and fix rounds fx1-fx4, final whole-branch review in three parts with adversarial probes (no holes found). Locally green: go build/vet/gofmt, internal/api, cmd/cairnd and every touched package, web suite 2116/2116, all 56 a11y files, go test ./deploy/. Docs: CHANGELOG v0.6.403 (three self-contained sections), chart appVersion, handbook pages, ARCHITECTURE.md, ADR 0001 addendum.

Read before upgrading: members POST answers 200 JSON (was 204); link roles in admin rows are names; plain links are outside policy while plain links are not allowed. Rollback notes in the CHANGELOG.

Batch 3 of v0.7 (b3v07), target v0.6.403. - #1105 Public link controls: edit a link in place (label, note, role view/download/upload/both, download limit, expiry, password), view-only links opened read only in the document editor with watermark, guarded by WOPI proof keys or an address list; limited links count every GET (no Range); admin Sharing policy boxes and list columns. - #1140 Copy a link again: key links keep their key sealed (instance key or encryption custody); Copy link again, paste a full link, make a new link from an old one. - #1106 Personal folder sizes per person and by directory group (own > largest group > default), Accounts storage column, Sizes by group, the person's view, 10 s re-read across instances. - #1107 Spaces with one owner plus managers: Members dialog, hand-over, stop managing, managers in sharing, bells, locks, Find spaces, admin column and assign, restore checklist Space access row. Waves W1-W4 with reviews and fix rounds fx1-fx4, final whole-branch review in three parts with adversarial probes (no holes found). Locally green: go build/vet/gofmt, internal/api, cmd/cairnd and every touched package, web suite 2116/2116, all 56 a11y files, go test ./deploy/. Docs: CHANGELOG v0.6.403 (three self-contained sections), chart appVersion, handbook pages, ARCHITECTURE.md, ADR 0001 addendum. Read before upgrading: members POST answers 200 JSON (was 204); link roles in admin rows are names; plain links are outside policy while plain links are not allowed. Rollback notes in the CHANGELOG.
Cordy added 130 commits 2026-11-07 19:15:11 +00:00
# Conflicts:
#	internal/audit/verbs.go
Decided 2026-11-07: CountsAsDownload is true for every GET; IgnoreRange
drops Range and If-Range so the file server sends the whole file. The
multi-range and offset requests that read the file uncounted
(bytes=5000-,0-999, bytes=2-,0-1, bytes=1-) are table rows, pinned
against httpx.ServeContent. Bidi test literals written as escapes.
Approved 2026-11-07: pubVisitor (l9's UserFriendlyName) and
pubDownloadName, the listing's Download buttons' accessible name in
word order per language. N1: the test's U+2014 as an escape; N2:
pubTitleName's bidi ranges as escapes.
Decided 2026-11-07: another instance's pending observation of a deleted
person can no longer be written back, neither because this instance
never saw the person nor after the tombstone expired.
Amended spec 10.1 (2026-11-07): the newest to decides; the entry stays
while the owner now is not to and is the from of any hand-over in the
window; From is the owner now, as the re-apply hands over from it.
Approved 2026-11-07: ErrTrashNotYours and errTrashNotYours in four
languages; codeText maps the code so the web app never shows the
server's English.
wopiVerify takes the visitor branch first for a token with a link (cl.L):
the editor guard on every call (Mode decided once per request, Check on
the same access_token query value, refusal office.RefusalStatus(mode)
with X-Cairn-Code wopi-proof-required and a WARN at most once a minute),
then the claims' shape and VisitorID, then Visitors.ViewFile on every
call (401 for anything not served). CheckFileInfo answers spec 10.5 with
the watermark and pubVisitor in the page language (claims LT); GetFile
opens through the link with marks skipped and the #1139 headers;
PutFile and every lock override but GET_LOCK answer 403. office/status
gains viewFormats; ViewLinksReadiness backs viewLinksReady.

cmd/cairnd: wireViewLinks1105 builds office.Guard from
office.serverAddresses, wopiBase and the trusted proxies main.go hands
to auth.WithClientAddr; ViewableExt and pub.View.Viewable from the view
actions; readiness no-editor without office.

office: Claims.LT (the editor page's language tag); Guard.CheckMode;
checkProof refuses without a Service. auth: ServerAddr, so the guard's
address check no longer names X-Forwarded-For outside internal/auth
(TestForwardedHeadersOnlyInAuth failed on b3v07 since l5).
manageOrAdmin replaces ownerOrAdmin (403 space-manage-only); members
answer managers and you; POST members answers 200 JSON with status,
role and from (was 204); bad-role, bad-request, member-owner-role for
any role and spelling of the owner, member-self, member-not-found,
space-managers-directory; POST owner-handover (owner only, one
HandOver write, 409 space-owner-target/-disabled/-changed); state
canDelete and canHandOver, delete stays with the owner (403
space-owner-only); managers edit cosmetics, rename, see Group and
Aliases; admin inventory and Departed users list live managers; notes
space=<id> from= (F3), role= on remove, was= managers= on assign;
bells space-role-manage, space-manager-added (mute space-members),
space-owner-given; group sync uses PutMemberAtLeast (F1).
Q6 of plan-1106: openPersonalQuota beside the settings (both documents in
statePaths), the observation point directly above grouprefs.WithRefs,
SetUserLimit and the resolver's default beside SetLimits, the admin API
hookup (Known, Accounts, Directory, Peek from PeekPick plus the directory's
member count), the 30 s flush with a final one after the HTTP server
stopped; Seen.Forget in the directory rejection hook under the keep rule;
the own size and the remembered groups in the personal data export
(account/storage, account/groups size-groups); two-instance stack test.
Spec 12.2: the 35 changed keys in EN/DE/FR/IT (DE Eigentümer, managers
named), markup fallbacks follow. fsDeclNote names who declined: the
directory's my object and the declined bell carry decidedBy/by (only
with a note). Find spaces owner routes keep the server's text for
space-owner-only (review-w2 binding note) via rqErrText/rqSrvText.
Frames F, G, H: pure:space-managers-admin (spcManagersCell,
assignOptions, duSpaceLine, managersBellText); the Managers column in
Administration › Spaces; Assign a new owner… lists managers first,
then members, then accounts, with the hint line naming the managers;
Departed users says who keeps managing each space; bells
space-role-manage, space-owner-given, space-manager-added. New keys
after duSpaceOrphan (spec 12.1).
Merge b3v07-fx4m (final fix round)
All checks were successful
ci / test-and-build (pull_request) Successful in 4m16s
45b832b125
Cordy merged commit d02f2ba108 into main 2026-11-07 19:23:30 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#1142
No description provided.