Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 of 3 tasks
caishunfeng opened this issue May 16, 2024 · 1 comment · Fixed by #16102
Closed
2 of 3 tasks

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

caishunfeng opened this issue May 16, 2024 · 1 comment · Fixed by #16102
Labels
bug Something isn't working priority:high

Comments

@caishunfeng
Copy link
Contributor

Search before asking

  • 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 caishunfeng added bug Something isn't working Waiting for reply Waiting for reply labels May 16, 2024
@caishunfeng
Copy link
Contributor Author

Assertions.assertFalse(CheckUtils.checkFilePath("file://xxx/ss"));

It seems file:// is illegal path but the url prefix is file:/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants