Skip to content

Conversation

@nilsding
Copy link
Member

Since Qt 6 the default redirection policy is NoLessSafeRedirectPolicy. This resulted in the custom redirect logic in AbstractNetworkJob::slotFinished never being used (this one already takes care of checking for HTTPS->HTTP downgrades, and if HSTS is enabled for the given host the request would be sent as HTTPS anyway).

Since Qt 6 the default redirection policy is `NoLessSafeRedirectPolicy`.
This resulted in the `QNetworkReply::redirected` signal to never be
emitted.

Signed-off-by: Jyrki Gadinger <[email protected]>
@nilsding nilsding added this to the 4.1.0 milestone Dec 15, 2025
@nilsding nilsding self-assigned this Dec 15, 2025
@nilsding nilsding enabled auto-merge December 15, 2025 11:30
@github-actions
Copy link

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

Digest: sha256:f7dfa5d0a06af1201ddf00dc38cee93eb88f0f0f01d24626a0c062f8deaf8e2c

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 815a59a into master Dec 15, 2025
20 checks passed
@nilsding nilsding deleted the bugfix/noid/qt6-redirects branch December 15, 2025 12:24
@mgallien
Copy link
Collaborator

/backport to stable-4.0

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
Image 21 Security Hotspots
Image 6.5% Duplication on New Code (required ≤ 3%)
Image E Maintainability Rating on New Code (required ≥ A)
Image 55 New Code Smells (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

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.

3 participants