dolphinscheduler
dolphinscheduler copied to clipboard
[Bug] [Resource] unable to access file in resource center
Search before asking
- [X] I had searched in the issues and found no similar issues.
What happened
The url is: http://127.0.0.1:5173/resource/file/subdirectory?prefix=file:/dolphinscheduler/default/resources/test/&tenantCode=default
What you expected to happen
Can access the legal file normally.
How to reproduce
- startup ds at local
- create resource dir / file
- then try to access it.
Anything else
No response
Version
dev
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
https://github.com/apache/dolphinscheduler/blob/68a190674fe7f6d0e957fca1efa085b067224cb7/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/utils/CheckUtilsTest.java#L109
It seems file:// is illegal path but the url prefix is file:/.