{"record":{"id":"9774037b2a5cbfc7","repo":"apache/dolphinscheduler","slug":"request-params-not-valid-error-977403","errorCode":"REQUEST_PARAMS_NOT_VALID_ERROR","errorMessage":"Parameter startDateStr is invalid.","messagePattern":"Parameter startDateStr is invalid\\.","errorType":"error_code","errorClass":"ServiceException","httpStatus":null,"severity":"error","filePath":"dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/BaseServiceImpl.java","lineNumber":123,"sourceCode":"    @Override\n    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    }","sourceCodeStart":105,"sourceCodeEnd":141,"githubUrl":"https://github.com/apache/dolphinscheduler/blob/02eac45a1b6676e639fcbfb4be2243de5771b05d/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/BaseServiceImpl.java#L105-L141","documentation":"A date-parsing guard in checkAndParseDateParameters: the startDate string parameter failed to parse as a date (empty, wrong format, or not matching the expected yyyy-MM-dd HH:mm:ss pattern), so the API request cannot be filtered by time range. The offending input is the startDate request parameter; parsing is done with strict date format validation before any query runs.","triggerScenarios":"Thrown at dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/BaseServiceImpl.java:123 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Send startDate in the expected date format (yyyy-MM-dd HH:mm:ss)","Omit the date filter parameters entirely if no time filtering is wanted","Validate date inputs client-side before calling the API"],"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-14T00:17:10.932Z"}