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

Wps getcapabilities offered operations urls #525

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

lubojr
Copy link
Contributor

@lubojr lubojr commented Jun 24, 2022

GetCapabilities documents of WPS 1.0 and WPS 2.0 interfaces do not list Operations with the actual service URL but a one from configuration, so if the service is actually accessible behind more URLs, it is not possible to guarantee that the same hostname that is used to send the request will also appear in the getcapabilities links.

BEFORE: service url from configuration currently used in WPS: conf.http_service_url (this config is marked as mandatory in eoxserver user guide) yields for example: <ows:Get xlink:href="pvs/ows?"/> or in tests http://testserver/ows

AFTER: Use the request absolute URI itself (as is in case of WMS and WCS service GetCapabilities) which would yield <ows:Get xlink:href="http://hostname_used_for_request/ows?"/>

TODO, do this for WCS GetCapabilities as well.

@pacesm
Copy link
Member

pacesm commented Jun 24, 2022

Probably a right thing to do though it should be noted that this approach depends on the correct reverse-proxy configuration. When running behind a reverse proxy, Django will be able to resolve the public URL only if it receives the right forward headers.

@lubojr lubojr marked this pull request as draft September 15, 2022 13:18
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.

2 participants