EBISPOT / ols4

Version 4 of the EMBL-EBI Ontology Lookup Service (OLS)
http://www.ebi.ac.uk/ols4/
Apache License 2.0
47 stars 22 forks source link

Querying an ontology by entity type and IRI returns status 500 when provided IRI does not match provided entity type #772

Open SArndt-TIB opened 4 weeks ago

SArndt-TIB commented 4 weeks ago

Hi everyone,

one of our users reported unexpected behaviour for our ols3-based system. The same behaviour is visible on ols4-based systems, though. I will provide their original bug description in your template with exmples from our service and from the running OLS-instance from EBI. Thanks for looking into this and letting me know if anything can be done about it. Thanks, and all the best, Susanne

Describe the bug Querying an ontology by entities type (term, individual, property) and IRI returns status 500 when the provided IRI does not match the provided entity type.

To Reproduce The bug triggers in the following OLS3 scenarios:

Example of querying a term using the /ontologies/{ontology}/properties endpoint (at TIB):
https://service.tib.eu/ts4tib/api/ontologies/abcd/properties?iri=http%3A%2F%2Frs.tdwg.org%2Fabcd%2Fterms%2FBotanicalGardenUnit

Example from EBI OLS4 endpoint: https://www.ebi.ac.uk/ols4/api/ontologies/bco/properties/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBCO_0000031

Expected behavior The server should respond with an empty page or status 404.

Additional context Used browser: Windows 10, Firefox 131.0.3

haideriqbal commented 4 weeks ago

Hi, we will be updating the API to return 404 in cases where the wrong IRI is specified. Thank you for reporting this.