Uploaded image for project: 'Pentaho BA Platform'
  1. Pentaho BA Platform
  2. BISERVER-12807

java.lang.RuntimeException: Failed to create folder /etc/olap-servers in the repository.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Unknown
    • Resolution: Not a Bug
    • Affects Version/s: 5.4.0 GA
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Story Points:
      0
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Steps to Reproduce:
      Hide

      Trying to configure anonymous access in the BI Server I got the error. Follow the steps to reproduce:

      • Unzip Pentaho 5.4 CE
      • Copy test.zip file to pentaho-solutions\system\default-content folder
      • Open the pentaho-solutions/system/applicationContext-spring-security.xml file and for the bean "filterInvocationInterceptorForWS" add (as the first rules):
        \A/plugin/pentaho-cdf-dd/api/resources.*\Z=Anonymous,Authenticated
        \A/api/repos/pentaho-cdf/css.*\Z=Anonymous,Authenticated
        \A/api/repos/pentaho-cdf/js.*\Z=Anonymous,Authenticated
        \A/api/repos/pentaho-cdf/js-legacy.*\Z=Anonymous,Authenticated
        \A/api/repos/pentaho-cdf/resources.*\Z=Anonymous,Authenticated
        \A/api/repos/pentaho-cdf-dd/js.*\Z=Anonymous,Authenticated
        \A/api/repos/pentaho-cdf-dd/css.*\Z=Anonymous,Authenticated
        \A/plugin/cda/api/doquery.*\Z=Anonymous,Authenticated
        \A/api/repos/:public:.*\Z=Anonymous,Authenticated
        \A/api/repos/:test:.*\Z=Anonymous,Authenticated
        
      • Open file pentaho-solutions/system/pentahoObjects.spring.xml. Find all references to the bean id="Mondrian-UserRoleMapper" and make sure that the only one that is uncommented (active) is this one:
      <bean id="Mondrian-UserRoleMapper" 
      name="Mondrian-SampleUserSession-UserRoleMapper" 
      class="org.pentaho.platform.plugin.action.mondrian.mapper.
      MondrianUserSessionUserRoleListMapper" 
      scope="singleton">
      <property name="sessionProperty" value="MondrianUserRoles" />
      </bean>
      

      If you have made any changes to pentahoObjects.spring.xml, save and close the file.

      You will get the error:

       
      16:14:13,284 ERROR [AbstractMondrianConnection] Error assembling role for mondrian connection
      java.lang.RuntimeException: Failed to create folder /etc/olap-servers in the repository.
      at org.pentaho.platform.plugin.services.importexport.legacy.MondrianCatalogRepositoryHelper.initOlapServersFolder(MondrianCatalogRepositoryHelper.java:156)
      at org.pentaho.platform.plugin.services.importexport.legacy.MondrianCatalogRepositoryHelper.<init>(MondrianCatalogRepositoryHelper.java:75)
      at org.pentaho.platform.plugin.action.mondrian.mapper.MondrianAbstractPlatformUserRoleMapper.getMondrianRolesFromCatalog(MondrianAbstractPlatformUserRoleMapper.java:105)
      at org.pentaho.platform.plugin.action.mondrian.mapper.MondrianAbstractPlatformUserRoleMapper.mapConnectionRoles(MondrianAbstractPlatformUserRoleMapper.java:182)
      at pt.webdetails.cda.connections.mondrian.MondrianRoleMapper.getRoles(MondrianRoleMapper.java:48)
      at pt.webdetails.cda.connections.mondrian.AbstractMondrianConnection.assembleRole(AbstractMondrianConnection.java:69)
      at pt.webdetails.cda.connections.mondrian.JndiConnection.evaluate(JndiConnection.java:142)
      at pt.webdetails.cda.settings.CdaSettings.getConnection(CdaSettings.java:330)
      (...)
      Caused by: org.pentaho.platform.api.repository2.unified.UnifiedRepositoryException: exception while creating folder with name "olap-servers"
      
      Show
      Trying to configure anonymous access in the BI Server I got the error. Follow the steps to reproduce: Unzip Pentaho 5.4 CE Copy test.zip file to pentaho-solutions\system\default-content folder Open the pentaho-solutions/system/applicationContext-spring-security.xml file and for the bean "filterInvocationInterceptorForWS" add (as the first rules): \A/plugin/pentaho-cdf-dd/api/resources.*\Z=Anonymous,Authenticated \A/api/repos/pentaho-cdf/css.*\Z=Anonymous,Authenticated \A/api/repos/pentaho-cdf/js.*\Z=Anonymous,Authenticated \A/api/repos/pentaho-cdf/js-legacy.*\Z=Anonymous,Authenticated \A/api/repos/pentaho-cdf/resources.*\Z=Anonymous,Authenticated \A/api/repos/pentaho-cdf-dd/js.*\Z=Anonymous,Authenticated \A/api/repos/pentaho-cdf-dd/css.*\Z=Anonymous,Authenticated \A/plugin/cda/api/doquery.*\Z=Anonymous,Authenticated \A/api/repos/:public:.*\Z=Anonymous,Authenticated \A/api/repos/:test:.*\Z=Anonymous,Authenticated Open file pentaho-solutions/system/pentahoObjects.spring.xml . Find all references to the bean id="Mondrian-UserRoleMapper" and make sure that the only one that is uncommented (active) is this one: <bean id= "Mondrian-UserRoleMapper" name= "Mondrian-SampleUserSession-UserRoleMapper" class="org.pentaho.platform.plugin.action.mondrian.mapper. MondrianUserSessionUserRoleListMapper" scope= "singleton" > <property name= "sessionProperty" value= "MondrianUserRoles" /> </bean> If you have made any changes to pentahoObjects.spring.xml, save and close the file. Start BI Server Add a new user called: anonymousUser Set 'Read Content' permission to Anonymous System Role For the new solution 'test' in the Browser File. Go to Properties -> Share and add 'Anonymous' role with Read permission. Log out Try to access: http://localhost:8080/pentaho/plugin/cda/api/doQuery?path=/test/test.cda&dataAccessId=DS (as anonymous) You will get the error: 16:14:13,284 ERROR [AbstractMondrianConnection] Error assembling role for mondrian connection java.lang.RuntimeException: Failed to create folder /etc/olap-servers in the repository. at org.pentaho.platform.plugin.services.importexport.legacy.MondrianCatalogRepositoryHelper.initOlapServersFolder(MondrianCatalogRepositoryHelper.java:156) at org.pentaho.platform.plugin.services.importexport.legacy.MondrianCatalogRepositoryHelper.<init>(MondrianCatalogRepositoryHelper.java:75) at org.pentaho.platform.plugin.action.mondrian.mapper.MondrianAbstractPlatformUserRoleMapper.getMondrianRolesFromCatalog(MondrianAbstractPlatformUserRoleMapper.java:105) at org.pentaho.platform.plugin.action.mondrian.mapper.MondrianAbstractPlatformUserRoleMapper.mapConnectionRoles(MondrianAbstractPlatformUserRoleMapper.java:182) at pt.webdetails.cda.connections.mondrian.MondrianRoleMapper.getRoles(MondrianRoleMapper.java:48) at pt.webdetails.cda.connections.mondrian.AbstractMondrianConnection.assembleRole(AbstractMondrianConnection.java:69) at pt.webdetails.cda.connections.mondrian.JndiConnection.evaluate(JndiConnection.java:142) at pt.webdetails.cda.settings.CdaSettings.getConnection(CdaSettings.java:330) (...) Caused by: org.pentaho.platform.api.repository2.unified.UnifiedRepositoryException: exception while creating folder with name "olap-servers"

      PractiTest Integration




        Attachments

          Issue Links

            Activity

              People

              Assignee:
              elopes Eduardo Lopes (Inactive)
              Reporter:
              kleysonr Kleyson Rios
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: