Hi, Please merge pull request [1] fix for issue [2].
[1]- https://github.com/wso2-dev/carbon-commons/pull/7 [2]- https://wso2.org/jira/browse/CARBON-14825 Thanks. /Susankha. On Wed, Jun 4, 2014 at 2:11 PM, Susankha Nirmala <susan...@wso2.com> wrote: > Hi all, > > When undeploy a Capp from Carbon 4.2.0 based servers, the Carbon > server checks CApp name with its version. > > public void deleteApplication(String appName) throws Exception { > // If appName is null throw an exception > if (appName == null) { > handleException("Application name can't be null"); > return; > } > > // CarbonApplication instance to delete > CarbonApplication currentApp = null; > > // Iterate all applications for this tenant and find the > application to delete > String tenantId = AppDeployerUtils.getTenantIdString(getAxisConfig > ()); > ArrayList<CarbonApplication> appList = > AppManagementServiceComponent.getAppManager(). > getCarbonApps(tenantId); > for (CarbonApplication carbonApp : appList) { > if (appName.equals(*carbonApp.getAppNameWithVersion()*)) { > currentApp = carbonApp; > } > } > > But when undeploy a CApp from prior carbon based servers, Carbon > server checks CApp name without its version. > > > public void deleteApplication(String appName) throws Exception { > // If appName is null throw an exception > if (appName == null) { > handleException("Application name can't be null"); > return; > } > > // CarbonApplication instance to delete > CarbonApplication currentApp = null; > > // Iterate all applications for this tenant and find the > application to delete > String tenantId = AppDeployerUtils.getTenantIdString(getAxisConfig > ()); > ArrayList<CarbonApplication> appList = > AppManagementServiceComponent.getAppManager(). > getCarbonApps(tenantId); > for (CarbonApplication carbonApp : appList) { > if (appName.equals(*carbonApp.getAppName()*)) { > currentApp = carbonApp; > } > } > > When configuring a Carbon Servers as a remote server within Dev Studio, > it cannot identify carbon version of the remote server. Due to that, from > DevStudio side, cannot identify what is the expected CApp name (with > version or without version) from Carbon server. > > Had an online chat with Kishanthan and Manoj. They agree to fix this form > platform side. > > > Thanks. > /Susankha. > > > -- > Susankha Nirmala > Software Engineer > WSO2, Inc.: http://wso2.com > lean.enterprise.middleware > Mobile : +94 77 593 2146 > -- Susankha Nirmala Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware Mobile : +94 77 593 2146
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev