[BUG] Unable to request Service Info via Owner Http API
dohoangminhquan opened this issue · 0 comments
dohoangminhquan commented
I ran the owner demo via docker and found it unable to request Service Info (PUT, POST, DELETE) via Owner HTTP API
Steps to reproduce the behavior:
- Run Owner docker in demo/owner
- Try to do a POST/PUT/GET to api/v1/device/svi
e.g. api/v1/device/svi/?module=fdo_sys&var=hello&guid=be358705-636f-212b-8304-35f88cb14a84&filename=213.csv - Server responded 404 not found
I found the bug in file OwnerServerApp.java:
wrapper = tomcat.addServlet(ctx, "SystemResource", new OwnerSystemResourceServlet());
wrapper.addMapping("/api/v1/device/svi"); <---- HERE*
It should be:
wrapper.addMapping("/api/v1/device/svi/*");