Program: 14528
Project: 14528
Buggy source:
public UpdateGroupResponseType updateGroup(UpdateGroupType request) throws EucalyptusCloudException {
  UpdateGroupResponseType reply=request.getReply();
  reply.getResponseMetadata().setRequestId(reply.getCorrelationId());
  Context ctx=Contexts.lookup();
  User requestUser=ctx.getUser();
  Account account=getRealAccount(ctx,request.getDelegateAccount());
  Group groupFound=lookupGroupByName(account,request.getGroupName());
  try {
    String newPath=request.getNewPath() != null ? sanitizePath(request.getNewPath()) : null;
    Privileged.modifyGroup(requestUser,account,groupFound,request.getNewGroupName(),newPath);
  }
 catch (  Exception e) {
    LOG.error(e,e);
    if (e instanceof AuthException) {
      if (AuthException.ACCESS_DENIED.equals(e.getMessage())) {
        throw new EuareException(HttpResponseStatus.FORBIDDEN,EuareException.NOT_AUTHORIZED,"String_Node_Str" + groupFound.getName() + "String_Node_Str"+ requestUser.getName());
      }
 else       if (AuthException.GROUP_ALREADY_EXISTS.equals(e.getMessage())) {
        throw new EuareException(HttpResponseStatus.CONFLICT,EuareException.ENTITY_ALREADY_EXISTS,"String_Node_Str" + request.getNewGroupName() + "String_Node_Str");
      }
 else       if (AuthException.INVALID_NAME.equals(e.getMessage())) {
        throw new EuareException(HttpResponseStatus.BAD_REQUEST,EuareException.INVALID_NAME,"String_Node_Str" + request.getNewGroupName());
      }
 else       if (AuthException.INVALID_PATH.equals(e.getMessage())) {
        throw new EuareException(HttpResponseStatus.BAD_REQUEST,EuareException.INVALID_PATH,"String_Node_Str" + request.getNewPath());
      }
    }
    throw new EucalyptusCloudException(e);
  }
  return reply;
}

Fixed version (ground truth):
public UpdateGroupResponseType updateGroup(UpdateGroupType request) throws EucalyptusCloudException {
  UpdateGroupResponseType reply=request.getReply();
  reply.getResponseMetadata().setRequestId(reply.getCorrelationId());
  Context ctx=Contexts.lookup();
  User requestUser=ctx.getUser();
  Account account=getRealAccount(ctx,request.getDelegateAccount());
  Group groupFound=lookupGroupByName(account,request.getGroupName());
  try {
    Privileged.modifyGroup(requestUser,account,groupFound,request.getNewGroupName(),request.getNewPath());
  }
 catch (  Exception e) {
    LOG.error(e,e);
    if (e instanceof AuthException) {
      if (AuthException.ACCESS_DENIED.equals(e.getMessage())) {
        throw new EuareException(HttpResponseStatus.FORBIDDEN,EuareException.NOT_AUTHORIZED,"String_Node_Str" + groupFound.getName() + "String_Node_Str"+ requestUser.getName());
      }
 else       if (AuthException.GROUP_ALREADY_EXISTS.equals(e.getMessage())) {
        throw new EuareException(HttpResponseStatus.CONFLICT,EuareException.ENTITY_ALREADY_EXISTS,"String_Node_Str" + request.getNewGroupName() + "String_Node_Str");
      }
 else       if (AuthException.INVALID_NAME.equals(e.getMessage())) {
        throw new EuareException(HttpResponseStatus.BAD_REQUEST,EuareException.INVALID_NAME,"String_Node_Str" + request.getNewGroupName());
      }
 else       if (AuthException.INVALID_PATH.equals(e.getMessage())) {
        throw new EuareException(HttpResponseStatus.BAD_REQUEST,EuareException.INVALID_PATH,"String_Node_Str" + request.getNewPath());
      }
    }
    throw new EucalyptusCloudException(e);
  }
  return reply;
}