0 Replies Latest reply on Dec 14, 2010 6:29 AM by radutoev

    Problems using amf-secure with Internet Explorer on https

    radutoev

      Hello,

       

      I have the following configuration

      - client : Flex with sdk 4.1

      - server-side : tomcat, spring framework

      Communication is done with the mf protocol.

      In my services-config I have the following config for the channels

       

      <channel-definition id="my-amf"
                  class="mx.messaging.channels.AMFChannel">
                  <endpoint
                      url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf"
                      class="flex.messaging.endpoints.AMFEndpoint" />
                  <properties>
                      <polling-enabled>false</polling-enabled>
                  </properties>
              </channel-definition>

      <channel-definition id="my-secure-amf"
                  class="mx.messaging.channels.SecureAMFChannel">
                  <endpoint
                      url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure"
                      class="flex.messaging.endpoints.SecureAMFEndpoint" />
                  <properties>
                      <add-no-cache-headers>false</add-no-cache-headers>
                  </properties>
              </channel-definition>

       

      Over http all works well on IE 8 and Firefox.

      Problems appear when swithcing to https. This is my tomcat log when accesing the application in IE8


      2010-12-14 12:15:25,298 [INFO] +++LI+++/xxxxxxxx/ - CC41CD1C6A47B392E939383217EC756C
      2010-12-14 12:15:25,314 [INFO] +++LI+++/xxxxxxxx/history/history.css - CC41CD1C6A47B392E939383217EC756C
      2010-12-14 12:15:25,314 [INFO] +++LI+++/xxxxxxxx/history/history.js - CC41CD1C6A47B392E939383217EC756C
      2010-12-14 12:15:25,314 [INFO] +++LI+++/xxxxxxxx/swfobject.js - CC41CD1C6A47B392E939383217EC756C
      2010-12-14 12:15:25,392 [INFO] +++LI+++/xxxxxxxx/index.swf - CC41CD1C6A47B392E939383217EC756C
      2010-12-14 12:15:27,767 [INFO] +++LI+++/xxxxxxxx/messagebroker/amf - 254E8913292C5A76486DEFF2AD387895
      12/14/2010 12:15:27.783 [INFO ] org.springframework.flex.servlet.MessageBrokerHandlerAdapter - Channel endpoint my-amf received request.
      2010-12-14 12:15:28,189 [INFO] +++LI+++/xxxxxxxx/messagebroker/amf - 254E8913292C5A76486DEFF2AD387895

       

      As you can see instead of calling /messagebroker/amfsecure it callse /amf.

      Also the session ID changes.

       

      I've added  <add-no-cache-headers>false</add-no-cache-headers> to prevent the IE pragma header problem, but it doesn't seem to work.

      Also I'm running this example on my localhost, so no proxy problems should appear.

       

      Any help will be highly appreciated.