public static void validatePath(PartialPath path) throws AuthException {
    if (!path.getFirstNode().equals(ROOT_PREFIX)) {
      throw new AuthException(
          TSStatusCode.ILLEGAL_PARAMETER,
          String.format(
              "Illegal seriesPath %s, seriesPath should start with \"%s\"", path, ROOT_PREFIX));
    }
  }
Validate path

@param path series path
@throws AuthException contains message why path is invalid
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java