Commit 6f6a4673 authored by Srikrishna Gurugubelli's avatar Srikrishna Gurugubelli Committed by Mushfiqul Islam

[IOT-2618] Fix filter check for interface query

Introspection resource was not checking for interface filter properly
resulting in missing mandatory properties expected on baseline interface
query.
Signed-off-by: default avatarSrikrishna Gurugubelli <srikguru@microsoft.com>
Change-Id: I920d4a1ecc4442e34fc1de8633291de6f341a123
Bug: https://jira.iotivity.org/browse/IOT-2618
parent e0d15ecb
......@@ -1936,6 +1936,10 @@ static OCStackResult HandleVirtualResource (OCServerRequest *request, OCResource
else if (OC_INTROSPECTION_URI == virtualUriInRequest)
{
// Received request for introspection
discoveryResult = getQueryParamsForFiltering(virtualUriInRequest, request->query,
&interfaceQuery, &resourceTypeQuery);
VERIFY_SUCCESS(discoveryResult);
OCResource *resourcePtr = FindResourceByUri(OC_RSRVD_INTROSPECTION_URI_PATH);
bool includeBaselineProps = interfaceQuery
&& (0 == strcmp(interfaceQuery, OC_RSRVD_INTERFACE_DEFAULT));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment