Cannot override java.security.policy system property - default gs.policy file which is inside instalation is used

Description

java.security.policy system property is ignored and the system always uses the gs.policy file which is inside BUILD/lib/platform/boot/gs-boot.jar/com/gigaspaces/start.
The documentation says that there is an option to use this system property in order to point to another policy file (http://docs.gigaspaces.com/xap97/java-security-policy-file.html) but it ignores it.
The problem is probably in com.gigaspaces.start.SystemBoot (Line 146 - ensureSecurityManager method) - always takes the file which is inside the jar.

Workaround

None

Acceptance Test

done

Activity

Show:
Boris Genzel
April 24, 2014, 6:51 AM

When the hard coded policy file is removed from the build (gs.policy inside the boot.jar file) the –Djava.security.policy system property worked.
The gs.sh should set the system property (–Djava.security.policy) to the policy file (at least by default should be pointed to the BUILD/policy/policy.all file).
P.S when trying to execute loadGSCWithSystemProperty from SGTest it fails to get the system property and doesn't create a GSC while loadGSC does creates a GSC successfully.

Boris Genzel
April 24, 2014, 6:53 AM

Attached a correct policy file.

Ester Atzmon
September 8, 2014, 10:29 AM

work around: remove policy file from installation(gs.policy inside the boot.jar ).

Assignee

Unassigned

Reporter

Boris Genzel

Labels

None

Platform

Java

SalesForce Case ID

8875

Commitment Version/s

None

Trello Card

None

Priority

Medium
Configure