Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tusd PATCH Checksums #4807

Draft
wants to merge 1 commit into
base: edge
Choose a base branch
from
Draft

Conversation

kobergj
Copy link
Contributor

@kobergj kobergj commented Aug 13, 2024

Compares checksums in PATCH requests during chunked uploads

@kobergj kobergj requested review from a team, labkode and glpatcern as code owners August 13, 2024 14:01
@kobergj kobergj marked this pull request as draft August 13, 2024 14:02
}
switch strings.ToLower(parts[0]) {
case "sha1":
return checkHash(parts[1], sha1h)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

afaict checkHash still needs to base64 decode the checksum

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't work. We also use this function to compare checksums from upload sessions (which are not base64 encoded). I added a bool parameter to reflect that.

@kobergj kobergj force-pushed the TusdPatchChecksums branch 2 times, most recently from da601fd to ec07223 Compare August 14, 2024 12:44
@butonic
Copy link
Contributor

butonic commented Aug 14, 2024

running into ankitpokhrel/tus-php#422 :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants