Edirom / MerMEId

Metadata Editor and Repository for MEI Data
https://mermeid.edirom.de/
Apache License 2.0
12 stars 5 forks source link

controller caching fails CRUD endpoints for subsequent calls #176

Closed peterstadler closed 11 months ago

peterstadler commented 11 months ago

When calling (via GET) e.g. http://localhost:8080/data/read?filename=incipit_demo.xml AND providing an Accept header ('application/json' or 'application/xml') the endpoint returns the requested XML file. However, after doing an OPTIONS request, this same call returns 404.

steps to reproduce

  1. curl -i -H "Accept: application/xml" "http://localhost:8080/data/read?filename=nielsen_cnw0131.xml" returns 200
  2. curl -I "http://localhost:8080/data/read?filename=nielsen_cnw0131.xml" returns 404
  3. curl -i -H "Accept: application/xml" "http://localhost:8080/data/read?filename=nielsen_cnw0131.xml" returns 404(!)