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

Reset checksum when writing files to object store #27586

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Jun 21, 2021

With a local storage the checksum will be reset when scanning the file after writing to it:

$newData['checksum'] = '';

This does not work for object store storage backends as those use a NoopScanner so the checksum was never reset for those.

Fixes #27563

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Copy link
Member

@blizzz blizzz left a comment

Choose a reason for hiding this comment

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

🐘

@blizzz
Copy link
Member

blizzz commented Jun 22, 2021

are backports necessary?

Copy link
Contributor

@kesselb kesselb left a comment

Choose a reason for hiding this comment

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

LGTM. Let's see what icewind thinks.

@blizzz blizzz modified the milestones: Nextcloud 22, Nextcloud 23 Jun 24, 2021
@juliusknorr juliusknorr added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jun 29, 2021
@juliusknorr
Copy link
Member Author

/backport to stable22

@juliusknorr
Copy link
Member Author

/backport to stable21

@juliusknorr
Copy link
Member Author

/backport to stable20

@ImaCrea
Copy link

ImaCrea commented Jul 1, 2021

/backport to stable20

Hello, do you think it would be possible to backport it to 19? Or is it risky/not recommended? Thanks for your help :)

@blizzz
Copy link
Member

blizzz commented Jul 1, 2021

/backport to stable20

Hello, do you think it would be possible to backport it to 19? Or is it risky/not recommended? Thanks for your help :)

19 is having its last release today and goes EOL. So it would not get included.

@ImaCrea
Copy link

ImaCrea commented Jul 1, 2021

/backport to stable20

Hello, do you think it would be possible to backport it to 19? Or is it risky/not recommended? Thanks for your help :)

19 is having its last release today and goes EOL. So it would not get included.

Oh, didn't know that. Thanks for the info ! Gotta update quick I guess :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: object storage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Synchronization checksum error on a document modified online (onlyoffice)
5 participants