henrybear327 / Proton-API-Bridge

A third-party, open-source Proton API bridge (mainly focusing on Drive for now)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SHA1 Case issue

henrybear327 opened this issue · comments

I was wondering if solution mentioned here: rclone/rclone#7345 (comment)

Replace:
https://github.com/rclone/rclone/blob/master/fs/operations/operations.go#L119

return srcHash == dstHash, ht, srcHash, dstHash, nil

with

return strings.ToUpper(srcHash) == strings.ToUpper(dstHash), ht, srcHash, dstHash, nil

solves this problem?

I've created pull request: #27 but given that I couldn't exactly reproduce this issue (no idea in which case Proton would return uppercase SHA1 instead of lowercased one) it is somewhat blind fix.