RFR: 8235459: HttpRequest.BodyPublishers#ofFile(Path) assumes the default file system
Julia Boes
julia.boes at oracle.com
Tue Mar 24 16:33:49 UTC 2020
Hi Daniel,
> * @run testng/othervm/java.security.policy=FilePublisherPermsTest1.policy
>
> Does this actually work as expected? I thought the syntax was:
>
> @run testng/othervm/policy=<file>
I couldn't get the test to run with the latter but noticed that most
tests that are run with testng use the 'java.security.policy' option. It
works as expected.
> And FWIW there some subtlety with
> othervm/policy=<file>
> versus
> othervm/policy==<file>
>
> and I never remember which one should be used.
>
> Here we do want the default.policy files to be extended, and not
> replaced. So you may have to go with == (maybe)
That's right, any I actually wasn't aware of the '==' option. According
to [1], ‘==’ sets a *sole* policy file, whereas ‘=’ sets an *additional*
file. So we want to go with ‘=’.
Regards,
Julia
[1]
https://docs.oracle.com/javase/7/docs/technotes/guides/security/PolicyFiles.html
(section: Specifying an Additional Policy File at Runtime)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20200324/47415636/attachment.htm>
More information about the net-dev
mailing list