Skip to content

don't set oc upload size before upload#16533

Open
alperozturk96 wants to merge 3 commits intomasterfrom
upload-size
Open

don't set oc upload size before upload#16533
alperozturk96 wants to merge 3 commits intomasterfrom
upload-size

Conversation

@alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Feb 17, 2026

Since upload functions sets the correct file size, no need to set file size to 0 before the actual upload
Adds logs for failing cases

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96 alperozturk96 changed the title check calls and don't set oc upload update size before upload don't set oc upload size before upload Feb 17, 2026
@alperozturk96
Copy link
Collaborator Author

/backport to stable-3.36

mCancellationRequested.set(false);
mUploadStarted.set(true);

updateSize(0);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think this sets the OCUpload size to 0 but after this line upload not happening and db stuck with this value.

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@github-actions
Copy link

Codacy

SpotBugs

CategoryBaseNew
Bad practice4242
Correctness7575
Dodgy code256256
Experimental11
Internationalization77
Malicious code vulnerability22
Multithreaded correctness3434
Performance4444
Security1818
Total479479

@github-actions
Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/16533.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@github-actions
Copy link

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant