Change AppControlValidation routine 70/88870/2 accepted/tizen/common/20160922.120323 accepted/tizen/ivi/20160922.233118 accepted/tizen/mobile/20160922.233058 accepted/tizen/tv/20160922.233112 accepted/tizen/wearable/20160922.233106 submit/tizen/20160922.003440
authorJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 21 Sep 2016 04:27:46 +0000 (13:27 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 21 Sep 2016 07:53:42 +0000 (16:53 +0900)
Change to not to check operation value to allow
installation of pkg which has empty appcontrol
operation name for tizen_2.4

Change-Id: I648e09174e90ed70da996b6b15f9a7514ac2cec3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/tpk_manifest_handlers/common/application_handler.h

index 5255fdbdd830350fdd29a91419d8e4ed81956196..2c46b6474c2414607ba0805f0de2b01871525f47 100644 (file)
@@ -318,11 +318,8 @@ bool InitializeParsingElement(
 template<typename T>
 bool AppControlValidation(const T& it, std::string* error) {
   for (const auto& item : it.app_control) {
-    if (item.operation().empty()) {
-      *error =
-          "The operation child element of app-control element is obligatory";
-      return false;
-    } else if (!parser::utils::IsValidIRI(item.operation())) {
+    if (!item.operation().empty() &&
+        !parser::utils::IsValidIRI(item.operation())) {
       *error =
           "The operation child element of app-control element is not valid url";
       return false;