When using associations to launch Java Web Start, javaws is run with the args:
"javaws -open <filename> <jnlp-filename>" or "javaws -print <filename> <jnlp-filename>"
to prevent a security dialog from popuping up, the filename passed in is granted read and write permission (in the first case) and read permission (in the second case"
But when using the SingleInstanceService, the native code is called with
"javaws -open <filename> <jnlp-filename>" but the java code isn't called that way.
As a result the code in Main that makes sure sandbox permissions include read (or read and write) permission to the given file is not ever read.
We need to add code in SingleInstanceServiceimpl where the newActivation is called to insure that the required file permissions are granted.
"javaws -open <filename> <jnlp-filename>" or "javaws -print <filename> <jnlp-filename>"
to prevent a security dialog from popuping up, the filename passed in is granted read and write permission (in the first case) and read permission (in the second case"
But when using the SingleInstanceService, the native code is called with
"javaws -open <filename> <jnlp-filename>" but the java code isn't called that way.
As a result the code in Main that makes sure sandbox permissions include read (or read and write) permission to the given file is not ever read.
We need to add code in SingleInstanceServiceimpl where the newActivation is called to insure that the required file permissions are granted.