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 network redirect handling to be compatible for both Qt5 and Qt6 #60238

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nirvn
Copy link
Contributor

@nirvn nirvn commented Jan 23, 2025

Description

Fixes #60235 . More details are in the issue, but basically QGIS' handling of redirects was not compatible with Qt6's changed default policy for redirects. The PR heals that by manually setting the policy to what QGIS expects.

@github-actions github-actions bot added this to the 3.42.0 milestone Jan 23, 2025
Copy link

github-actions bot commented Jan 23, 2025

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit 6ec126c)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit 6ec126c)

@nyalldawson
Copy link
Collaborator

@nirvn wouldn't it be better to remove all manual redirect handling from qgis? It's annoying fragile code which we could safely drop.

@nirvn
Copy link
Contributor Author

nirvn commented Jan 23, 2025

@nyalldawson , hm not completely sure we could go that easily. I'm seeing some weird caching of redirected content. Plus there's some unsafe redirection we tolerate ATM I think.

My suggestion would be to go for this as a short term fix then rethink how we want to do this overall.

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.

QGIS' handling of network requests' redirects is broken under Qt6
2 participants