WebAgentTrace - Custom Error

book

Article ID: 209139

calendar_today

Updated On:

Products

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

Issue/Introduction

 

When running a Web Agent, the following log line can be seen in the
Web Agent traces :

  [Date][Time][Pid][Tid][SrcFile][Function][TransactxionID][IPAddr][IPPort][AgentName][Resource][User][Message]

  [02/10/2021][14:50:15][19864][1920657152][CSmHttpPlugin.cpp:657][CSmHttpPlugin::ProcessResource]
  [0000000000000000000000001d21360a-4d98-6023f2a7-727ae700-745827264b7e][*1x.x.x.x][][wa]
  [][][ResolvedURL:'/myApp/?reason=MyApp Error ABCD [ABCD-1234] Failure in Authentication'.]

Why the WebAgent reports an application error message here (MyApp
Error ABCD [ABCD-1234] Failure in Authentication) ?

 

Resolution

 

When writing this log line, the Web Agent executes the ProcessResource
function. In this one, it reports the resource requested. In the log
line :

  [02/10/2021][14:50:15][19864][1920657152][CSmHttpPlugin.cpp:657]
  [CSmHttpPlugin::ProcessResource][0000000000000000000000001d21360a-4d98-6023f2a7-
  727ae700-745827264b7e][*1x.x.x.x][][wa][][]
  [ResolvedURL:'/myApp/?reason=MyApp Error ABCD [ABCD-1234] Failure in Authentication'.]

The message 

  "/myApp/?reason=MyApp Error ABCD [ABCD-1234] Failure in Authentication" 

is an URI as per the Web Agent traces which show the full url-encoded
data :

WebAgentTrace.log :

  [02/10/2021][14:50:15][19864][1920657152][CSmHttpPlugin.cpp:657]
  [CSmHttpPlugin::ProcessResource][0000000000000000000000001d21360a-4d98-6023f2a7-
  727ae700-745827264b7e][*1x.x.x.x][][wa][][]
  [Resolved URL: '/myApp/?reason=MyApp%20Error%20ABCD%20%5BABCD-1234%5D%20Failure%20in%20Authentication'.]

Here the Web Agent reports the ressource (URI) being accessed only.

Each time WebAgent receives a request, it will print the URI
accessed. Another sample to illustrate this, if the accessed the full
URL is :

  "http://wa.training.com/oidc/allheaders.php"

then the Web Agent will report :

  [02/22/2021][13:46:06][9636][1117628160][CSmHttpPlugin.cpp:703]
  [CSmHttpPlugin::ProcessResource][0000000000000000000000006601a8c0-25a4-6033a78e-
  429da700-ea784634694a][][][wa][][][Resolved URL: '/oidc/allheaders.php'.]