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

Dont postprocess 0 byte files #4778

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Conversation

kobergj
Copy link
Contributor

@kobergj kobergj commented Jul 25, 2024

Tackles owncloud/ocis#9573

I can't reproduce this locally. But decomposedfs will call FinishUpload directly if it is a 0 byte upload. https://github.com/cs3org/reva/blob/edge/pkg/storage/utils/decomposedfs/upload.go#L322-L328
But it would still send a BytesReceived event. This is wrong imho, because it didn't receive any bytes.

Anyways I hope this also fixes the attached issue.

@kobergj kobergj requested review from a team, labkode and glpatcern as code owners July 25, 2024 08:28
@kobergj kobergj force-pushed the FixZeroByteUploads branch from 8e49ef6 to 1edd0c3 Compare July 25, 2024 08:39
@kobergj kobergj merged commit 569a027 into cs3org:edge Jul 25, 2024
9 of 10 checks passed
@kobergj kobergj deleted the FixZeroByteUploads branch July 25, 2024 09:48
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