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

    • Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P4 P4
    • 19
    • 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, 19
    • core-libs
    • windows

        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.File.enableADS` should be set to `false` (case ignored). Stricter path checking however prevents the use of special devices such as `NUL:`

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

                Created:
                Updated:
                Resolved: