aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-1782) With java 2 security enabled get java.security.AccessControlException in org.apache.aries.jndi.JREInitialContextFactoryBuilder
Date Thu, 15 Feb 2018 21:52:00 GMT

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

ASF subversion and git services commented on ARIES-1782:
--------------------------------------------------------

Commit 1824375 from [~sbratton] in branch 'aries/trunk'
[ https://svn.apache.org/r1824375 ]

add doPrivileged wrapper in JREInitialContextFactoryBuilder. Fixes ARIES-1782.

> With java 2 security enabled get java.security.AccessControlException in org.apache.aries.jndi.JREInitialContextFactoryBuilder
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-1782
>                 URL: https://issues.apache.org/jira/browse/ARIES-1782
>             Project: Aries
>          Issue Type: Bug
>          Components: JNDI
>    Affects Versions: 1.0
>         Environment: Java 2 security enabled.
>            Reporter: Samuel Bratton
>            Assignee: Samuel Bratton
>            Priority: Major
>             Fix For: 1.0
>
>
> With java 2 security enabled get java.security.AccessControlException
>  
> Stack: java.security.AccessControlException: Access denied ("java.lang.RuntimePermission"
"getClassLoader")
> java.security.AccessController.throwACE(AccessController.java:157) 
> java.security.AccessController.checkPermissionHelper(AccessController.java:217) 
> java.security.AccessController.checkPermission(AccessController.java:349) 
> java.lang.SecurityManager.checkPermission(SecurityManager.java:562) 
> com.ibm.ws.kernel.launch.internal.MissingDoPrivDetectionSecurityManager.checkPermission(MissingDoPrivDetectionSecurityManager.java:45)

> java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:737) 
> org.apache.aries.jndi.JREInitialContextFactoryBuilder.createInitialContextFactory(JREInitialContextFactoryBuilder.java:36)

> org.apache.aries.jndi.ContextHelper.getInitialContextUsingBuilder(ContextHelper.java:233)
org.apache.aries.jndi.ContextHelper.getContextProvider(ContextHelper.java:208) 
> org.apache.aries.jndi.ContextHelper.getInitialContext(ContextHelper.java:141) 
> org.apache.aries.jndi.OSGiInitialContextFactoryBuilder.getInitialContext(OSGiInitialContextFactoryBuilder.java:51)

> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:695) 
> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:324) 
> javax.naming.InitialContext.init(InitialContext.java:255) 
> javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:165)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message