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

404 error in 5.0.x when running import utility from 4.8.x server using MS AD

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: 5.0.4 GA, 5.0.5 GA
    • Fix Version/s: 5.1.0 GA
    • Component/s: Configuration, Migrator
    • Labels:
      None
    • 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.

      Description

      To reproduce this issue you need the following:

      • Install 4.8.3
      • Configure 4.8.3 to authenticate against MS AD
      • Export contents of 4.8.3 using Migration Utility
      • Install 5.0.5
      • Import migrated contents from 4.8.3 Server to this new installation
      • Start BA Server
      • Notice the 404 error

      Checking the logs you can see the following stacktrace

      SEVERE: Exception sending context initialized event to listener instance of class org.pentaho.platform.web.http.context.SolutionContextListener
      java.lang.RuntimeException: org.springframework.security.userdetails.UsernameNotFoundException: User admin not found in directory.; nested exception is org.springframework.security.userdetails.UsernameNotFoundException: User admin not found in directory.
      at org.pentaho.platform.engine.core.system.PentahoSystem.globalStartup(PentahoSystem.java:830)
      at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:282)
      at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:182)
      at org.pentaho.platform.web.http.context.SolutionContextListener.contextInitialized(SolutionContextListener.java:136)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
      at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
      at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

      The main problem is the following file: pentaho-solutions/system/repository.spring.properties does not get updated to reflect the AdminUserName based on the contextSource.userDn entry that came from MS AD in the pentaho-solutions/system/applicationContext-spring-ldap.properties file
      From repository.spring.properties
      singleTenantAdminUserName=admin

      Changing this singleTenantAdminUserName=admin to point to the a valid MS AD admin user fixes the issue

        PractiTest Integration




          Attachments

          1. applicationContext-security-ldap.properties
            0.9 kB
          2. catalina.2014-04-24.log
            24 kB
          3. catalina.out
            28 kB
          4. Migration48_ADExport.zip
            2.49 MB
          5. security.properties
            0.1 kB

            Issue Links

              Activity

                People

                Assignee:
                anton_kuchura Anton Kuchura (Inactive)
                Reporter:
                clopez Carlos Lopez
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0h
                    0h
                    Logged:
                    Time Spent - 3h
                    3h