Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
I think file URLs might work but http/https URLs, much more common, don't. I'm not yet sure if this can be fixed without changing the API.
@Test
public void testReadFromURL() throws URISyntaxException, IOException {
final URIOrigin origin = new URIOrigin(new URI("https://www.yahoo.com"));
try (final InputStream in = origin.getInputStream())
}
java.nio.file.FileSystemNotFoundException: Provider "https" not installed
at java.nio.file.Paths.get(Paths.java:147)
at org.apache.commons.io.build.AbstractOrigin$URIOrigin.getPath(AbstractOrigin.java:402)
at org.apache.commons.io.build.AbstractOrigin.getInputStream(AbstractOrigin.java:540)
at org.apache.commons.io.build.URIOriginTest.testReadFromURL(URIOriginTest.java:47)
at java.lang.reflect.Method.invoke(Method.java:498)
at java.util.ArrayList.forEach(ArrayList.java:1257)
at java.util.ArrayList.forEach(ArrayList.java:1257)
Attachments
Issue Links
- links to