RFR: 8235459: HttpRequest.BodyPublishers#ofFile(Path) assumes the default file system
Daniel Fuchs
daniel.fuchs at oracle.com
Tue Mar 24 17:04:35 UTC 2020
OK, thanks for double checking Julia.
Looks good to me then!
best regards,
-- daniel
On 24/03/2020 16:33, Julia Boes wrote:
> 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)
>
More information about the net-dev
mailing list