Skip to content

Conversation

@camilasan
Copy link
Member

@camilasan camilasan commented Sep 8, 2025

Possibly fix for #8555

@nilsding
Copy link
Member

/backport to stable-4.0

// therefore: parse the string as a double and cast it to i64
auto ok = false;
auto quotaValue = static_cast<int64_t>(map.value(FolderQuota::usedBytesC).toDouble(&ok));
result.folderQuota.bytesUsed = ok ? quotaValue : -1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since this pattern occurs at multiple places, I would consider a converter function toQuota() or similar.

@mgallien mgallien added this to the 4.1.0 milestone Oct 10, 2025
camilasan and others added 6 commits October 16, 2025 09:13
… is in folder root.

Signed-off-by: Camila Ayres <[email protected]>
Signed-off-by: Jyrki Gadinger <[email protected]>
Signed-off-by: Camila Ayres <[email protected]>
Signed-off-by: Jyrki Gadinger <[email protected]>
`processFileAnalyzeRemoteInfo` is only called iff `serverEntry.isValid`
anyway

Signed-off-by: Jyrki Gadinger <[email protected]>
`LsColJob::propertyMapToRemoteInfo` takes care of that too

Signed-off-by: Jyrki Gadinger <[email protected]>
The server can respond with values like `2.58440798353E+12` instead of
a plain number like `2584407983530`.
`QVariant::toLongLong` does not recognise that as a valid number and
returns `0` instead, breaking the sync for some.

Also added a fallback value in case parsing the value as double doesn't
work either.

Fixes #8555

Signed-off-by: Jyrki Gadinger <[email protected]>
@nilsding nilsding enabled auto-merge October 16, 2025 07:13
@camilasan camilasan modified the milestones: 4.1.0, 4.0.0 Oct 16, 2025
@github-actions
Copy link

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

Digest: sha256:29aac56377d0da243835cccf2410fb947bedfa581e5847d50bb8d7ed0083ea02

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.

@nilsding nilsding merged commit 700fcaf into master Oct 16, 2025
20 checks passed
@nilsding nilsding deleted the bugfix/quotadir branch October 16, 2025 08:09
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
Image 21 Security Hotspots
Image 89 New Code Smells (required ≤ 0)
Image E Reliability Rating on New Code (required ≥ A)
Image E Maintainability Rating on New Code (required ≥ A)
Image 1 New Bugs (required ≤ 0)

See analysis details on SonarQube Cloud

Image Catch issues before they fail your Quality Gate with our IDE extension Image SonarQube for IDE

@corben-svg
Copy link

I just installed version 4.0.0-rc2 Windows from the beta update channel. The problem with checking the quota persists, the files are not uploaded to the server

@nilsding
Copy link
Member

nilsding commented Oct 16, 2025

@corben-svg the rc2 was released before this change got merged

We'll include this in 4.0.0, to test the change before the final 4.0 release you need to wait until tomorrow for the new daily build

@nilsding
Copy link
Member

/backport to stable-4.0

@corben-svg
Copy link

I just installed the new version 4.0.1 for Windows. The quota verification error persists. #8555 problem has not been solved. Please reopen issue @nilsding @camilasan
Error: "Upload of 1 kb exceeds 0 B of space left in folder ...."

@camilasan
Copy link
Member Author

/backport to stable-3.17

@corben-svg
Copy link

@camilasan Hi! The error persists on the stable version 4.0.3.

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.

Bug Report: Upload fails due to incorrect quota check in version 3.17.0-20250805

6 participants