Repository navigation
protondrive: align backend with newer Proton SDK stack - #9260
Conversation
|
I noticed that rclone doesn't currently have a maintainer for Proton Drive, so I thought I'd share what I had done for compatibility with the new API for my personal use. I've tried to match the contributing standards, but please feel free to request modifications - or of course, to close the PR entirely if it isn't helpful. |
|
Thank you for this fix! I have tested it and it works perfectly fixing the current syncing issues present in the latest release. |
|
@tdawe1 sorry for the delay looking at this. Can you rebase this on master and drop the non proton drive related commits. I notice a replace statement in your Thanks Nick |
Use SDK-era Proton defaults by adding drive_sdk_version configuration and updating app_version defaults so requests match current Proton Drive API expectations. Wire both values through to Proton API Bridge configuration to keep move and upload operations working against the 2026 SDK-backed backend.
e44d76a to
afcaf7f
Compare
|
@ncw I've rebased onto current master and removed the unrelated commits as requested. After the cleanup, the change to go.mod was unnecessary and has also been dropped. I've updated the PR description to match, and removed the make quicktest / racequicktest verification claims, since these no longer apply after narrowing the PR. go test ./backend/protondrive still passes locally. |
With the updates the fixes continue to work well with my existing protondrive config. Thank you all again! |
|
Hi @tdawe1 , I'm an engineer at Proton. Thanks for working on the rclone integration with Proton Drive. We kindly request that you refrain from manually sending the Additionally, the
Aligning with these standards will help ensure the integration works smoothly with our systems. Appreciate your efforts on this! |
|
@dlaumen Thanks for clarifying! I’ve updated this in The backend now sends a third-party Current mapping is:
I removed the manual Verified with I wasn't entirely sure if Proton requires a suffix in the app version, so when one is not present, it assumes that it is -stable and appends that the header. I’ve also updated the PR title and description to make them clearer and easier to understand. |
|
Thank you for this PR! I'm so excited about the possibility of finally getting rclone protondrive to work again after months of being broken (lack of maintainer and broken Proton-API-Bridge upstream) and I unsubscribed Proton because of it. I have tested this PR fork (commit 1e95ef7) and built rclone with the patches: go build -o rclone .Update: Turned out I just needed to log in again in the browser to avoid the CAPTCHA issue below:
This PR works flawlessly and I can confirm protondrive in rclone is working! Thank you again! |
|
@tdawe1 great! the suffix is optional, it doesn't matter so much for us, as long as it conforms to the regex it's fine (as the rules are slightly stricter than standard semver). Most important part for us is the first part, |
Thanks for testing - I'll look at the error in the next couple of days, this should probably be handled better |
|
@tdawe1 this looks ready to merge now - are you happy? Can you drop the changes in the Thanks |
The CAPTCHA error doesn't seem to be related to this PR changes. It happened to other people and hence I got the workaround from googling. Thank you again! |
What is the purpose of this change?
This PR is part of the work needed to keep Proton Drive compatible with Proton's newer SDK-based stack.
Recent Proton Drive changes introduced a newer SDK for the API and corresponding request expectations. The companion PRs update the lower-level Proton dependencies, while this PR updates the
protondrivebackend inrclone/rcloneto match that newer behavior.As part of that, this PR also updates the app-version value sent by the backend so it uses a third-party
external-drive-rclone@...identifier derived from the rclone version, rather than an official-client value.The lower-level dependency changes are handled in companion PRs, so each layer can be reviewed independently.
Was the change discussed in an issue or in the forum before?
Related context:
Required supporting dependency PRs:
How was this change tested?
Locally:
go test ./backend/protondriveThis PR also adds targeted internal tests covering version-to-header mapping for:
Documentation
The backend option help text was updated in code so regenerated docs will pick up the corrected wording.
Notes
This PR is intentionally limited to the
rclone/rclonelayer.Checklist