[Verification] Finding content by uri is possible.
Change-Id: I5fba83a17aa1572ada1ba8030c91de2167d31aa6
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
LoggerE("INVALID_VALUES_ERR");
return PlatformResult(ErrorCode::INVALID_VALUES_ERR);
}
-
if (AttributeMatchFlag::kExists != match_flag) {
query.append("\"");
matchValue = escapeValueString(JsonCast<std::string>(match_value));
} else { // OTHER
matchValue = "4";
}
+ } else if (name == "contentURI") {
+ //simple convertion of URI to globalpath
+ matchValue = matchValue.substr(strlen("file://"));
}
switch (match_flag) {
case AttributeMatchFlag::kStartsWith :