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

Use the servers checksum type by default #7989

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

TheOneRing
Copy link
Member

@TheOneRing TheOneRing commented Jul 24, 2020

Local computation of sha1 checksum
Comparison with the checksum the remote provided after upload (sha256), therefore re computation of local checksum with sha256.

Related: https://gitea.owncloud.services/client/client-plugin-vfs-win/pulls/11

@TheOneRing TheOneRing requested a review from dschmidt July 24, 2020 15:17
@@ -847,7 +847,7 @@ namespace { // Anonymous namespace for the recall feature

void PropagateDownloadFile::transmissionChecksumValidated(const QByteArray &checksumType, const QByteArray &checksum)
{
const auto theContentChecksumType = contentChecksumType();
const QByteArray theContentChecksumType = propagator()->account()->capabilities().preferredUploadChecksumType();
Copy link
Member

Choose a reason for hiding this comment

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

Why did you change this to an explicit type?

Copy link
Member Author

Choose a reason for hiding this comment

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

I love auto but sometimes it helps to see what type you are using :D

@TheOneRing TheOneRing merged commit ab47ec6 into owncloud:2.7 Jul 27, 2020
@TheOneRing TheOneRing deleted the checksum branch July 27, 2020 10:46
@jnweiger jnweiger mentioned this pull request Oct 13, 2020
63 tasks
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.

None yet

2 participants