From 3fd56b56c41ac38c730bf07444f4645412344d45 Mon Sep 17 00:00:00 2001 From: Chatura Dilan Date: Tue, 31 May 2016 16:21:42 +0530 Subject: [PATCH 1/2] Fix cxf servelt issues --- .../src/main/webapp/META-INF/permissions.xml | 47 +++++++++---------- 1 file changed, 23 insertions(+), 24 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 4ce7a039be..0cbe6c728c 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 @@ -35,7 +35,7 @@ Lock /device-mgt/android/operations/lock - /operation/lock + /admin/devices/lock-devices POST emm_admin,emm_user @@ -51,7 +51,7 @@ Mute /device-mgt/android/operations/mute - /operation/mute + /admin/devices/mute POST emm_admin,emm_user @@ -59,14 +59,14 @@ Location /device-mgt/android/operations/location - /operation/location + /admin/devices/location POST emm_admin,emm_user Clear Passcode - /operation/clear-password/ + /admin/devices/clear-password POST emm_admin @@ -74,7 +74,7 @@ Camera /device-mgt/android/operations/camera - /operation/camera + /admin/devices/control-camera POST emm_admin,emm_user @@ -82,7 +82,7 @@ Device Info /device-mgt/android/operations/device-info - /operation/device-info + /admin/devices/info POST emm_admin,emm_user @@ -90,7 +90,7 @@ Enterprise Wipe /device-mgt/android/operations/enterprise-wipe - /operation/enterprise-wipe + /admin/devices/enterprise-wipe POST emm_admin @@ -98,7 +98,7 @@ Wipe Data /device-mgt/android/operations/wipe-data - /operation/wipe-data + /admin/devices/wipe POST emm_admin @@ -106,7 +106,7 @@ Application List /device-mgt/android/operations/application-list - /operation/application-list + /admin/devices/applications POST emm_admin,emm_user @@ -114,7 +114,7 @@ Ring /device-mgt/android/operations/ring-device - /operation/ring-device + /admin/devices/ring POST emm_admin,emm_user @@ -122,7 +122,7 @@ Reboot /device-mgt/android/operations/reboot-device - /operation/reboot-device + /admin/devices/reboot POST emm_admin,emm_user @@ -130,15 +130,14 @@ Upgrade Firmware /device-mgt/android/operations/upgrade-firmware - /operation/upgrade-firmware - POST - emm_admin,emm_user + /admin/devices/upgrade-firmware + /admin/devices/upgrade-firmware Configure VPN /device-mgt/android/operations/vpn - /operation/vpn + /admin/devices/configure-vpn POST emm_admin,emm_user @@ -154,7 +153,7 @@ Update Application /device-mgt/android/operations/update-application - /operation/update-application + /admin/devices/update-application POST emm_admin,emm_user @@ -162,7 +161,7 @@ Uninstall Application /device-mgt/android/operations/uninstall-application - /operation/uninstall-application + /admin/devices/uninstall-application POST emm_admin,emm_user @@ -170,7 +169,7 @@ Blacklist Applications /device-mgt/android/operations/blacklist-applications - /operation/blacklist-applications + /admin/devices/blacklist-applications POST emm_admin @@ -178,7 +177,7 @@ Notification /device-mgt/android/operations/notification - /operation/notification + /admin/devices/send-notification POST emm_admin,emm_user @@ -186,7 +185,7 @@ Wifi /device-mgt/android/operations/wifi - /operation/wifi + /admin/devices/configure-wifi POST emm_admin @@ -194,7 +193,7 @@ Encryption /device-mgt/android/operations/encrypt - /operation/encrypt + /admin/devices/encrypt-storage POST emm_admin @@ -202,7 +201,7 @@ Change lock code /device-mgt/android/operations/change-lock-code - /operation/change-lock-code + /admin/devices/change-lock-code POST emm_admin @@ -210,7 +209,7 @@ Password Policy /device-mgt/android/operations/password-policy - /operation/password-policy + /admin/devices/set-password-policy POST emm_admin @@ -218,7 +217,7 @@ Webclip /device-mgt/android/operations/webclip - /operation/webclip + /admin/devices/set-webclip POST emm_admin From 56a2ca0aa07281ba7243b95ad2d2efac6bd4120a Mon Sep 17 00:00:00 2001 From: mharindu Date: Tue, 31 May 2016 17:21:31 +0530 Subject: [PATCH 2/2] Added missing HTTP method attribute in permissions.xml in android webapp --- .../src/main/webapp/META-INF/permissions.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 0cbe6c728c..f1b5ca435a 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 @@ -131,7 +131,8 @@ Upgrade Firmware /device-mgt/android/operations/upgrade-firmware /admin/devices/upgrade-firmware - /admin/devices/upgrade-firmware + POST + emm_admin