From b9bc076036b96c834f379530e703eaedb14525c4 Mon Sep 17 00:00:00 2001 From: Chatura Dilan Date: Tue, 12 Jul 2016 15:14:18 +0530 Subject: [PATCH 1/3] Fixed issues in android permisson.xml --- .../src/main/webapp/META-INF/permissions.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/webapp/META-INF/permissions.xml b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/webapp/META-INF/permissions.xml index 2e2ce8595..a2e3b1e1d 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/webapp/META-INF/permissions.xml +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/webapp/META-INF/permissions.xml @@ -81,21 +81,21 @@ Enroll /device-mgt/user/device/android/enroll - /device/*/applications + /devices/*/applications PUT Enroll /device-mgt/user/device/android/enroll - /device/*/pending-operations + /devices/*/pending-operations PUT Enroll /device-mgt/user/device/android/enroll - /device/*/status + /devices/*/status GET From d802570be90f82ef60906deb846b3ff3eeb3ef6b Mon Sep 17 00:00:00 2001 From: Ace Date: Fri, 15 Jul 2016 12:01:31 +0530 Subject: [PATCH 2/3] Adding app.conf for mobile base plugin --- .../app/build.gradle | 1 - .../devicemgt/app/conf/app-conf.json | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/conf/app-conf.json diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/build.gradle b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/build.gradle index bf9860dba..0c360c9b1 100755 --- a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/build.gradle +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.agent/app/build.gradle @@ -61,5 +61,4 @@ dependencies { compile 'org.altbeacon:android-beacon-library:2.8.1' compile 'uk.co.alt236:easycursor-android:1.0.0' compile 'uk.co.alt236:bluetooth-le-library-android:1.0.0' - } diff --git a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/conf/app-conf.json b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/conf/app-conf.json new file mode 100644 index 000000000..9603e581a --- /dev/null +++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/conf/app-conf.json @@ -0,0 +1,42 @@ +{ + "appName": "Enterprise Mobility Manager", + "cachingEnabled": true, + "debuggingEnabled": false, + "permissionRoot": "/", + "loginPage": "cdmf.page.sign-in", + "adminServicesUrl": "https://${server.ip}:${server.https_port}/admin/services/", + "authModule": { + "enabled": true, + "login": { + "onSuccess": { + "script": "/app/modules/login.js", + "page": "cdmf.page.dashboard" + }, + "onFail": { + "script": "/app/modules/login.js", + "page": "cdmf.page.sign-in" + } + }, + "logout": { + "onSuccess": { + "page": "cdmf.page.sign-in" + }, + "onFail": { + "page": "cdmf.page.dashboard" + } + }, + "sso": { + "enabled": false, + "issuer" : "emm", + "appName" : "emm", + "identityProviderUrl" : "https://localhost:9443/samlsso", + "acs": "https://localhost:9443/devicemgt/uuf/sso/acs", + "identityAlias": "wso2carbon", + "responseSigningEnabled" : "true", + "useTenantKey": false + } + }, + "errorPages": { + "default": "uuf.page.error" + } +} From c1cc6f08d9e8c78d9b6a663ee793eae56f308c25 Mon Sep 17 00:00:00 2001 From: Milan Perera Date: Fri, 15 Jul 2016 19:55:40 +0530 Subject: [PATCH 3/3] Removed device name regex pattern from bean validation --- .../carbon/mdm/services/android/bean/wrapper/AndroidDevice.java | 1 - 1 file changed, 1 deletion(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/bean/wrapper/AndroidDevice.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/bean/wrapper/AndroidDevice.java index 9f5b7bd64..16799dfc3 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/bean/wrapper/AndroidDevice.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/bean/wrapper/AndroidDevice.java @@ -39,7 +39,6 @@ public class AndroidDevice implements Serializable { required = true ) @Size(min = 2, max = 45) - @Pattern(regexp = "^[A-Za-z0-9]*$") private String name; @ApiModelProperty( name = "description",