apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.67k stars 855 forks source link

cdnjs: Support handling of resources with embedded slashes afte e6b5e0d #7796

Closed matthiasblaesing closed 1 month ago

matthiasblaesing commented 1 month ago

With commit https://github.com/apache/netbeans/commit/e6b5e0d57f0e9deb2ab5f2e36caec3c892fd45ed java.io.File.createTempFile was replaced by java.nio.file.Files.createTempFile. The latter has better security properties, but fails to handle prefixes/suffixes, that contain slashes and instead raises an exception.

The temporary files don't need files, that follow the names of their base resources, so with this commit the tempfiles are created with fixed prefixes and suffixes.

Closes: #7783

matthiasblaesing commented 1 month ago

@mbien thanks for checking