OpenSearch/plugins/discovery-gce
Tim Brooks 27b7d9bd8d Add FileSystemUtil method to read 'file:/' URLs (#23020)
As part of #22116 we are going to forbid usage of api
java.net.URL#openStream(). However in a number of places across the
we use this method to read files from the local filesystem. This commit
introduces a helper method openFileURLStream(URL url) to read files
from URLs. It does specific validation to only ensure that file:/
urls are read.

Additionlly, this commit removes unneeded method
FileSystemUtil.newBufferedReader(URL, Charset). This method used the
openStream () method which will soon be forbidden. Instead we use the
Files.newBufferedReader(Path, Charset).
2017-02-07 10:24:22 -06:00
..
licenses Build: upgrade httpcore version to 4.4.5 2016-07-19 15:11:40 +02:00
src Add FileSystemUtil method to read 'file:/' URLs (#23020) 2017-02-07 10:24:22 -06:00
build.gradle Use pre-JDK9 style FilePermissions on JDK9 2016-11-14 14:13:23 +01:00