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

Cookie header too long, causing a 413 HTTP error

    • Jenkins 2.184

      Each time Jenkins (re)starts, its session-cookie name changes (ie JSESSIONID.some_random_string).

      After a while, the browser have a bunch of session cookies, each one having a different name, causing the "Cookie" request header to be very long. The server returns a HTTP 413 response and a blank page. The user must clean his cookies in order to access Jenkins again.

       

      Workaround: Since Jenkins 2.66 there are custom options for managing Jetty session IDs: https://github.com/jenkinsci/extras-executable-war/#jetty-session-ids

          [JENKINS-25046] Cookie header too long, causing a 413 HTTP error

          Eric Citaire created issue -

          Same problem here, request information screenshots attached.

          Pei-Tang Huang added a comment - Same problem here, request information screenshots attached.
          Pei-Tang Huang made changes -
          Attachment New: 413_on_requests.png [ 30062 ]
          Attachment New: full_of_session_cookie.png [ 30063 ]
          James Sharpe made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          James Sharpe made changes -
          Labels New: 2.0

          James Sharpe added a comment -

          Same problem seen with 2.5

          James Sharpe added a comment - Same problem seen with 2.5

          Oleg Nenashev added a comment -

          Seems to be the issue, but I doubt it's 2.0-specific. CC danielbeck

          Oleg Nenashev added a comment - Seems to be the issue, but I doubt it's 2.0-specific. CC danielbeck

          Daniel Beck added a comment -

          Nothing critical about this.

          It's both rare (only affecting those restarting Jenkins like crazy) and trivial to fix (remove the cookie).

          Daniel Beck added a comment - Nothing critical about this. It's both rare (only affecting those restarting Jenkins like crazy) and trivial to fix (remove the cookie).
          Daniel Beck made changes -
          Priority Original: Critical [ 2 ] New: Minor [ 4 ]
          Daniel Beck made changes -
          Labels Original: 2.0

            Unassigned Unassigned
            ericcitaire Eric Citaire
            Votes:
            44 Vote for this issue
            Watchers:
            43 Start watching this issue

              Created:
              Updated: