Closed ddeel closed 6 years ago
@ddeel it might be because of the delete request to the Redfish API has stopped running or the url doesn't exist. could you please test the same operation either in POSTMAN or Advanced REST Client and let us know if you are able to see the expected behaviour
To replicate an example of the problem, start the client, open an instance of a Swordfish Service running on the emulator in its default configuration, look at "Chassis" in that instance, and click on the "Remove" button:
Now click on the minus sign next to "Chassis-12" and the following alert comes up:
If you then click on "OK" in the alert, the resource has not been removed:
If you send the following DELETE command using the Restlet Client, the resource is properly deleted:
After deleting "Chassis-12" with the Restlet Client, the Swordfish Basic Web Client shows that it has been deleted from the Chassis collection:
The Restlet Client is able to delete resources in the Chassis collection, but the client is not able to do this. The problem is also present for the Managers collection and the Systems collection, and possibly others.
We will find the RCA for it and update the code to resolve the bug in basic web client
@ddeel We found the root cause for it. Currently swordfish Emulator is deleting the collection based on the request body, where as redfish is doing with the complete resource URI As our web client code is written on swordfish emulator we couldn't perform the delete operation successfully for redfish
@chandramouli12 please look into this.
When you click on "Remove" for a StorageService collection or a StorageSystems collection, you are able to successfully remove an item by clicking on the minus sign ("-"), and the client responds with an alert saying "Deleted Sucessfully".
When you click on "Remove" for any of the Redfish collections (Chassis, Managers, Systems, etc) and try to do the same thing, it fails to remove the item and the client responds with an alert saying "Deleting a service Failed".
This can be reproduced by using the client with the Swordfish API Emulator running in its default configuration.