query: set only to true
Only parameter is considered safe, and is not behind the flag in the
query handler codes. This change sets |OnlyMemberQuery| to true all the
time.
Tested:
1. unit test passed
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: I967912ec6c3103531b4c6556710a2b8924e3ac4f
diff --git a/redfish-core/lib/service_root.hpp b/redfish-core/lib/service_root.hpp
index 3b533d4..8d686c5 100644
--- a/redfish-core/lib/service_root.hpp
+++ b/redfish-core/lib/service_root.hpp
@@ -94,7 +94,7 @@
protocolFeatures["ExpandQuery"]["NoLinks"] =
bmcwebInsecureEnableQueryParams;
protocolFeatures["FilterQuery"] = false;
- protocolFeatures["OnlyMemberQuery"] = bmcwebInsecureEnableQueryParams;
+ protocolFeatures["OnlyMemberQuery"] = true;
protocolFeatures["SelectQuery"] = bmcwebInsecureEnableQueryParams;
protocolFeatures["DeepOperations"]["DeepPOST"] = false;
protocolFeatures["DeepOperations"]["DeepPATCH"] = false;