dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Bug] [Resource] unable to access file in resource center

Open caishunfeng opened this issue 1 year ago • 1 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

What happened

image

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

caishunfeng avatar May 16 '24 02:05 caishunfeng

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:/.

caishunfeng avatar May 16 '24 03:05 caishunfeng