InstallationWizard: "Create first account" pops up if SecurityRealm is configured by startup scripts

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      We have a custom WAR package, which initializes Security settings on startup by Groovy Boot Hook scripts. So security is actually configured when the installation wizard starts.

      In such case "Create first account" causes confusion, because it actually does not create a user. And this screen is not required at all in such case.

      When I create user instead of skipping the step, I get a fatal error:

      Caused by: java.lang.ClassCastException: com.cloudbees.opscenter.security.OperationsCenterSecurityRealm cannot be cast to hudson.security.HudsonPrivateSecurityRealm
      	at jenkins.install.SetupWizard.doCreateAdminUser(SetupWizard.java:176)
      	... 80 more
      

      Workaround: Skip user creation

            Assignee:
            Keith Zantow
            Reporter:
            Oleg Nenashev
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: