Program: 115664
Project: 115664
Buggy source:
/** 
 * Updates the Deployment Policy Definition.
 * @param deploymentPolicyDefinitionBean the deployment policy bean
 * @return 200 if deployment policy is successfully updated
 * @throws RestAPIException the rest api exception
 */
@PUT @Path("String_Node_Str") @Produces("String_Node_Str") @Consumes("String_Node_Str") @AuthorizationAction("String_Node_Str") public Response updateDeploymentPolicy(DeploymentPolicyBean deploymentPolicyDefinitionBean) throws RestAPIException {
  String deploymentPolicyID=deploymentPolicyDefinitionBean.getId();
  try {
    StratosApiV41Utils.updateDeploymentPolicy(deploymentPolicyDefinitionBean);
  }
 catch (  AutoscalerServiceInvalidPolicyExceptionException e) {
    return Response.status(Response.Status.BAD_REQUEST).entity(new ResponseMessageBean(ResponseMessageBean.ERROR,"String_Node_Str")).build();
  }
catch (  AutoscalerServiceInvalidDeploymentPolicyExceptionException e) {
    return Response.status(Response.Status.BAD_REQUEST).entity(new ResponseMessageBean(ResponseMessageBean.ERROR,"String_Node_Str")).build();
  }
catch (  AutoscalerServiceDeploymentPolicyNotExistsExceptionException e) {
    return Response.status(Response.Status.NOT_FOUND).entity(new ResponseMessageBean(ResponseMessageBean.ERROR,"String_Node_Str")).build();
  }
  URI url=uriInfo.getAbsolutePathBuilder().path(deploymentPolicyID).build();
  return Response.ok(url).entity(new ResponseMessageBean(ResponseMessageBean.SUCCESS,String.format("String_Node_Str" + "String_Node_Str",deploymentPolicyID))).build();
}

Fixed version (ground truth):
/** 
 * Updates the Deployment Policy Definition.
 * @param deploymentPolicyDefinitionBean the deployment policy bean
 * @return 200 if deployment policy is successfully updated
 * @throws RestAPIException the rest api exception
 */
@PUT @Path("String_Node_Str") @Produces("String_Node_Str") @Consumes("String_Node_Str") @AuthorizationAction("String_Node_Str") public Response updateDeploymentPolicy(DeploymentPolicyBean deploymentPolicyDefinitionBean) throws RestAPIException {
  String deploymentPolicyID=deploymentPolicyDefinitionBean.getId();
  try {
    StratosApiV41Utils.updateDeploymentPolicy(deploymentPolicyDefinitionBean);
  }
 catch (  AutoscalerServiceInvalidPolicyExceptionException e) {
    String backendErrorMessage=e.getFaultMessage().getInvalidPolicyException().getMessage();
    return Response.status(Response.Status.BAD_REQUEST).entity(new ResponseMessageBean(ResponseMessageBean.ERROR,backendErrorMessage)).build();
  }
catch (  AutoscalerServiceInvalidDeploymentPolicyExceptionException e) {
    String backendErrorMessage=e.getFaultMessage().getInvalidDeploymentPolicyException().getMessage();
    return Response.status(Response.Status.BAD_REQUEST).entity(new ResponseMessageBean(ResponseMessageBean.ERROR,backendErrorMessage)).build();
  }
catch (  AutoscalerServiceDeploymentPolicyNotExistsExceptionException e) {
    return Response.status(Response.Status.NOT_FOUND).entity(new ResponseMessageBean(ResponseMessageBean.ERROR,"String_Node_Str")).build();
  }
  URI url=uriInfo.getAbsolutePathBuilder().path(deploymentPolicyID).build();
  return Response.ok(url).entity(new ResponseMessageBean(ResponseMessageBean.SUCCESS,String.format("String_Node_Str" + "String_Node_Str",deploymentPolicyID))).build();
}