You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Rupert Westenthaler (JIRA)" <ji...@apache.org> on 2012/12/25 14:14:12 UTC

[jira] [Resolved] (STANBOL-864) Adapt Stanbol DataFileProvider to propertly work with enabled Security

     [ https://issues.apache.org/jira/browse/STANBOL-864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rupert Westenthaler resolved STANBOL-864.
-----------------------------------------

    Resolution: Fixed

fixed with http://svn.apache.org/viewvc?rev=1425737&view=rev
                
> Adapt Stanbol DataFileProvider to propertly work with enabled Security
> ----------------------------------------------------------------------
>
>                 Key: STANBOL-864
>                 URL: https://issues.apache.org/jira/browse/STANBOL-864
>             Project: Stanbol
>          Issue Type: Bug
>            Reporter: Rupert Westenthaler
>            Assignee: Rupert Westenthaler
>
> Using the MainDataFile provider with enabled SecurityManager cuases exceptions because the anonymouse user does not have read access to the stanbol datafiles directory.
> java.security.AccessControlException: access denied (java.io.FilePermission  {file} read)
> at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
> at java.security.AccessController.checkPermission(AccessController.java:549)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
> at java.io.File.exists(File.java:731)
> at org.apache.stanbol.commons.stanboltools.datafileprovider.impl.MainDataFileProvider.getDataFile(MainDataFileProvider.java:274)
> at org.apache.stanbol.commons.stanboltools.datafileprovider.impl.MainDataFileProvider.getInputStream(MainDataFileProvider.java:156)
> at org.apache.stanbol.commons.opennlp.OpenNLP.lookupModelStream(OpenNLP.java:541)
> at org.apache.stanbol.commons.opennlp.OpenNLP.initModel(OpenNLP.java:478)
> [..]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira