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

HudsonAuthenticationEntryPoint can break CLI support, because the port isn't exposed properly

      layout.jelly exposes a number of HTTP headers that the cli client uses:
      X-Hudson-CLI-Port
      X-Jenkins-CLI-Port
      X-Jenkins-CLI2-Port
      X-Jenkins-CLI-Host

      Because HudsonAuthenticationEntryPoint doesn't use that layout when it serves a 403, the necessary HTTP headers are missing. If the redirection is external (as is the case with the openid plugin), it breaks CLI support completely.

      I've implemented a potential fix here:
      https://github.com/jenkinsci/jenkins/pull/836

          [JENKINS-18634] HudsonAuthenticationEntryPoint can break CLI support, because the port isn't exposed properly

          Luke Petre created issue -
          Steven Christou made changes -
          Labels Original: cli jenkins plugin New: cli jenkins lts-candidate plugin
          Steven Christou made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Oliver Gondža made changes -
          Labels Original: cli jenkins lts-candidate plugin New: 1.509.4-rejected cli jenkins plugin
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 149944 ] New: JNJira + In-Review [ 193365 ]

            kohsuke Kohsuke Kawaguchi
            lpetre Luke Petre
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: