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

CLI commands not available if not using transport authentication

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: cli
    • Labels:
      None
    • Environment:
      Jenkins 2.107.2
    • Similar Issues:

      Description

      After this change it is not possible to use any of the other commands (e.g. version) if you are not using the transport authentication, as the READ permission is applied before authenticating the user.

      Workaround is to use the transport authentication.

        Attachments

          Activity

          Hide
          andresrc Andres Rodriguez added a comment -

          Besides, when running the version command using transport auth, the following warning is shown:

          20-Apr-2018 08:10:00.316 WARNING [Handling GET /jenkins/ from 127.0.0.1 : http-nio-8080-exec-2] hudson.init.impl.InstallUncaughtExceptionHandler.lambda$init$0 null
           javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/bitnami/tomcat/data/jenkins/WEB-INF/lib/jenkins-core-2.107.2.jar!/lib/layout/task.jelly:184:58: <j:when> java.io.IOException: Broken pipe
                  at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:117)
                  at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:140)
                  at org.kohsuke.stapler.IndexViewDispatcher.dispatch(IndexViewDispatcher.java:30)
                  at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
                  at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
                  at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:782)
                  at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
                  at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
                  at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
                  at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
                  ...
          
          Show
          andresrc Andres Rodriguez added a comment - Besides, when running the version command using transport auth, the following warning is shown: 20-Apr-2018 08:10:00.316 WARNING [Handling GET /jenkins/ from 127.0.0.1 : http-nio-8080-exec-2] hudson.init.impl.InstallUncaughtExceptionHandler.lambda$init$0 null javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/bitnami/tomcat/data/jenkins/WEB-INF/lib/jenkins-core-2.107.2.jar!/lib/layout/task.jelly:184:58: <j:when> java.io.IOException: Broken pipe at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:117) at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:140) at org.kohsuke.stapler.IndexViewDispatcher.dispatch(IndexViewDispatcher.java:30) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:782) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ...

            People

            • Assignee:
              Unassigned
              Reporter:
              andresrc Andres Rodriguez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: