opencomputeproject / HWMgmt-DeviceMgr-DeviceManager

Device Manager collects device data and notifications from each device, and make the data available on a predetermined output bus for consumers.
Apache License 2.0
23 stars 12 forks source link

Task 'setsessionservice' return 405 Method not allowed #9

Closed ehaligow closed 2 years ago

ehaligow commented 2 years ago

Task Setsessionservice is sending request, that is not stated in Redfish API. For the given URL only GET method is allowed.

  "method" : "POST",
  "body" : "{\"ServiceEnabled\":true,\"SessionTimeout\":600}",
  "url" : "/redfish/v1/SessionService/",
  "headers" : {
    "Authorization" : "Basic YWRtaW46YWRtaW4=",
    "User-Agent" : "Go-http-client/1.1",
    "Connection" : "close",
    "Host" : "192.168.40.204:8888",
    "Accept-Encoding" : "gzip",
    "Content-Length" : "44"
  },
  "queryParams" : { },
  "queryString" : null,
  "basicAuthCredentials" : {
    "username" : "admin",
    "password" : "admin"
  },
  "json" : {
    "ServiceEnabled" : true,
    "SessionTimeout" : 600
  },
  "expandType" : "NONE",
  "expandLevels" : 1
}, response: {
  "code" : "METHOD_NOT_ALLOWED",
  "body" : "",
  "headers" : { },
  "location" : null,
  "json" : { }
}
JasonscHuang commented 2 years ago

Now, it does not support HTTP Basic-Authetication. You could use the HTTP Token-Based to perform your test.

taskin-ucpinar commented 2 years ago

Edgecore will address this limitation early next week.

ehaligow commented 2 years ago

The issue is resolved.