From: Mu-Woong Lee Date: Mon, 24 Apr 2017 11:07:11 +0000 (+0900) Subject: Update the URI format to be aligned with other context URIs X-Git-Tag: accepted/tizen/unified/20170428.032554^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0349646ee9452aa29ef81076bfed8df73ac23f0;p=platform%2Fcore%2Fcontext%2Fcontext-store.git Update the URI format to be aligned with other context URIs Change-Id: I0458ab649109ff6e8fa3283e3a5b8c0d0159c7aa Signed-off-by: Mu-Woong Lee --- diff --git a/schema/sample.xml b/schema/sample.xml index 6e67c38..d7e30ab 100644 --- a/schema/sample.xml +++ b/schema/sample.xml @@ -1,6 +1,6 @@ - + http://tizen.org/privilege/location http://tizen.org/privilege/internal/service diff --git a/src/server/QueryChecker.cpp b/src/server/QueryChecker.cpp index 20a8bed..b5658e9 100644 --- a/src/server/QueryChecker.cpp +++ b/src/server/QueryChecker.cpp @@ -30,7 +30,7 @@ QueryChecker::~QueryChecker() bool QueryChecker::validateUri(const std::string& uri) { - static std::regex uriRegex(URI_REGEX("contextstore"), std::regex::optimize); + static std::regex uriRegex(URI_REGEX("context\/record"), std::regex::optimize); if (!std::regex_match(uri, uriRegex)) { _E("Invalid parameter"); return false; diff --git a/src/server/SchemaChecker.cpp b/src/server/SchemaChecker.cpp index 3a7a165..ecc19cc 100644 --- a/src/server/SchemaChecker.cpp +++ b/src/server/SchemaChecker.cpp @@ -22,7 +22,7 @@ using namespace ctx; SchemaChecker::SchemaChecker() : - __uriRegex(URI_REGEX("contextstore"), std::regex::optimize), + __uriRegex(URI_REGEX("context\/record"), std::regex::optimize), __privilegeRegex(URI_REGEX("privilege"), std::regex::optimize), __columnNameRegex(COL_REGEX, std::regex::optimize) { diff --git a/src/server/SchemaLoader.cpp b/src/server/SchemaLoader.cpp index 0e513e4..69bcce7 100644 --- a/src/server/SchemaLoader.cpp +++ b/src/server/SchemaLoader.cpp @@ -29,7 +29,7 @@ - + http://tizen.org/privilege/healthinfo http://tizen.org/privilege/internal/service