Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8285445 cannot open file "NUL:"
  3. JDK-8285660

Release Note: New system property to disable Windows Alternate Data Stream support in java.io.File

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 7u343, 8u333, 11.0.15.1-oracle, 11.0.15.1.1-oracle, 17.0.3.1-oracle, 17.0.3.1.1-oracle, 18.0.1.1
    • Fix Version/s: 19
    • Component/s: core-libs
    • Subcomponent:
    • OS:
      windows

      Backports

        Description

        The Windows implementation of `java.io.File` allows access to NTFS Alternate Data Streams (ADS) by default. Such streams have a structure like “filename:streamname”. A system property `jdk.io.File.enableADS` has been added to control this behavior. To disable ADS support in `java.io.File`, the system property `[jdk.io](http://jdk.io).File.enableADS` should be set to `false` (case ignored). Stricter path checking however prevents the use of special devices such as `NUL:`

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                bpb Brian Burkhalter
                Reporter:
                bpb Brian Burkhalter
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: