-
Notifications
You must be signed in to change notification settings - Fork 3
Description
This needs further investigation, but something may be amiss with using low ports which should be excluded from requests.
The RESTapi is quite benevolent and will answer both to http://localhost/ and http://localhost:80 requests, while internally the IRI will be set to http://localhost. This may cause confusing side effects such as empty results for SPARQL requests expecting IRIs starting with localhost:80. While this is already somewhat documented in https://github.com/kit-data-manager/wap-server/blob/main/howtos/root_container.md , a more prominent documentation may be warranted.
Running the dockerized version, the following combination works:
- setting host port to 80
- setting
WapBaseUrltohttp://localhost
However, if WapBaseUrl is erronously set to http://localhost:80, this is taken literally (IRIs in the jena db now start with localhost:80, but due to request rewriting, they basically become unreachable, because all requests will go to http://localhost/wap/ instead. While this is somewhat of an configuration error, we may still be able to handle this case more gracefully. At minimum this may also warrant more prominent documentation -> URI definitions (and requests) should never include those low ports explicitly to avoid problems.