RFR: 8235459: HttpRequest.BodyPublishers#ofFile(Path) assumes the default file system
Chris Hegarty
chris.hegarty at oracle.com
Tue Mar 10 13:24:40 UTC 2020
Julia,
> On 5 Mar 2020, at 13:50, Julia Boes <julia.boes at oracle.com> wrote:
>
> Hi,
>
> Please see this fix that adds support for non-default file systems to the HttpClient. More specifically, the change is in RequestPublishers.FilePublisher where an UnsupportedOperationException is thrown if a java.io.File cannot be obtained. The exception is now caught and a function is used to obtain an InputStream with a privileged scope based on the captured AccessControlContext.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8235459
>
> CSR: https://bugs.openjdk.java.net/browse/JDK-8240526
I added myself as reviewer.
> Webrev: http://cr.openjdk.java.net/~jboes/webrevs/8235459/webrev.01/
The change looks good, and the tests appear comprehensive.
-Chris.
More information about the net-dev
mailing list