Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34881

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            oleg_nenashev Oleg Nenashev created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Description 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.

            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:

            {noformat}
            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
            {noformat}

            Workaround: Skip user creation
            Priority Major [ 3 ] Critical [ 2 ]
            kzantow Keith Zantow made changes -
            Assignee Keith Zantow [ kzantow ]
            kzantow Keith Zantow made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            kzantow Keith Zantow made changes -
            Remote Link This issue links to "PR 2364 (Web Link)" [ 14328 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            oleg_nenashev Oleg Nenashev made changes -
            Labels installation installationWizard ui installation installationWizard lts-candidate ui
            olivergondza Oliver Gond┼ża made changes -
            Labels installation installationWizard lts-candidate ui 2.7.1-fixed installation installationWizard ui
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 171081 ] JNJira + In-Review [ 199030 ]

              People

              Assignee:
              kzantow Keith Zantow
              Reporter:
              oleg_nenashev Oleg Nenashev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: