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

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

XMLWordPrintable

      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

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

              Created:
              Updated:
              Resolved: