Note that there are some explanatory texts on larger screens.

plurals
  1. POSigned Java applet doesnt get permissions in Safari
    primarykey
    data
    text
    <p>I've got a signed java applet (using a self-signed-certificate) which has to access the user's file system. I have to do it, so please no replies ala "you shouldn't do it" :)</p> <p>The thing is, when I execute the Applet from Firefox 3.0 / Mac, everything works as desired, I get all access just as it should.</p> <p>When I use Safar 4 / Mac, I don't get access. The line I especially have problems with is System.getProperty() (although when I stub that out, the FS access doesn't work either)</p> <pre><code>String home = System.getProperty("user.home"); </code></pre> <p>The Exception I get is the following:</p> <pre><code>java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285) at java.lang.System.getProperty(System.java:628) at de.samedi.searcher.Searcher.&lt;init&gt;(Searcher.java:49) at de.samedi.searcher.Applet.getSearcher(Applet.java:193) at de.samedi.searcher.Applet.getSearcher(Applet.java:187) at de.samedi.searcher.Applet.addPatient(Applet.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at sun.plugin.javascript.invoke.JSInvoke.invoke(JSInvoke.java:19) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at sun.plugin.javascript.JSClassLoader.invoke(JSClassLoader.java:44) at sun.plugin.liveconnect.PrivilegedCallMethodAction.run(SecureInvocation.java:658) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.liveconnect.SecureInvocation$2.run(SecureInvocation.java:214) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.liveconnect.SecureInvocation.CallMethod(SecureInvocation.java:192) at sun.plugin.liveconnect.SecureInvocation.access$300(SecureInvocation.java:52) at sun.plugin.liveconnect.SecureInvocation$CallMethodThread.run(SecureInvocation.java:123) </code></pre> <p>As I said, this works perfectly on Firefox. Gotta check Windows Browser today...</p> <p>Any Ideas?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload