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

jenkins-cli failed to run disable/enable job with correct active directory username and password

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Linux 2.6.35, Jenkins 1.540, Jenkins Active Directory Plugin 1.33

      It used to work in 1.518. But it failed now in 1.540. But build job works fine with Jenkins-cli.

      -bash-4.1$ ${JENKINS_CLI} disable-job _create_repo --username fdai --password-file pwf 
      Skipping HTTPS certificate checks altogether. Note that this is not secure at all.
      hudson.security.AccessDeniedException2: anonymous is missing the Job/Configure permission
              at hudson.security.ACL.checkPermission(ACL.java:54)
              at hudson.model.AbstractItem.checkPermission(AbstractItem.java:443)
              at hudson.model.AbstractProject.doDisable(AbstractProject.java:2110)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:616)
              at hudson.cli.declarative.MethodBinder.call(MethodBinder.java:102)
              at hudson.cli.declarative.CLIRegisterer$1.main(CLIRegisterer.java:185)
              at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:616)
              at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299)
              at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280)
              at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239)
              at hudson.remoting.UserRequest.perform(UserRequest.java:118)
              at hudson.remoting.UserRequest.perform(UserRequest.java:48)
              at hudson.remoting.Request$2.run(Request.java:328)
              at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
              at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63)
              at hudson.remoting.InterceptingExecutorService$2.call(InterceptingExecutorService.java:95)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
              at java.util.concurrent.FutureTask.run(FutureTask.java:166)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
              at java.lang.Thread.run(Thread.java:679)
      

          [JENKINS-20644] jenkins-cli failed to run disable/enable job with correct active directory username and password

          Feng Dai created issue -
          Feng Dai made changes -
          Description Original: It used to work in 1.518. But it failed now in 1.540.
          {code}
          -bash-4.1$ ${JENKINS_CLI} disable-job _create_repo --username fdai --password-file pwf
          Skipping HTTPS certificate checks altogether. Note that this is not secure at all.
          hudson.security.AccessDeniedException2: anonymous is missing the Job/Configure permission
                  at hudson.security.ACL.checkPermission(ACL.java:54)
                  at hudson.model.AbstractItem.checkPermission(AbstractItem.java:443)
                  at hudson.model.AbstractProject.doDisable(AbstractProject.java:2110)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:616)
                  at hudson.cli.declarative.MethodBinder.call(MethodBinder.java:102)
                  at hudson.cli.declarative.CLIRegisterer$1.main(CLIRegisterer.java:185)
                  at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:616)
                  at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299)
                  at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280)
                  at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239)
                  at hudson.remoting.UserRequest.perform(UserRequest.java:118)
                  at hudson.remoting.UserRequest.perform(UserRequest.java:48)
                  at hudson.remoting.Request$2.run(Request.java:328)
                  at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
                  at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63)
                  at hudson.remoting.InterceptingExecutorService$2.call(InterceptingExecutorService.java:95)
                  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
                  at java.util.concurrent.FutureTask.run(FutureTask.java:166)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
                  at java.lang.Thread.run(Thread.java:679)
          {code}
          New: It used to work in 1.518. But it failed now in 1.540. But build job works fine with Jenkins-cli.
          {code}
          -bash-4.1$ ${JENKINS_CLI} disable-job _create_repo --username fdai --password-file pwf
          Skipping HTTPS certificate checks altogether. Note that this is not secure at all.
          hudson.security.AccessDeniedException2: anonymous is missing the Job/Configure permission
                  at hudson.security.ACL.checkPermission(ACL.java:54)
                  at hudson.model.AbstractItem.checkPermission(AbstractItem.java:443)
                  at hudson.model.AbstractProject.doDisable(AbstractProject.java:2110)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:616)
                  at hudson.cli.declarative.MethodBinder.call(MethodBinder.java:102)
                  at hudson.cli.declarative.CLIRegisterer$1.main(CLIRegisterer.java:185)
                  at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:616)
                  at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299)
                  at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280)
                  at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239)
                  at hudson.remoting.UserRequest.perform(UserRequest.java:118)
                  at hudson.remoting.UserRequest.perform(UserRequest.java:48)
                  at hudson.remoting.Request$2.run(Request.java:328)
                  at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
                  at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63)
                  at hudson.remoting.InterceptingExecutorService$2.call(InterceptingExecutorService.java:95)
                  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
                  at java.util.concurrent.FutureTask.run(FutureTask.java:166)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
                  at java.lang.Thread.run(Thread.java:679)
          {code}
          Summary Original: jenkins-cli faile to run disable job with correct username and password New: jenkins-cli faile to run disable/enable job with correct active directory username and password
          Feng Dai made changes -
          Component/s New: active-directory [ 15526 ]
          Feng Dai made changes -
          Environment New: Linux 2.6.35, Jenkins 1.540, Jenkins Active Directory Plugin 1.33
          Summary Original: jenkins-cli faile to run disable/enable job with correct active directory username and password New: jenkins-cli failed to run disable/enable job with correct active directory username and password
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 152169 ] New: JNJira + In-Review [ 178205 ]

            Unassigned Unassigned
            freedai Feng Dai
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: