OpenSearch/core
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 Upgrade to Lucene 6.4.1. (#22978) 2017-02-06 09:28:43 +01:00
src Add FileSystemUtil method to read 'file:/' URLs (#23020) 2017-02-07 10:24:22 -06:00
build.gradle Settings: Add infrastructure for elasticsearch keystore 2016-12-22 16:28:34 -08:00