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 POST requests for QGIS server #8929

Merged
merged 5 commits into from
Jan 22, 2019

Conversation

elpaso
Copy link
Contributor

@elpaso elpaso commented Jan 21, 2019

Followup #8830 that fixed
a regression with rewritten urls in the server, unfortunately
my original solution introduced a side-effect on the POST
request, with the new approach I'm introducing a new method
to retrieve the URL as seen by the web server: by default
this is the same URL seen by QGIS server, but in case
a rewrite module made some changes, the original URL will
be used as a base URL if not overridden by a config setting.

This PR comes with an extended set of tests that should
cover both (rewritten and unrewritten) cases for GET and
POST and for WFS/WMS/WCS and WMTS.

Funded by Kanton Zug

Followup qgis#8830 that fixed
a regression with rewritten urls in the server, unfortunately
my original solution introduced a side-effect on the POST
request, with the new approach I'm introducing a new method
to retrieve the URL as seen by the web server: by default
this is the same URL seen by QGIS server, but in case
a rewrite module made some changes, the original URL will
be used as a base URL if not overridden by a config setting.

This PR comes with an extended set of tests that should
cover both (rewritten and unrewritten) cases for GET and
POST and for WFS/WFS/WCS and WMTS.
@tudorbarascu
Copy link
Member

Nice! Just tested and it works!

@elpaso elpaso merged commit b129850 into qgis:master Jan 22, 2019
@elpaso elpaso deleted the bugfix-21059-server-post-request-issues branch January 22, 2019 12:59
elpaso added a commit to elpaso/QGIS that referenced this pull request Feb 6, 2019
…uest-issues

Fix POST requests for QGIS server

Cherry-picked from master b129850
@elpaso elpaso mentioned this pull request Feb 6, 2019
nyalldawson pushed a commit that referenced this pull request Feb 6, 2019
…-issues

Fix POST requests for QGIS server

Cherry-picked from master b129850
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.

None yet

3 participants