caishunfeng opened a new pull request, #15757:
URL: https://github.com/apache/dolphinscheduler/pull/15757
## Purpose of the pull request
add resource full name check when do resource operation.
## Brief change log
`dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java`
```
private void checkFullName(String baseDir, String fullName) {
if (StringUtils.isNotBlank(fullName) &&
!StringUtils.startsWith(fullName, baseDir)) {
throw new ServiceException("Resource file: " + fullName + " is
illegal");
}
}
```
## Verify this pull request
- *Manually verified the change by testing locally.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]