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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Activity

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

            People

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

              Dates

              Created:
              Updated:
              Resolved: