{"record":{"id":"aa4df7d6b7a3ae22","repo":"apache/dolphinscheduler","slug":"10001-aa4df7","errorCode":"10001","errorMessage":"request parameter {0} is not valid","messagePattern":"request parameter (.+?) is not valid","errorType":"error_code","errorClass":"ServiceException","httpStatus":null,"severity":"error","filePath":"dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/BaseServiceImpl.java","lineNumber":124,"sourceCode":"    public boolean canOperatorPermissions(User user, Object[] ids, AuthorizationType type, String permissionKey) {\n        boolean operationPermissionCheck =\n                resourcePermissionCheckService.operationPermissionCheck(type, user.getId(), permissionKey, log);\n        boolean resourcePermissionCheck = resourcePermissionCheckService.resourcePermissionCheck(type, ids,\n                user.getUserType().equals(UserType.ADMIN_USER) ? 0 : user.getId(), log);\n        return operationPermissionCheck && resourcePermissionCheck;\n    }\n\n    /**\n     * check and parse date parameters\n     */\n    @Override\n    public Date checkAndParseDateParameters(String startDateStr) throws ServiceException {\n        Date start = null;\n        if (!StringUtils.isEmpty(startDateStr)) {\n            start = DateUtils.stringToDate(startDateStr);\n            if (Objects.isNull(start)) {\n                log.warn(\"Parameter startDateStr is invalid.\");\n                throw new ServiceException(Status.REQUEST_PARAMS_NOT_VALID_ERROR, Constants.START_END_DATE);\n            }\n        }\n        return start;\n    }\n\n    @Override\n    public boolean checkDescriptionLength(String description) {\n        return description != null && description.codePointCount(0, description.length()) > 255;\n    }\n\n    protected Date transformDate(String dateStr) {\n        Date date = DateUtils.stringToDate(dateStr);\n        if (date == null) {\n            throw new IllegalArgumentException(\"dateStr: [\" + dateStr + \"] is invalid\");\n        }\n        return date;\n    }\n}","sourceCodeStart":106,"sourceCodeEnd":142,"githubUrl":"https://github.com/apache/dolphinscheduler/blob/02eac45a1b6676e639fcbfb4be2243de5771b05d/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/BaseServiceImpl.java#L106-L142","documentation":"Thrown by checkAndParseDateParameters, a generic validation helper in BaseServiceImpl, when a supplied date string cannot be parsed by DateUtils.stringToDate. The faulting input is the date parameter named by {0} (e.g., startDateStr or endDateStr) — it is empty, malformed, or in the wrong format.","triggerScenarios":"Thrown at dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/BaseServiceImpl.java:124 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Supply the date in the expected format (yyyy-MM-dd HH:mm:ss).","Ensure the parameter is not empty if it is required.","Remove stray whitespace or invalid characters from the date string."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"02eac45a1b6676e639fcbfb4be2243de5771b05d","analyzedAt":"2026-09-06T17:43:00.555Z","contentChangedAt":"2026-09-06T17:43:00.555Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}