DMTF / Redfishtool

A Python34 program that implements a command line tool for accessing the Redfish API.
Other
225 stars 69 forks source link

SessionService logout fails if given no response body #32

Closed blakehilliard closed 6 years ago

blakehilliard commented 6 years ago

"SessionService logout" fails with "Transport: Error loading Data" if the session deletion response does not include a body. But it is valid for a redfish session deletion to have no response body. See section 6.4.4.4 in the spec:

6.4.4.4. Delete (DELETE) The DELETE method is used to remove a resource.

blakehilliard commented 6 years ago

Turns out it was only failing because a status of 200 was given in the DELETE response, but 204 should be the status if it provides no response body. If the redfish server switches to 204, as it should, then Redfishtool works. So closing the issue.