Skip to content

[stable-4.0] fix(networkjobs): move processEvents after reply reads in LsColJob#10102

Merged
mgallien merged 1 commit into
stable-4.0from
backport/10093/stable-4.0
Jun 9, 2026
Merged

[stable-4.0] fix(networkjobs): move processEvents after reply reads in LsColJob#10102
mgallien merged 1 commit into
stable-4.0from
backport/10093/stable-4.0

Conversation

@backportbot

@backportbot backportbot Bot commented Jun 3, 2026

Copy link
Copy Markdown

Backport of #10093

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot Bot requested review from camilasan and mgallien June 3, 2026 09:04
@backportbot backportbot Bot added this to the 4.0.11 milestone Jun 3, 2026
LsColJob::finished() called QCoreApplication::processEvents() before
reading the reply. A pending deleteLater() processed during that
call would zero the QPointer<QNetworkReply>, causing a SIGSEGV
on the subsequent reply()->request().url().path() access.

Fix: move processEvents to after all reply() accesses so the pointer
cannot be invalidated before it is used.

Signed-off-by: Camila Ayres <hello@camilasan.com>
@mgallien mgallien force-pushed the backport/10093/stable-4.0 branch from 72fcc11 to 5f6656f Compare June 9, 2026 12:06
@mgallien mgallien marked this pull request as ready for review June 9, 2026 12:07
@mgallien mgallien enabled auto-merge June 9, 2026 12:07
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

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

Digest: sha256:174746c17f34fbc0023b98d7e0196c9fbfbf3d2ad63e1561b58bf2ff2874eaa1

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 c7b59b4 into stable-4.0 Jun 9, 2026
19 checks passed
@mgallien mgallien deleted the backport/10093/stable-4.0 branch June 9, 2026 12:22
@sonarqubecloud

sonarqubecloud Bot commented Jun 9, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

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

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.

2 participants