Thomas Diesler created AS7-6938:
-----------------------------------
Summary: Add and deploy does not fail if runtimeName already exists
Key: AS7-6938
URL:
https://issues.jboss.org/browse/AS7-6938
Project: Application Server 7
Issue Type: Bug
Components: Server
Reporter: Thomas Diesler
Assignee: Jason Greene
Fix For: 8.0.0.Alpha1
The ServerDeploymentHelper has this code
{code}
public String deploy(String runtimeName, InputStream input) throws
ServerDeploymentException {
ServerDeploymentActionResult actionResult;
try {
DeploymentPlanBuilder builder = deploymentManager.newDeploymentPlan();
builder = builder.add(runtimeName, input).andDeploy();
DeploymentPlan plan = builder.build();
DeploymentAction action = builder.getLastAction();
Future<ServerDeploymentPlanResult> future =
deploymentManager.execute(plan);
ServerDeploymentPlanResult planResult = future.get();
actionResult = planResult.getDeploymentActionResult(action.getId());
} catch (Exception ex) {
throw new ServerDeploymentException(ex);
}
if (actionResult.getDeploymentException() != null)
throw new ServerDeploymentException(actionResult);
return runtimeName;
}
{code}
which does not fail if the runtimeName already exists
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira