Program: 14530
Project: 14530
Buggy source:
public UpdateUserResponseType updateUser(UpdateUserType request) throws EucalyptusCloudException {
  UpdateUserResponseType reply=request.getReply();
  reply.getResponseMetadata().setRequestId(reply.getCorrelationId());
  Context ctx=Contexts.lookup();
  User requestUser=ctx.getUser();
  Account account=getRealAccount(ctx,request.getDelegateAccount());
  User userFound=lookupUserByName(account,request.getUserName());
  try {
    String newPath=request.getNewPath() != null ? sanitizePath(request.getNewPath()) : null;
    Boolean enabled=request.getEnabled() != null ? "String_Node_Str".equalsIgnoreCase(request.getEnabled()) : null;
    Long passwordExpiration=request.getPasswordExpiration() != null ? Iso8601DateParser.parse(request.getPasswordExpiration()).getTime() : null;
    Privileged.modifyUser(requestUser,account,userFound,request.getNewUserName(),newPath,enabled,passwordExpiration,null);
    if (request.getRegStatus() != null) {
      userFound.setRegistrationStatus(parseRegStatIgnoreCase(request.getRegStatus()));
    }
  }
 catch (  IllegalArgumentException e) {
    LOG.error(e,e);
    throw new EuareException(HttpResponseStatus.BAD_REQUEST,EuareException.INVALID_VALUE,"String_Node_Str" + request.getRegStatus());
  }
catch (  ParseException e) {
    LOG.error(e,e);
    throw new EuareException(HttpResponseStatus.BAD_REQUEST,EuareException.INVALID_VALUE,"String_Node_Str" + request.getPasswordExpiration());
  }
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" + requestUser.getName());
      }
 else       if (AuthException.USER_ALREADY_EXISTS.equals(e.getMessage())) {
        throw new EuareException(HttpResponseStatus.CONFLICT,EuareException.ENTITY_ALREADY_EXISTS,"String_Node_Str" + request.getNewUserName() + "String_Node_Str");
      }
 else       if (AuthException.INVALID_NAME.equals(e.getMessage())) {
        throw new EuareException(HttpResponseStatus.BAD_REQUEST,EuareException.INVALID_NAME,"String_Node_Str" + request.getNewUserName());
      }
 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 UpdateUserResponseType updateUser(UpdateUserType request) throws EucalyptusCloudException {
  UpdateUserResponseType reply=request.getReply();
  reply.getResponseMetadata().setRequestId(reply.getCorrelationId());
  Context ctx=Contexts.lookup();
  User requestUser=ctx.getUser();
  Account account=getRealAccount(ctx,request.getDelegateAccount());
  User userFound=lookupUserByName(account,request.getUserName());
  try {
    Boolean enabled=request.getEnabled() != null ? "String_Node_Str".equalsIgnoreCase(request.getEnabled()) : null;
    Long passwordExpiration=request.getPasswordExpiration() != null ? Iso8601DateParser.parse(request.getPasswordExpiration()).getTime() : null;
    Privileged.modifyUser(requestUser,account,userFound,request.getNewUserName(),request.getNewPath(),enabled,passwordExpiration,null);
    if (request.getRegStatus() != null) {
      userFound.setRegistrationStatus(parseRegStatIgnoreCase(request.getRegStatus()));
    }
  }
 catch (  IllegalArgumentException e) {
    LOG.error(e,e);
    throw new EuareException(HttpResponseStatus.BAD_REQUEST,EuareException.INVALID_VALUE,"String_Node_Str" + request.getRegStatus());
  }
catch (  ParseException e) {
    LOG.error(e,e);
    throw new EuareException(HttpResponseStatus.BAD_REQUEST,EuareException.INVALID_VALUE,"String_Node_Str" + request.getPasswordExpiration());
  }
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" + requestUser.getName());
      }
 else       if (AuthException.USER_ALREADY_EXISTS.equals(e.getMessage())) {
        throw new EuareException(HttpResponseStatus.CONFLICT,EuareException.ENTITY_ALREADY_EXISTS,"String_Node_Str" + request.getNewUserName() + "String_Node_Str");
      }
 else       if (AuthException.INVALID_NAME.equals(e.getMessage())) {
        throw new EuareException(HttpResponseStatus.BAD_REQUEST,EuareException.INVALID_NAME,"String_Node_Str" + request.getNewUserName());
      }
 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;
}