Skosmos icon indicating copy to clipboard operation
Skosmos copied to clipboard

Error message leaks requested SPARQL endpoint host

Open kouralex opened this issue 3 years ago • 1 comments

What steps will reproduce the problem?

  1. A long-lasting REST query, e.g., to http://localhost/skosmos/rest/v1/search?query=a*&unique=1

What is the expected output? What do you see instead?

ERROR: Request to host:portNumber timed out

An end user should not see this kind of, possibly sensitive data, set in config.ttl.

Remarks

Noticed whilst developing PHP client for Skosmos REST API.

kouralex avatar Nov 30 '21 13:11 kouralex

Thanks! Maybe even an option for customizing such messages wouldn't be a bad idea. For the PHP-client, also check this python-client - https://github.com/NatLibFi/Skosmos-client

joelit avatar Dec 01 '21 18:12 joelit