Skip to content

Conversation

@barisbasar1209
Copy link
Contributor

This PR address issue #8704 . Thanks for the reviews!

The problem: The syncing progress for files with at least 2GiB size shows overflown value in the accountsettings dialog, when resyncing.

Changes: Explicit typing to qint64 instead of using auto for the relevant variable(s)

Steps to reproduce:

  1. upload at least one such file in the sync folder (the more files the higher the chance to catch the bug)
  2. Close the client
  3. delete the .db file in the sync folder
  4. start the client and go to settings

Images:

Before:
image

According log:
image

After:
imagee

According log:
image

I am aware that the project follows the almost always auto style, however using auto caused the variable curItemProgress to be casted to int. The other variables that are declared alongside curItemProgress were also casted to int even though they were assigned return values of type qint64 in subsequent lines. Therefore I figured that making sure they are of type qint64 as well is safer (?).

Copy link
Member

@nilsding nilsding left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the contribution :)

@nilsding nilsding linked an issue Sep 17, 2025 that may be closed by this pull request
8 tasks
@github-actions
Copy link

Artifact containing the AppImage: nextcloud-appimage-pr-8759.zip

Digest: sha256:a66a9a36cfcfbf9b16c437ed3f596837a74b9fa7ee9821091d5c82ffe9edcf0d

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien mgallien merged commit 28347fe into nextcloud:master Sep 17, 2025
15 of 16 checks passed
@github-actions
Copy link

github-actions bot commented Oct 1, 2025

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

@camilasan
Copy link
Member

/backport to stable-3.17

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.

[Bug]: Large files show wrong (negative) file size when syncing

4 participants