DMTF / Redfish-Service-Validator

The Redfish Service Validator is a Python3 tool for checking conformance of any "device" with a Redfish service interface against Redfish CSDL schema
Other
41 stars 34 forks source link

failAllowHeader error is reported in Certificate #479

Closed JojoWu19 closed 2 years ago

JojoWu19 commented 2 years ago

We get the below error: 1 failAllowHeader errors in /redfish/v1/Managers/1/NetworkProtocol/HTTPS/Certificates/1

But there are Actions designed in the Certificate so it should allow to have the header Allow: POST .

Here is the debug log: Certificate_debug.log

mraineri commented 2 years ago

The Allow header shouldn't show methods for actions since the URI to invoke the action is different than the resource URI. By showing POST in the Allow header for "/redfish/v1/Managers/1/NetworkProtocol/HTTPS/Certificates/1", this tells a client that POST to "/redfish/v1/Managers/1/NetworkProtocol/HTTPS/Certificates/1" is valid, which is not correct; a client can never POST to that URI.

JojoWu19 commented 2 years ago

@mraineri , you are right, thank you. Close this.