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

Job Config History Plug-in updates the username as anonymous

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hello,

      This is with regard to Job Config History Plug-in.

      Of late I'm seeing job config history plug-in updating configuration change records of Jenkins jobs as anonymous user although I'm making config changes using my account/user name through GUI.

      Environment Information:

      • Job Configuration History Plugin (jobConfigHistory): 2.17
      • Jenkins core version - 2.46.2
      • JavaVersion-1.8.0_121
      • OS-Windows
      • I've noticed the type of Job having issues is Freestyle. I did not check other job type though, I assume it may be the same with other type.
      • For ACL management, I'm using role base based strategy. Under global permissions / roles I see anonymous having only read access, but not sure how could anonymous being able to edit job configuration. 

      I suspect if this can be considered as a bug or something. Can you please let me know if this a known issue already ? 

      Please suggest if there is any fix / workaround for this issue. It would be grateful.

      Many thanks in advance.

       Thanks,

      Ashok Kumar Srinivas

        Attachments

          Issue Links

            Activity

            Hide
            ashoksri Ashok Kumar Srinivas added a comment -

            Ok. Let me check and give a try and let you know. 

            Thank you.

             

            Thanks,

            Ashok Kumar Srinivas

            Show
            ashoksri Ashok Kumar Srinivas added a comment - Ok. Let me check and give a try and let you know.  Thank you.   Thanks, Ashok Kumar Srinivas
            Hide
            ashoksri Ashok Kumar Srinivas added a comment -

            Jochen A. Fürbacher

            As per your suggestion, I installed the plug-in given to me jobConfigHistory-2.18-20170915.063315-1.hpi on my test instance and enabled the logger hudson.plugins.jobConfigHistory.PluginUtils with INFO. It is outputs as your statement.

             

            Sep 20, 2017 1:34:26 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:27 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: null
            Sep 20, 2017 1:34:27 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: null
            Sep 20, 2017 1:34:28 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:28 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:28 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:28 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: ASHOKKUMAR SRINIVAS
            Sep 20, 2017 1:34:47 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: null
            Sep 20, 2017 1:34:54 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao
            Current user is: null

             

            Thanks,

            Ashok Kumar Srinivas

            Show
            ashoksri Ashok Kumar Srinivas added a comment - Jochen A. Fürbacher As per your suggestion, I installed the plug-in given to me jobConfigHistory-2.18-20170915.063315-1.hpi on my test instance and enabled the logger hudson.plugins.jobConfigHistory.PluginUtils with INFO. It is outputs as your statement.   Sep 20, 2017 1:34:26 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:27 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: null Sep 20, 2017 1:34:27 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: null Sep 20, 2017 1:34:28 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:28 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:28 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:28 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:29 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:32 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: ASHOKKUMAR SRINIVAS Sep 20, 2017 1:34:47 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: null Sep 20, 2017 1:34:54 PM INFO hudson.plugins.jobConfigHistory.PluginUtils getHistoryDao Current user is: null   Thanks, Ashok Kumar Srinivas
            Hide
            jochenafuerbacher Jochen A. Fürbacher added a comment -

            Thank you for providing this log snippet.

            As you can see, there are several lines printing that the current user is null. We get the info about the current user directly from the Jenkins core. When the Jenkins core cannot determine the current user, we get a null object (and hence set the user who changed the config to anonymous). So it must be an issue in the Jenkins core or the Active Directory Plugin. As I can say, there's unfortunately no way how we could fix this on JobConfigHistory hand.

            Stefan Brausch: Do you see any solution?

            Jochen Fürbacher

            Show
            jochenafuerbacher Jochen A. Fürbacher added a comment - Thank you for providing this log snippet. As you can see, there are several lines printing that the current user is null. We get the info about the current user directly from the Jenkins core. When the Jenkins core cannot determine the current user, we get a null object (and hence set the user who changed the config to anonymous). So it must be an issue in the Jenkins core or the Active Directory Plugin. As I can say, there's unfortunately no way how we could fix this on JobConfigHistory hand. Stefan Brausch : Do you see any solution? Jochen Fürbacher
            Hide
            ashoksri Ashok Kumar Srinivas added a comment -

            Hello Jochen A. Fürbacher & Stefan Brausch

            I'm sorry to bother you guys. Do you guys have any suggestion or a solution to over come this problem with Jenkins core ? Your suggestion would be appreciated. Thanks in advance.

             

            Thanks,

            Ashok Kumar Srinivas

            Show
            ashoksri Ashok Kumar Srinivas added a comment - Hello Jochen A. Fürbacher & Stefan Brausch I'm sorry to bother you guys. Do you guys have any suggestion or a solution to over come this problem with Jenkins core ? Your suggestion would be appreciated. Thanks in advance.   Thanks, Ashok Kumar Srinivas
            Hide
            yjungmann Yoav Jungmann added a comment -

            Same issue for Jenkins 2.46.2 Plugin version 2.16

            Show
            yjungmann Yoav Jungmann added a comment - Same issue for Jenkins 2.46.2 Plugin version 2.16

              People

              Assignee:
              stefanbrausch Stefan Brausch
              Reporter:
              ashoksri Ashok Kumar Srinivas
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: