Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Pentaho jackrabbit authentication

  1. #1
    Join Date
    Dec 2016
    Posts
    10

    Default Pentaho jackrabbit authentication

    Hello,

    I'm using pentaho 7.

    I have disabled the default jackrabit authentication provider and configured custom authentication provider basic on some HTTP header.
    I'm able to communicate with pentaho server but when it cames to communicate with jackrabbit repository I'm getting the following exception:

    Code:
    2017-09-07 13:41:11,125 ERROR [org.pentaho.platform.repository2.unified.jcr.sejcr.GuavaCachePoolPentahoJcrSessionFactory] Error obtaining session from cache. Creating one directly instead: javax.jcr.SimpleCredentials@28e70b44java.util.concurrent.ExecutionException: javax.jcr.LoginException: Workspace access denied
    	at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
    	at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
    	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
    	at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:135)
    	at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2346)
    	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2318)
    	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
    	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
    	at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
    	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
    	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
    	at org.pentaho.platform.repository2.unified.jcr.sejcr.GuavaCachePoolPentahoJcrSessionFactory.getSession(GuavaCachePoolPentahoJcrSessionFactory.java:117)
    	at org.pentaho.platform.repository2.unified.jcr.sejcr.CredentialsStrategySessionFactory.getSession(CredentialsStrategySessionFactory.java:362)
    	at org.springframework.extensions.jcr.SessionFactoryUtils.doGetSession(SessionFactoryUtils.java:87)
    	at org.springframework.extensions.jcr.SessionFactoryUtils.getSession(SessionFactoryUtils.java:119)
    	at org.pentaho.platform.repository2.unified.jcr.sejcr.PentahoJcrTemplate.getSession(PentahoJcrTemplate.java:85)
    	at org.pentaho.platform.repository2.unified.jcr.sejcr.PentahoJcrTemplate.execute(PentahoJcrTemplate.java:58)
    	at org.springframework.extensions.jcr.JcrTemplate.execute(JcrTemplate.java:115)
    	at org.pentaho.platform.security.policy.rolebased.JcrRoleAuthorizationPolicyRoleBindingDao.getBoundLogicalRoleNames(JcrRoleAuthorizationPolicyRoleBindingDao.java:151)
    	at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
    	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
    	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:280)
    	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
    	at com.sun.proxy.$Proxy108.getBoundLogicalRoleNames(Unknown Source)
    	at org.pentaho.platform.security.policy.rolebased.RoleAuthorizationPolicy.isAllowed(RoleAuthorizationPolicy.java:82)
    	at org.pentaho.platform.security.policy.rolebased.springsecurity.AuthorizationPolicyVoter.vote(AuthorizationPolicyVoter.java:91)
    	at org.springframework.security.access.vote.UnanimousBased.decide(UnanimousBased.java:76)
    	at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:233)
    	at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:65)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
    	at com.sun.proxy.$Proxy110.getUsers(Unknown Source)
    	at org.pentaho.platform.web.http.api.resources.services.UserRoleDaoService.getUsers(UserRoleDaoService.java:61)
    	at org.pentaho.platform.web.http.api.resources.UserRoleDaoResource.getUsers(UserRoleDaoResource.java:263)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
    	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
    	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
    	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
    	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
    	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
    	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
    	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
    	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
    	at com.sun.jersey.server.impl.application.WebApplicationImpl.handl

    I didn't get why I'm unable to access the repository and I'm asking how is jackrabbit authentication managed by pentaho?
    What is the relation between authenticating to the PUC and authenticating to the jackrabbit reposiory?

    Thanks

  2. #2
    Join Date
    Mar 2013
    Posts
    11

    Default

    Hi,
    If you can provide your applicationContext-spring-security.xml file content maybe i can help you! I have done something similar with you!

  3. #3
    Join Date
    Aug 2006
    Posts
    287

    Default

    Can you provide the applicationContext-spring-security.xml?
    Is there a reason you want to disable jackrabbit authentication?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.