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

Cookie name contains a comma, Jenkins Overview will not displayed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • other
    • Cent OS 6.3 x86_64. Jenkins runs as executable jenkins.war.

      Hi,

      we have the problem, that we runs on our build/development machine many instances of java software.
      Our main application, sets a cookie with this cookie name: "SessionPersistence-dev-publish,publishdev"
      We can't changed this cookie name.

      If I get the webfrontend of this application, e.g.:
      http://<developmentmachine>.<localdomain>:4503/

      Then I get a cookie with this name.

      If I change now to jenkins on the same machine:
      http://<developmentmachine>.<localdomain>:8080/jenkins/

      then I get a blank white page.
      In jenkins.log I get the following exception:

      Sep 25, 2012 9:27:23 AM winstone.Logger logInternal
      SEVERE: Error within request handler thread
      java.lang.IllegalArgumentException: Cookie name contains a comma
              at javax.servlet.http.Cookie.setName(Cookie.java:79)
              at javax.servlet.http.Cookie.<init>(Cookie.java:25)
              at winstone.WinstoneRequest.parseCookieLine(WinstoneRequest.java:698)
              at winstone.WinstoneRequest.parseHeaders(WinstoneRequest.java:653)
              at winstone.HttpListener.parseHeaders(HttpListener.java:394)
              at winstone.HttpListener.parseURI(HttpListener.java:256)
              at winstone.RequestHandlerThread.run(RequestHandlerThread.java:75)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:662)
      

      Workarounds:
      1.) Access jenkins directly via IP.
      2.) Delete this cookie.

      Is this the desired behavior?

      many regards,
      Jens

            Unassigned Unassigned
            jng Jens Großmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: