Skip to content

Handling of low ports (80, 443) #72

@GGoetzelmann

Description

@GGoetzelmann

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 WapBaseUrl to http://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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions