Skip to content

Conversation

@nilsding
Copy link
Member

The ignoreFirst bool had a short lifetime, by the time the lambda slot handling the LsColJob::directoryListingIterated signal was called the reference to that bool would report a completely different value. This could result in the first entry of a directory listing to not be ignored properly.

This commit changes the way the slot checks whether it's currently iterating over the very same directory that was just requested by comparing the request path with the path from the response.

Fixes #8915

The `ignoreFirst` bool had a short lifetime, by the time the lambda slot
handling the `LsColJob::directoryListingIterated` signal was called the
reference to that bool would report a completely different value.  This
could result in the first entry of a directory listing to not be ignored
properly.

This commit changes the way the slot checks whether it's currently
iterating over the very same directory that was just requested by
comparing the request path with the path from the response.

Fixes #8915

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
@nilsding nilsding added this to the 4.1.0 milestone Oct 22, 2025
@nilsding nilsding self-assigned this Oct 22, 2025
@nilsding
Copy link
Member Author

/backport to stable-4.0

@github-actions
Copy link

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

Digest: sha256:384c11e17684ca3f987807e64da0da75f783570c23b347334fe70ed69d52dedc

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.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
33 New Code Smells (required ≤ 0)
E Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

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

@nilsding nilsding merged commit 265385d into master Oct 22, 2025
21 of 24 checks passed
@nilsding nilsding deleted the bugfix/8915/lscol-root branch October 22, 2025 15:40
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]: V4.0.0 - a folder, a subfolder with the same name as the parent folder is created

3 participants