-
-
Notifications
You must be signed in to change notification settings - Fork 23
Comparing changes
Open a pull request
base repository: henrybear327/Proton-API-Bridge
base: master
head repository: rclone/Proton-API-Bridge
compare: master
- 9 commits
- 24 files changed
- 1 contributor
Commits on Jan 27, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 77f9748 - Browse repository at this point
Copy the full SHA 77f9748View commit details
Commits on Apr 30, 2026
-
- Check error returns from deferred Close calls (errcheck) - Replace deprecated io/ioutil with os in mail.go (SA1019) - Simplify boolean assignment in common/config.go (QF1007) - Apply De Morgan's law in folder_recursive.go (QF1001)
Configuration menu - View commit details
-
Copy full SHA for ceba35c - Browse repository at this point
Copy the full SHA ceba35cView commit details -
Propagate Close errors via CheckClose helper
Add utility.CheckClose so deferred Close calls return their error to the caller instead of being silently discarded. Use it in the file upload, download, and credential cache paths; the test helper reports close errors via t.Error since it has no error return.
Configuration menu - View commit details
-
Copy full SHA for bb6275d - Browse repository at this point
Copy the full SHA bb6275dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7102872 - Browse repository at this point
Copy the full SHA 7102872View commit details -
Skip integration tests when credentials are not provided
Previously the tests failed with "username and password are required" when run without env vars. Skip instead so go test ./... passes in environments without Proton credentials (e.g. CI lint-only runs).
Configuration menu - View commit details
-
Copy full SHA for d6edc66 - Browse repository at this point
Copy the full SHA d6edc66View commit details -
Fix moveLink to send NameSignatureEmail required by Proton Drive API
Set the new NameSignatureEmail field on MoveLinkReq and stop sending NodePassphraseSignature/SignatureEmail. Per the official Proton Drive Windows client (MoveLinkParameters.cs) the latter pair are only sent when moving an anonymously-signed node; for ordinary user-owned nodes they must be omitted so the server preserves the existing signature on the link. Bump go-proton-api for the new MoveLinkReq schema. Fixes rclone/rclone#8512
Configuration menu - View commit details
-
Copy full SHA for 58f49e7 - Browse repository at this point
Copy the full SHA 58f49e7View commit details
Commits on May 5, 2026
-
common: allow callers to inject an HTTP transport via Config.Transport
Previously the bridge built its proton.Manager with only WithAppVersion and WithUserAgent, so consumers had no way to plug their own http.RoundTripper into the underlying go-proton-api / resty client. Add a Transport field to common.Config and forward it via proton.WithTransport when non-nil. This lets callers wire in their own transport.
Configuration menu - View commit details
-
Copy full SHA for e435f93 - Browse repository at this point
Copy the full SHA e435f93View commit details -
common: route library logging through a caller-supplied Logger
Add a Logger interface (and matching Config.Logger field) whose method set lines up with resty.Logger and go-proton-api's WithLogger option, so callers can plug in a single adapter that captures all bridge log output along with HTTP-layer warnings emitted by go-proton-api. Convert the active stdlib log.Println / log.Printf call sites in cache.go, drive.go, file_download.go, folder_recursive.go, mail.go and common/user.go to use the configured logger via Config.GetLogger, which falls back to the stdlib log package when no Logger is set so existing callers see the same behaviour. Downgrade the four log.Fatalln sites in cache.go and mail.go: a library has no business calling os.Exit. The cache assertions become logged errors (the offending branches were already unreachable in practice), and the unsupported-recipient case in sendDraft now returns a new ErrUnsupportedRecipientType.
Configuration menu - View commit details
-
Copy full SHA for 191d750 - Browse repository at this point
Copy the full SHA 191d750View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecd7d61 - Browse repository at this point
Copy the full SHA ecd7d61View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...master