Repository navigation
Bound Jira attachment transfers and recover missing native files (JVNAUTOSCI-2737) - #605
Merged
Merged
Conversation
witbrock
deleted the
task/JVNAUTOSCI-2737-attachment-transfer-budget
branch
September 11, 2026 01:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Large Jira attachments could time out or exhaust memory while their base64 payload crossed MCP. A failed first download also left an imported-activity checkpoint that caused later imports to skip filling the native attachment file.
The proxy now uses a private temporary directory and a bounded streamed transfer, verifies the returned size and hash, and cleans up the file before returning the established payload. Account checks and caller cancellation remain in place. Reruns reconcile checkpointed attachments against their actual native file bindings, fill missing files in place, and preserve attachment identity, annotations, timestamps and any existing or concurrently added file.
Validation: 133 targeted tests pass, with no new Ruff findings. The previously failing 55,905,562-byte presentation transferred in 5.7 seconds with a measured 0.29 GiB process-family peak. Its complete issue import succeeded with a 0.908 GiB peak. Canonical original/native-file read-back then succeeded with Jira credentials disabled and a 0.952 GiB peak. Both used isolated recovery windows. All three attachment hashes matched their retained originals.
Only code, tests and the migration guide are included. Captured Jira/project documents and export data remain outside the repository. The broader JVNAUTOSCI-2737 migration, final reconciliation and cutover remain in progress.