private void checkParameter()

in backend/src/main/java/org/apache/iotdb/admin/controller/IotDBController.java [1169:1182]


  private void checkParameter(String groupName) throws BaseException {
    String checkName = StringUtils.removeStart(groupName, "root").toLowerCase();
    if (groupName.contains(".root.") || groupName.contains(".root")) {
      throw new BaseException(ErrorCode.NO_SUP_CONTAIN_ROOT, ErrorCode.NO_SUP_CONTAIN_ROOT_MSG);
    }
    if (checkName.contains(".as.")
        || checkName.contains(".null.")
        || checkName.contains(".like.")
        || checkName.matches("^[^ ]*\\.as$")
        || checkName.matches("^[^ ]*\\.null$")
        || checkName.matches("^[^ ]*\\.like$")) {
      throw new BaseException(ErrorCode.NO_SUP_CONTAIN_WORD, ErrorCode.NO_SUP_CONTAIN_WORD_MSG);
    }
  }