0 Replies Latest reply: Feb 27, 2009 4:41 AM by 807574 RSS

    Secure Remote Access Rewriting engine is not rewriting some elements

    807574
      Hi all,

      I'm having a problem with the rewriting of one application that is sent through the gateway: OWA (Outlook Web Access).

      When a client is visiting the OWA application through the gateway, using Internet Explorer 6.0, there are a couple of rewriting problems.

      OWA consists of several frames and in the message-frame (frame containing the actual e-mail message) a problem occurs with hyperlinks and images: the urls are not rewritten.

      Original code:
      <base href="http://owaserver.example.com/exchange/mailbox/message" />
      <p>E-mail message with an image as an attachment</p>
      <img src="/attachments/attachment1" />
      Code after being sent through the portal:
      <base href="http://owaserver.example.com/exchange/mailbox/message" />
      <p>E-mail message with an image as an attachment</p>
      <img src="/attachments/attachment1" />
      The code is not rewritten! The rest of the site though is rewritten, all hyperlinks, images, javascript is rewritten as it should.

      This is the rewriter ruleset that is applied looks correct, it is fetching the href and src attributes for any tag.

      When I look into the logs, I can see that the href attribute in the base element is actually matched, so rewriting should be done. But nothing changes. The same with the images: the logs tell me: 'Content matched: <Attribute name="src" tag="img" source="http://owaserver.example.com......" />'

      But the original and rewritten page looks just the same. I have no idea how this can be happening? Did anyone have the same problems and more importantly, how can I solve this?

      The second problem I am having is a weird one: The behaviour described above is the behaviour on the test-gateway. On the production-gateway, the rewriter engine is behaving differently although the rulesets are exactly the same.

      On production (using the same application: http://owaserver.example.com/exchange/...."), the code looks as follows:

      {code}
      <!-- base href="http://production-gateway.example.com/http://owaserver.example.com/exchange/mailbox/message" -->
      <p>E-mail message with an image as an attachment</p>
      <img src="/attachments/attachment1" />
      {code}

      Is there some kind of functionality in the gateway that is able to comment out parts of the HTML code? It is the exact same application server and application, still it behaves differently. Also the href attribute is rewritten this time, how it should. The relative image source is not rewritten.

      I'm really confused about this behaviour.

      Thanks a lot!



      Sten