Closed davidallendj closed 9 months ago
This looks to me like we're trying to use mux.Vars
when we should be using chi.URLParam(r,"xname")
Since we dropped mux in favor of chi, anything that relies on mux is likely to fail.
That was the issue and changing the top to lines to xname := chi.URLParam(r, "xname")
fixed it.
Describe the bug When trying to make a request to SMD, URLs that contain a parameter such as
/hsm/v2/Inventory/RedfishEndpoints/{xname}
or/hsm/v2/Inventory/ComponentEndpoints/{xname}
will return a 400 response code.More relevant information from SMD:
To Reproduce Steps to reproduce the behavior:
curl http://127.0.0.1:27779/hsm/v2/Inventory/ComponentEndpoints/x0c0s1b0
Expected behavior Making a request to these endpoints should not return a 400. The request should return a response as described in the
swagger_v2.yml
file.Desktop (please complete the following information):