From d1e058ce8e1d7f68581605db8959802ad3484663 Mon Sep 17 00:00:00 2001 From: hasuniea Date: Fri, 26 Aug 2016 17:40:30 +0530 Subject: [PATCH] fixing api-mgt upgrading issues --- .../mgt/oauth/extensions/OAuthExtUtils.java | 2 +- .../pom.xml | 8 +++ .../pom.xml | 7 +++ .../pom.xml | 7 +++ .../pom.xml | 12 ++++ pom.xml | 57 ++++++++++++------- 6 files changed, 72 insertions(+), 21 deletions(-) diff --git a/components/identity-extensions/org.wso2.carbon.device.mgt.oauth.extensions/src/main/java/org/wso2/carbon/device/mgt/oauth/extensions/OAuthExtUtils.java b/components/identity-extensions/org.wso2.carbon.device.mgt.oauth.extensions/src/main/java/org/wso2/carbon/device/mgt/oauth/extensions/OAuthExtUtils.java index b52d94b657..76e2dba416 100644 --- a/components/identity-extensions/org.wso2.carbon.device.mgt.oauth.extensions/src/main/java/org/wso2/carbon/device/mgt/oauth/extensions/OAuthExtUtils.java +++ b/components/identity-extensions/org.wso2.carbon.device.mgt.oauth.extensions/src/main/java/org/wso2/carbon/device/mgt/oauth/extensions/OAuthExtUtils.java @@ -109,7 +109,7 @@ public class OAuthExtUtils { try { Map appScopes; - ApiMgtDAO apiMgtDAO = new ApiMgtDAO(); + ApiMgtDAO apiMgtDAO = ApiMgtDAO.getInstance(); //Get all the scopes and permissions against the scopes defined for the APIs subscribed to the application. appScopes = apiMgtDAO.getScopeRolesOfApplication(consumerKey); diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/pom.xml b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/pom.xml index 1364436294..6d0dce5f54 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/pom.xml +++ b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/pom.xml @@ -49,6 +49,10 @@ org.wso2.carbon.device.mgt.api.feature zip + + org.wso2.orbit.org.apache.pdfbox + pdfbox + @@ -123,8 +127,12 @@ com.fasterxml.jackson.core:jackson-annotations:${jackson-annotations.version} + + + org.wso2.orbit.org.apache.pdfbox:pdfbox:${orbit.version.pdfbox} + org.wso2.carbon.core.server:${carbon.kernel.version} org.wso2.carbon.apimgt.core:${carbon.api.mgt.version} diff --git a/features/oauth-extensions/org.wso2.carbon.device.mgt.oauth.extensions.feature/pom.xml b/features/oauth-extensions/org.wso2.carbon.device.mgt.oauth.extensions.feature/pom.xml index 81e2544311..fed75bf02e 100644 --- a/features/oauth-extensions/org.wso2.carbon.device.mgt.oauth.extensions.feature/pom.xml +++ b/features/oauth-extensions/org.wso2.carbon.device.mgt.oauth.extensions.feature/pom.xml @@ -48,6 +48,10 @@ org.wso2.carbon.devicemgt org.wso2.carbon.identity.authenticator.backend.oauth + + org.wso2.carbon.apimgt + org.wso2.carbon.apimgt.keymgt.client + @@ -80,6 +84,9 @@ org.wso2.carbon.devicemgt:org.wso2.carbon.identity.authenticator.backend.oauth:${carbon.device.mgt.version} + + org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.keymgt.client:${carbon.api.mgt.version} + org.wso2.carbon.core.server:${carbon.kernel.version} diff --git a/features/policy-mgt/org.wso2.carbon.policy.mgt.server.feature/pom.xml b/features/policy-mgt/org.wso2.carbon.policy.mgt.server.feature/pom.xml index 02734f4d69..d78af1449d 100644 --- a/features/policy-mgt/org.wso2.carbon.policy.mgt.server.feature/pom.xml +++ b/features/policy-mgt/org.wso2.carbon.policy.mgt.server.feature/pom.xml @@ -53,6 +53,10 @@ org.wso2.carbon.devicemgt org.wso2.carbon.policy.information.point + + org.wso2.carbon.apimgt + org.wso2.carbon.apimgt.keymgt + @@ -116,6 +120,9 @@ org.wso2.carbon.devicemgt:org.wso2.carbon.policy.information.point:${carbon.device.mgt.version} + + org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.keymgt:${carbon.api.mgt.version} + org.wso2.carbon.core.server:${carbon.kernel.version} diff --git a/features/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework.server.feature/pom.xml b/features/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework.server.feature/pom.xml index 313584066d..3e7812661c 100644 --- a/features/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework.server.feature/pom.xml +++ b/features/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework.server.feature/pom.xml @@ -40,6 +40,14 @@ org.wso2.carbon.devicemgt org.wso2.carbon.device.mgt.core + + org.wso2.carbon.apimgt + org.wso2.carbon.apimgt.core + + + org.wso2.carbon + org.wso2.carbon.throttle.core + @@ -93,6 +101,10 @@ org.wso2.carbon.devicemgt:org.wso2.carbon.webapp.authenticator.framework:${carbon.device.mgt.version} + + org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.core:${carbon.api.mgt.version} + org.wso2.carbon:org.wso2.carbon.throttle.core:${carbon.throttle.module.version} + org.wso2.carbon.core.server:${carbon.kernel.version} org.wso2.carbon.apimgt.core:${carbon.api.mgt.version} diff --git a/pom.xml b/pom.xml index 2c8ed0e16b..8f74d91606 100644 --- a/pom.xml +++ b/pom.xml @@ -708,7 +708,11 @@ h2-database-engine ${orbit.version.h2.engine} - + + org.wso2.orbit.org.owasp.encoder + encoder + ${owasp.encoder.version} + org.apache.axis2.transport axis2-transport-mail @@ -738,6 +742,11 @@ nimbus-jose-jwt ${nimbus.orbit.version} + + org.wso2.orbit.org.apache.pdfbox + pdfbox + ${orbit.version.pdfbox} + @@ -917,14 +926,14 @@ org.wso2.carbon.apimgt.core ${carbon.api.mgt.version} - - org.wso2.carbon - org.wso2.carbon.core - - - org.wso2.carbon.apimgt - org.wso2.carbon.apimgt.keymgt.stub - + + + + + + + + org.wso2.carbon.apimgt org.wso2.carbon.apimgt.usage.publisher @@ -945,10 +954,10 @@ org.wso2.carbon.apimgt org.wso2.carbon.ganalytics.publisher - - org.wso2.carbon.apimgt - org.wso2.carbon.throttle.core - + + + + @@ -1502,17 +1511,21 @@ jackson-annotations ${jackson-annotations.version} - - org.wso2.orbit.org.owasp.encoder - encoder - ${owasp.encoder.version} - org.hibernate hibernate-validator ${hibernate-validator.version} - + + org.wso2.carbon.apimgt + org.wso2.carbon.apimgt.keymgt.client + ${carbon.api.mgt.version} + + + org.wso2.carbon + org.wso2.carbon.throttle.core + ${carbon.throttle.module.version} + @@ -1801,7 +1814,7 @@ 2.6.0.wso2v1 - 5.0.4 + 5.0.5 (5.0.0,6.0.0] @@ -1884,6 +1897,10 @@ 1.2.0.wso2v1 5.0.2.Final + + + 1.8.10.wso2v2 + 4.2.1