if (ret != APP_CONTROL_ERROR_NONE ) {
DEBUG("app_control_set_app_id error");
}
+ ret = app_control_add_extra_data(ac, APP_CONTROL_DATA_TEXT, args);
+ if (ret != APP_CONTROL_ERROR_NONE ) {
+ DEBUG("app_control_add_extra_data error");
+ }
ret = app_control_send_launch_request(ac, NULL, NULL);
if (ret != APP_CONTROL_ERROR_NONE) {
git apply ../patches/capability_test.patch
git apply ../patches/commands.patch
git apply ../patches/commandvalidator.patch
+ git apply ../patches/injectionchecker.patch
git apply ../patches/native.patch
git apply ../patches/configuremgr.patch
git apply ../patches/configuremgr_test.patch
--- /dev/null
+diff --git a/src/common/commandvalidator/injectionchecker/injectionchecker.go b/src/common/commandvalidator/injectionchecker/injectionchecker.go
+index d984029..5688cca 100644
+--- a/src/common/commandvalidator/injectionchecker/injectionchecker.go
++++ b/src/common/commandvalidator/injectionchecker/injectionchecker.go
+@@ -23,7 +23,7 @@ import (
+
+ var injectionOperators = []string{
+ ";",
+- "&",
++// "&",
+ "&&",
+ "||",
+ "'",
diff --git a/src/orchestrationapi/orchestration.go b/src/orchestrationapi/orchestration.go
-index 60673bc..5518be7 100644
+index 60673bc..d7b7c01 100644
--- a/src/orchestrationapi/orchestration.go
+++ b/src/orchestrationapi/orchestration.go
@@ -39,7 +39,7 @@ import (
resourceMonitorImpl = resourceutil.GetMonitoringInstance()
orcheIns.notificationIns = notification.GetInstance()
-@@ -189,6 +201,19 @@ func (o orcheImpl) Notify(serviceInfo configuremgrtypes.ServiceInfo) {
+@@ -187,6 +199,21 @@ func (o orcheImpl) Notify(serviceInfo configuremgrtypes.ServiceInfo) {
+ log.Println(logtag, "[Error]", err.Error())
+ return
}
- }
-
++ o.discoverIns.ForceDiscovery()
++}
++
+func (o orcheImpl) NotifyRemove(serviceName string) {
+ validator := commandvalidator.CommandValidator{}
+ if err := validator.DeleteCommand(serviceName); err != nil {
+ log.Println(logtag, "[Error]", err.Error())
+ return
+ }
-+}
-+
++ o.discoverIns.ForceDiscovery()
+ }
+
// ExecuteAppOnLocal executes a service application on local device
- func (o orcheImpl) ExecuteAppOnLocal(appInfo map[string]interface{}) {
- o.serviceIns.ExecuteAppOnLocal(appInfo)