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

Fix crash in selective sync configuration #10065

Merged
merged 1 commit into from
Aug 29, 2022
Merged

Conversation

fmoc
Copy link
Contributor

@fmoc fmoc commented Aug 26, 2022

This commit restores the use of FolderStatusDelegate::data(...) to check whether a folder is ready. The two additions fix two different ways in which the client could crash.

Using data(...) makes sure we use the right data structure to look up the ready state for the subfolders. Using folder(...) rightfully causes an index out of range error.

This commit partially reverts #10058 and restores a previous version of said PR.

This commit restores the use of FolderStatusDelegate::data(...) to check whether a folder is ready. The two additions fix two different ways in which the client could crash.

Using data(...) makes sure we use the right data structure to look up the ready state for the subfolders. Using folder(...) rightfully causes an index out of range error.

This commit partially reverts #10058 and restores a previous version of said PR.
@fmoc fmoc added the type:bug label Aug 26, 2022
@fmoc fmoc requested review from erikjv, dragotin and a team August 26, 2022 12:01
@sonarcloud
Copy link

sonarcloud bot commented Aug 26, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@ownclouders
Copy link
Contributor

Results for GUI-tests https://drone.owncloud.com/owncloud/client/12965/6/1
💥 The GUI tests failed.
GUI Logs: (https://cache.owncloud.com/public/owncloud/client/12965/guiReportUpload/index.html)
Server Logs: (https://cache.owncloud.com/public/owncloud/client/12965/guiReportUpload/serverlog.log)
Stacktrace: (https://cache.owncloud.com/public/owncloud/client/12965/guiReportUpload/stacktrace.log)
Screenshots:

@fmoc
Copy link
Contributor Author

fmoc commented Aug 26, 2022

Tested on Ubuntu 20.04 and 22.04 as well as Windows 10 and 11, this PR fixes the crash apparently.

@fmoc fmoc merged commit 3d760b5 into 2.11 Aug 29, 2022
@delete-merged-branch delete-merged-branch bot deleted the work/fix-selective-sync-again branch August 29, 2022 15:26
@jnweiger jnweiger mentioned this pull request Aug 31, 2022
55 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants