-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Fix createFile with permission will not work #15556
Fix createFile with permission will not work #15556
Conversation
c737055
to
f6186a0
Compare
f6186a0
to
b4383e8
Compare
|
||
public static void createDirectoryWith755(@NonNull Path path) throws IOException { | ||
if (OSUtils.isWindows()) { | ||
Files.createDirectories(path); |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/FileUtils.java
Fixed
Show fixed
Hide fixed
b4383e8
to
252e472
Compare
252e472
to
4d3e6e4
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #15556 +/- ##
=========================================
Coverage 38.40% 38.40%
Complexity 4750 4750
=========================================
Files 1305 1305
Lines 44841 44815 -26
Branches 4800 4800
=========================================
- Hits 17221 17213 -8
+ Misses 25750 25731 -19
- Partials 1870 1871 +1 ☔ View full report in Codecov by Sentry. |
} catch (Exception ex) { | ||
throw new FileOperateException("Set directory: " + filePath + " to owner: " + fileOwner + " failed"); | ||
|
||
Files.createDirectory(path); |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
|
but we have a secutity scan in this pr |
Is it better to add some docs? |
(cherry picked from commit 4d15932)
Purpose of the pull request
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md