Uploaded image for project: 'Lucee Development'
  1. LDEV-918

J2EE Session not maintained in cfhttp requests

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.0.1.21
    • Fix Version/s: 5.0.1.23, 4.5.4.007
    • Labels:
    • Environment:

      Windows 10, Tomcat Express Installation

      Description

      See attached test code, "maintained" is always false

      <!--- call endpoint, try to maintain the session --->
      <cfhttp url='#baseURL#/endpoint.cfm?#session.urltoken#' method="post" timeout="60" addtoken="true">
      <cfif findNoCase("jsessionid", session.urltoken)>
      <cfhttpParam type="COOKIE" name="JSESSIONID" value="#session.sessionid#" encoded="false" />
      </cfif>
      <cfif structKeyExists(session, "cfid") AND StructKeyExists(session, "cftoken")>
      <cfhttpParam type="COOKIE" name="CFID" value="#session.cfid#" />
      <cfhttpParam type="COOKIE" name="CFTOKEN" value="#session.cftoken#" />
      </cfif>
      </cfhttp>

      Happened also in Lucee 4.5, thas workaround was to load older http jars:
      httpclient-4.1.3.jar
      httpcore-4.1.4.jar
      httpmime-4.1.3.jar

        Attachments

        1. image001.png
          59 kB
        2. image001.png
          60 kB
        3. image002.png
          0.6 kB
        4. image002.png
          0.6 kB
        5. screenshot.png
          54 kB
        6. Screen Shot 2016-07-12 at 16.03.41.png
          131 kB
        7. Screen Shot 2016-07-13 at 11.10.03.png
          96 kB
        8. selfcheck_session.zip
          2 kB

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              HarryK Harry Klein
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: