GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — protondrive: align move crypto and revision fallback with the SDK by tdawe1 · Pull Request #4 · rclone/Proton-API-Bridge ConversationSupport the rclone Proton Drive backend update by aligning the bridge move/upload compatibility behavior with the current Proton Drive SDK. The main issue here was that move-related flows no longer matched the newer SDK behavior closely enough. In practice, that meant moves could fail or leave moved folders containing files in a bad state. This change updates the bridge to:
Testing: go test ./... -run '^(TestReencryptKeyPacketPreservesSessionKey|TestSetMoveLinkSignatureAddressCompat|TestApplyMoveRequestSignaturesForSignedNode|TestApplyMoveRequestSignaturesForAnonymousNode|TestBuildVerificationTokenXorsWithEncryptedBlock|TestBuildVerificationTokenKeepsTailWhenBlockShorter|TestGetRevisionVerificationCompatPrefersVolumeRoute|TestGetRevisionVerificationCompatFallsBackToShareRoute|TestGetRevisionVerificationCompatFallsBackWhenVolumeRouteSignatureIsIncompatible|TestGetRevisionVerificationCompatHandlesInvalidSignature|TestGetRevisionVerificationCompatHandlesPanickingMethod|TestGetRevisionVerificationCompatAllowsMissingMethods|TestMoveLinkCompatPrefersVolumeRoute|TestMoveLinkCompatFallsBackToShareRoute|TestMoveLinkCompatFallsBackWhenVolumeRouteSignatureIsIncompatible|TestMoveLinkCompatHandlesInvalidSignature|TestMoveLinkCompatHandlesPanickingMethod|TestUploadBlockWithClientDelegatesSingleCall)$' -count=1 GOWORK=/tmp/proton-sdk-work/go.work \ PROTON_API_BRIDGE_APP_VERSION='[email protected]+af66c8fa' \ PROTON_API_BRIDGE_DRIVE_SDK_VERSION='[email protected]+af66c8fa' \ go test ./... -run '^(TestCreateAndMoveAndDeleteFolder|TestCreateAndMoveAndDeleteFolderWithAFile|TestCreateAndMoveAndDeleteAFileOneLevelFromRoot)$' -count=1 -v This PR should be reviewed on top of the companion Companion SDK base PR: rclone/go-proton-api#5
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUpdate the bridge to match SDK-era ProtonDrive request shapes and request headers while keeping mixed-version compatibility. This removes the duplicate outer upload retry loop, centralizes manager retry configuration, improves draft-conflict recovery, and adds focused tests for compatibility, upload delegation, and manager retry behavior. Preserve passphrase session keys during moves and only send optional move signatures when the SDK would. Also tolerate missing revision-verification helpers so the bridge can follow the supported v2 path without reviving deprecated API behavior.
5 tasks done
|
There was an error while loading. Please reload this page.
|
I tested this branch, together with the corresponding branch in the go-proton-api fork and it fixes the issues I had with rclone and proton drive |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.