From 9d41aec68bc35dd6e7ae6c34f3678f38377f8731 Mon Sep 17 00:00:00 2001 From: Ravi Teja Date: Fri, 23 Jul 2021 01:57:01 -0500 Subject: Fix EventService Subscriptions URI GET on subscriptions URI returns NotFound error this commit fixes URI issues Tested by: GET https://${bmc}/redfish/v1/EventService/Subscriptions/3800595217 Signed-off-by: Ravi Teja Change-Id: I2952694e4786dc78248335559c8aec795bfabd6e --- redfish-core/lib/event_service.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'redfish-core/lib/event_service.hpp') diff --git a/redfish-core/lib/event_service.hpp b/redfish-core/lib/event_service.hpp index 1330438d92..98c67c66f6 100644 --- a/redfish-core/lib/event_service.hpp +++ b/redfish-core/lib/event_service.hpp @@ -488,7 +488,7 @@ inline void requestRoutesEventDestinationCollection(App& app) inline void requestRoutesEventDestination(App& app) { - BMCWEB_ROUTE(app, "redfish/v1/EventService/Subscriptions//") + BMCWEB_ROUTE(app, "/redfish/v1/EventService/Subscriptions//") .privileges(redfish::privileges::getEventDestination) .methods(boost::beast::http::verb::get)( [](const crow::Request&, @@ -540,7 +540,7 @@ inline void requestRoutesEventDestination(App& app) }); /////redfish/v1/EventService/Subscriptions/ // ConfigureManager - BMCWEB_ROUTE(app, "redfish/v1/EventService/Subscriptions//") + BMCWEB_ROUTE(app, "/redfish/v1/EventService/Subscriptions//") // The below privilege is wrong, it should be ConfigureManager OR // ConfigureSelf // TODO(ed) follow up with DMTF spec and understand ConfigureSelf @@ -597,7 +597,7 @@ inline void requestRoutesEventDestination(App& app) EventServiceManager::getInstance().updateSubscriptionData(); }); - BMCWEB_ROUTE(app, "redfish/v1/EventService/Subscriptions//") + BMCWEB_ROUTE(app, "/redfish/v1/EventService/Subscriptions//") // The below privilege is wrong, it should be ConfigureManager OR // ConfigureSelf //.privileges(redfish::privileges::deleteEventDestination) -- cgit v1.2.3