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

JENKINS_HOME/users/config.xml Results in Nameless User

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      If a valid config.xml file for a user is placed in the root user folder, i.e. JENKINS_HOME/users/config.xml, it causes a nameless user to be created that does not appear anywhere in the UI and generally can't be managed. (You can access it via groovy script or by editing the xml but that seems to be about it).

      In our case this file was created by a bug in a Chef recipe, but Chef bugs asside, it seems incorrect behavior for Jenkins pick up such a misplaced config file and created a nameless user from of it. Or is this intended behavior? If so this ticket should be used to document it somewhere and if not, it should be used to fix it.

      For some background: This turns out to be the root cause of the issue reported in JENKINS-29860. The initial AD error reported there was caused by having a nameless user with the same SSH key as a named user. (This lead to JENKINS-32534 being opened as well.) The nameless user was created because of a bug in the Chef recipe such that it created a config.xml file for our admin user in the root user folder JENKINS_HOME/users/config.xml instead of updating the intended existing file JENKINS_HOME/users/<admin-user>/config.xml.

        Attachments

          Issue Links

            Activity

            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            The patch has been integrated towards 2.111

            Show
            oleg_nenashev Oleg Nenashev added a comment - The patch has been integrated towards 2.111
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oleg Nenashev
            Path:
            core/src/main/java/hudson/model/User.java
            http://jenkins-ci.org/commit/jenkins/02eebecfab96fa9f9ef9844c7ebebad5fdb71c27
            Log:
            Merge pull request #3317 from daniel-beck/JENKINS-32599

            JENKINS-32599 Ignore misplaced users/config.xml file

            Compare: https://github.com/jenkinsci/jenkins/compare/7add30c02359...02eebecfab96

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/java/hudson/model/User.java http://jenkins-ci.org/commit/jenkins/02eebecfab96fa9f9ef9844c7ebebad5fdb71c27 Log: Merge pull request #3317 from daniel-beck/ JENKINS-32599 JENKINS-32599 Ignore misplaced users/config.xml file Compare: https://github.com/jenkinsci/jenkins/compare/7add30c02359...02eebecfab96
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Daniel Beck
            Path:
            core/src/main/java/hudson/model/User.java
            http://jenkins-ci.org/commit/jenkins/35a38f0ce69596f7aff2a4b3de14739d5cb78dbc
            Log:
            JENKINS-32599 Ignore misplaced users/config.xml file

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/java/hudson/model/User.java http://jenkins-ci.org/commit/jenkins/35a38f0ce69596f7aff2a4b3de14739d5cb78dbc Log: JENKINS-32599 Ignore misplaced users/config.xml file

              People

              • Assignee:
                danielbeck Daniel Beck
                Reporter:
                kbaltrinic Kenneth Baltrinic
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: