Skip to content

fix: ignore directory listing entry for the iterated directory#8921

Merged
nilsding merged 1 commit intomasterfrom
bugfix/8915/lscol-root
Oct 22, 2025
Merged

fix: ignore directory listing entry for the iterated directory#8921
nilsding merged 1 commit intomasterfrom
bugfix/8915/lscol-root

Conversation

@nilsding
Copy link
Copy Markdown
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
Copy Markdown
Member Author

/backport to stable-4.0

@github-actions
Copy link
Copy Markdown

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
Copy Markdown

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarQube Cloud

Image Catch issues before they fail your Quality Gate with our IDE extension Image 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

2 participants