Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-895

Axis doesn't maintain more than one cookie with http

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.0-rc2
    • None
    • Basic Architecture
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 20294

    Description

      I started testing out deployment with a load balancer (F5) which adds its own
      cookie to the http requests. There is also the tomcat cookie (JSESSIONID) added
      by the server. When I send the next request from the axis client, only the last
      cookie is sent.

      Output from tcpmon:

      Response from first request:

      HTTP/1.1 200 OK
      Set-Cookie: BIGipServerEngCTI=2365653770.49695.0000; expires=Tue, 27-May-2003
      17:54:17 GMT; path=/
      Set-Cookie: JSESSIONID=ZL9dl3tfxkRAzPtdfEVJlQ**.tomcat1; Path=/axis
      Content-Type: text/xml; charset=utf-8
      Date: Tue, 27 May 2003 17:14:17 GMT
      Server: Apache Coyote/1.0
      Connection: close
      <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
      <ns1:newSessionResponse
      soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:ns1="urn:NuanceCTI"/>
      </soapenv:Body>
      </soapenv:Envelope>

      Next client request with maintainSession set to true:

      POST /axis/services/NuanceCTI HTTP/1.0
      Content-Type: text/xml; charset=utf-8
      Accept: application/soap+xml, application/dime, multipart/related, text/*
      User-Agent: Axis/1.1
      Host: 10.3.0.22
      Cache-Control: no-cache
      Pragma: no-cache
      SOAPAction: ""
      Content-Length: 1515
      Cookie: JSESSIONID=ZL9dl3tfxkRAzPtdfEVJlQ**.tomcat1

      ....

      I will try to fix it here since I need it to work soon and send the fix back
      (If I find how to do that)

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--CommonsHTTPSender.java.patch
          8 kB
          Bernhard Huber
        2. ASF.LICENSE.NOT.GRANTED--HTTPSender.java.patch
          5 kB
          Bernhard Huber
        3. CommonsHTTPSender.java
          8 kB
          Gerry Gao
        4. CommonsHTTPSender.java.from1_2-RC3.patch
          9 kB
          Mike Moran
        5. CommonsHTTPSender&HTTPSender.patch
          2 kB
          Gerry Gao
        6. HTTPSender.java
          11 kB
          Gerry Gao
        7. HTTPSender.java.patch
          7 kB
          Gerry Gao

        Issue Links

          Activity

            People

              dims Davanum Srinivas
              ddesmeu@nuance.com Daniel Desmeules
              Votes:
              6 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: