Skip to content

feat: add safe cross-profile S3 copy [skip release] - #41

Merged
rgcsekaraa merged 3 commits into
mainfrom
feat/cross-profile-copy
Sep 22, 2026
Merged

rgcsekaraa merged 3 commits into
mainfrom
feat/cross-profile-copy

Conversation

@rgcsekaraa

Copy link
Copy Markdown
Owner

Summary

First of the four remaining S3 features: cross-profile content copy. Copy files or folders, switch profile, Paste, then confirm the exact destination. Existing same-profile copy/move and the current UI remain intact. Cross-profile Cut is deliberately unavailable.

Safety

  • Rust uses independent source/destination clients, bounded read-only preparation, conditional source reads and private temporary disk staging.
  • Destination PUT and multipart completion are create-only. No source deletion or unconditional overwrite.
  • Copy content metadata only; destination defaults govern permissions, encryption, retention and storage class. Tags and version history are explicitly excluded in the dialog and documentation.
  • Existing cancellation, progress/speed, multipart cleanup and recovery workflow are reused. Retry preserves captured sources; restart requires a fresh copy.
  • Also fixes sync retries dropping their snapshot/conditional-write safeguards.

Verification

  • Frontend: 93 tests; release scripts: 23 tests.
  • Full Chromium/WebKit suite: 64 tests passed. Confirmation flow rerun after a contrast adjustment.
  • Rust: 111 tests passed (5 opt-in tests ignored by default); strict Clippy passed on the final code revision.
  • Real integration against two isolated MinIO endpoints using different credentials passed for zero-byte, small and 129 MiB multipart copies, changed source rejection, existing destination rejection and multipart cleanup. Disposable test servers removed; no production account or bucket was touched.
  • Production frontend build, typecheck, lint, format and diff checks passed.

See docs/CROSS_PROFILE_COPY.md for explicit compatibility limits and operational details. This is not a complete object-policy or compliance migration. No release is published by this PR; keep [skip release] in the squash title.

@rgcsekaraa

Copy link
Copy Markdown
Owner Author

Validation update: all 111 Rust tests, 93 frontend tests and 23 release tests passed locally, plus the complete 64-test browser suite and real two-endpoint multipart copy tests. The first CI run exposed a WebKit timing race in the existing folder-sync Escape test: Preview is disabled during a request, and MUI restores focus asynchronously if WebKit puts it on BODY. The test now asserts modal focus has returned before sending Escape, without sleeps, retries, or weaker close/no-upload assertions. Both folder-sync tests then passed 10 repetitions in each browser (40 passes). CI is rerunning on the final revision; merge will wait for all four jobs.

@rgcsekaraa
rgcsekaraa merged commit e7d9387 into main Sep 22, 2026
4 checks passed
@rgcsekaraa

Copy link
Copy Markdown
Owner Author

Merged after all four checks passed on final revision c7b4ef0: frontend, Linux, macOS and Windows. Cross-profile copy will be included in a future release; this merge does not publish a release. Copy files or folders, switch profiles, Paste and confirm. Source objects are retained and existing destination objects are protected from replacement. Validation also includes two isolated MinIO endpoints with different credentials, zero-byte/small/129 MiB multipart copies, source and destination conflicts, and cleanup. Full behavior and limits are documented in docs/CROSS_PROFILE_COPY.md. This completes the first feature in the current sequence; version history and restore is next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant