-
Notifications
You must be signed in to change notification settings - Fork 5.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
8285445: cannot open file "NUL:" #8373
Conversation
👋 Welcome back bpb! A progress list of the required criteria for merging this PR into |
@bplb This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Mailing list message from Bernd Eckenfels on core-libs-dev: Is that really a needed fix? enabling ADS and less strict parsing might introduce vulnerability but on the other hand NUL: should be allowed for it is a drive style not a ADS. I would also think the number of users who want use NUL: is smaller than the number of users who benefit from ADS being forbidden. Especially since \\.\NUL or NUL should already work. Gruss Change the default value of the `jdk.io.File.enableADS` property to `true`. ------------- Commit messages: Changes: https://git.openjdk.java.net/jdk/pull/8373/files PR: https://git.openjdk.java.net/jdk/pull/8373 |
FWIW we fixed the same problem by simply using |
Hopefully newer code can use OutputStream.nullOutputStream(). It's portable and avoids depending on these legacy Windows specific reserved names. |
This topic will be examined further under JDK-8285511. |
/integrate |
Going to push as commit 03cbb48.
Your commit was automatically rebased without conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/backport jdk18u
One possible advantage of having a "real" OS-supported |
Change the default value of the
jdk.io.File.enableADS
property totrue
.Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/8373/head:pull/8373
$ git checkout pull/8373
Update a local copy of the PR:
$ git checkout pull/8373
$ git pull https://git.openjdk.java.net/jdk pull/8373/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 8373
View PR using the GUI difftool:
$ git pr show -t 8373
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/8373.diff