lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4205) Constants.java generates AccessControl Exception in unsigned applet
Date Mon, 09 Jul 2012 21:02:34 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409844#comment-13409844
] 

Dawid Weiss commented on LUCENE-4205:
-------------------------------------

This is ram usage estimator. I guess the question is do we support running with security manager
on? 
                
> Constants.java generates AccessControl Exception in unsigned applet 
> --------------------------------------------------------------------
>
>                 Key: LUCENE-4205
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4205
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: core/index
>    Affects Versions: 3.5, 3.6, 4.0
>         Environment: unsigned applet
>            Reporter: Stuart Rose
>            Priority: Minor
>              Labels: applet, unsigned
>
> Using Lucene (i.e. writing a Document to a RAMDirectory) in an unsigned applet causes
an AccessControlException because Constants.java is attempting to read a System property that
is not allowed. 
> Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission"
"sun.arch.data.model" "read")
> 	at java.security.AccessControlContext.checkPermission(Unknown Source)
> 	at java.security.AccessController.checkPermission(Unknown Source)
> 	at java.lang.SecurityManager.checkPermission(Unknown Source)
> 	at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
> 	at java.lang.System.getProperty(Unknown Source)
> 	at org.apache.lucene.util.Constants.<clinit>(Constants.java:84)
> on line 84:   final String x = System.getProperty("sun.arch.data.model");
> We have tested setting the String x to the property value for "java.vm.name" and find
that works for us...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message