feat(ios): 7.1 wire-contract migration slice 1 — real routes, server-shaped models, desktop-format key wraps (#223) #230
No reviewers
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit!230
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/ios-wire-contract-slice1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First slice of the iOS file-stack migration onto the pinned contract (golden fixtures, PR #229). Survey (recorded in #223) found the iOS file stack on ghost endpoints for most surfaces: non-root listing 404s, GET /files/{id} blocking all downloads, multipart field mismatches (always-400), File Provider extension on a nonexistent base URL, and plaintext-fallback uploads.
Server
GET /api/files/{id}(FileDto) — access rules mirror DownloadFile exactly (uploader | folder owner | active file-/folder-level share; CLS-06 clearance re-check; cross-tenant 404); declared TenantScoped in the SEC-03 authz matrix. GetFileTests (3): owner 200 + shape, cross-tenant 404, shared-folder recipient 200.iOS
/folders/{id}+/children+/files,{data}unwrapped); root keeps/folders/root/contentsTest infrastructure
xcodebuild testwas vacuously green forever; iOS unit tests will run in CI for the first timeReview: dual-pass (ponytail + correctness). Fixed: FP patch verb (was still PUT — silent rename no-op), flat rename-response decodes, fractional-seconds dates, algorithm key → encryption_algorithm, uploaded_by_id fallback, dead search removal. Deferred with rationale: shared FileAccess authz-helper extraction (verbatim duplication kept so the security-critical path diff stays minimal — tracked in #222 scope), M2 ciphertext-cache-on-auth-failure (pre-existing pattern), M3 same-tenant 403-vs-404 oracle (pre-existing stance).
Verification: server suite 1102 green (incl. GetFileTests + authz-matrix row); iOS app + FP + test targets compile (build-for-testing succeeded); iOS test EXECUTION blocked locally by a simulator service-hub limitation (freshly created device won't bless) — CI runners will execute them for the first time.