vivo-project / VIVO

VIVO is an extensible semantic web application for research discovery and showcasing scholarly work
http://vivoweb.org
BSD 3-Clause "New" or "Revised" License
202 stars 127 forks source link

Path variable parsing not working #3897

Open ivanmrsulja opened 1 year ago

ivanmrsulja commented 1 year ago

Describe the bug When trying to provide a path variable in dynapi endpoint, it simply cannot parse it and reports that the required value is missing.

To Reproduce Steps to reproduce the behavior:

  1. Download these .n3 files
  2. Try any of the documented endpoints that require a path variable (ReadOne, Delete or Update), use a b64 encoded URI as resource_id (as is specified in documentation)
  3. 500 internal server error should be returned

Expected behavior A path variable should be parsed correctly when provided.

Additional context There is a workaround for this issue to use request parameters eg. : http://localhost:8080/vivo/api/rest/1/person/resource:anything?resource_id=http://xmlns.com/foaf/0.1/Person%230037906860193148151995078924725034246217