Edirom / MerMEId

Metadata Editor and Repository for MEI Data

Home Page:https://mermeid.edirom.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

controller caching fails CRUD endpoints for subsequent calls

peterstadler opened this issue · comments

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(!)