Issue during the AJAX call.

book

Article ID: 143422

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On Agents (SiteMinder) CA Single Sign On Federation (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) SITEMINDER

Issue/Introduction

 

We're running a Web Agent and when a user request an URL having Ajax
code executed in the page, then the browser gets freezing and nothing
seems on the Web Page.

As our development team member expressed, there are 2 problems at
the moment :

   - Some calls are redirected to the wrong JSON file;
   - Some calls end with a blank page in the browser;

Those problems are seen in Internet Explorer and Edge browser
only : Chrome an Firefox browsers work fine.

How can we fix this ?

 

Cause

 

You need to implement WebAppClientResponse in order to make the Web
Agent behavior in sync with the ajax code flow.

From documentation :

Web Application Client Response Introduced

  Some web applications use script engines, which execute in the
  context of a Web browser, to request resources and display
  content. Similar to requests standard web browsers send, the
  requests originating from the script engine can trigger
  Agent-generated behavior, such as HTTP redirects or challenges.

  Unless properly integrated with the web application, this behavior
  can result in the web application client reaching an indeterminate
  state.

    The web application client response (WebAppClientResponse) ACO
    parameter lets you:

    - Configure CA Single Sign-on to identify requests originating
      from the script engine that is executing in the context of the
      Web browser.
    - Use a customized response to integrate CA Single
      Sign-on-generated behavior, including a challenge, with the
      functionality of the web application client.
    - Configure the response format for requests from Web 2.0
      resources (AJAX and other API-based calls) at the global level.
    - Configure a global response to the web application clients to
      reduce the need to configure request/responses at each Web Agent
      level manually.

https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-identity-and-access-management/single-sign-on/12-8-03/configuring/web-agent-configuration/session-protection/apply-ca-single-sign-on-behavior-to-a-web-application-client.html

Some KD are related to similar issue :

  Web Agent :: Ajax returns 302 code as it should not
  https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=133617

This following KD give an example of configuration and what is
expected in the logs :

  I don't see IdleTimeout Reason when the Web Agent is configured for webappclientresponse
  https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=6958

  OverlookSessionAsPattern
  https://community.broadcom.com/communities/community-home/digestviewer/viewthread?MID=750035#bmd40dee92-4f87-47d1-9ab6-2048c5bfdeb2

  New WebAppClientResponse ACO Parameter
  https://community.broadcom.com/communities/community-home/digestviewer/viewthread?MID=820398#bm44fe3c3f-dfc0-4a3a-8dd4-3ffd5246e6cc

  Defects Fixed in 12.52 SP1 CR10
  01288412 DE405188 Web Agent matches unintended resources when wildcard '*' is used in the resource attribute of WebAppClientResponse ACO Parameter.
  https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-identity-and-access-management/single-sign-on/12-52-sp1/release-notes/cumulative-releases/Defects-Fixed-in-12_52SP1-CR10.html

We've found some links mentioning Ajax application which do not run
fine in Internet Explorer and Edge, but works fine in Chrome and
1Firefox.

  JQuery AJAX won't display on Internet Explorer
  https://stackoverflow.com/questions/39624889/jquery-ajax-wont-display-on-internet-explorer

  Quirks Mode and Standards Mode
  https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode

  AJAX requests not executing or updating in Internet Explorer? Here's a solution
  Debugging and fixing stale AJAX data issues in Internet Explorer
  https://www.itworld.com/article/2693447/ajax-requests-not-executing-or-updating-in-internet-explorer-solution.html

 

Environment

 

  Web Agent 12.52SP01CR09 build 2614 on Apache 2.2 on RedHat 6;

 

Resolution

 

Implement Web Agent ACO WebAppClientResponse to handle the behavior
you need with Web 2.0 code like Ajax.