Symantec IGA

  • 1.  Customise the default TEWS error code thrown by CA IDM.

    Posted Dec 14, 2017 02:36 AM

    We would like to change the default error message thrown by IDM when user is not found "Unable to copy object, object could not be found" in one of our tasks to a custom message. Can anyone help me out as to how we can customize the TEWS error message.



  • 2.  Re: Customise the default TEWS error code thrown by CA IDM.

    Broadcom Employee
    Posted Dec 14, 2017 06:02 AM

    Hi Susmita Bompada,

    I am assuming you get this tews:description "Unable to copy object - object could not be found..." from a SOAP XML response.

     

    The solution is to update the 5102 exception message into your iam_im.ear\custom\resourceBundles\IMSExceptions_XX.properties.

    e.g.:
    5102=GUIPH01***Unable to copy object, object could not be found. key: {0} value: {1}.
    into
    C:\EAP-6.4.0\standalone\deployments\iam_im.ear\custom\resourceBundles\IMSExceptions_en.properties

     

    Result:

    <tews:exception>
    <tews:name>com.netegrity.ims.exception.IMSException</tews:name>
    <tews:code>700</tews:code>
    <tews:description>GUIPH01***Unable to copy object, object could not be found. key: Subject.0.UID value: newSupplieraa.</tews:description>
    <tews:transaction>7fdf153a-4d5d3489-082c0be5-1de7d4</tews:transaction>
    </tews:exception>

     

    Regards,

    Philippe.



  • 3.  Re: Customise the default TEWS error code thrown by CA IDM.

    Posted Dec 14, 2017 06:27 AM

    Hi Phillipe,

     

    Is there a way to get this error code thrown by IDM upon search of a user in a java code. We do not want to change the properties file as it would be reflected in all the SOAP tasks whenever a similar situation occurs.

     

    Any pointer would be of great help.

     

    Thanks,

    Susmita



  • 4.  Re: Customise the default TEWS error code thrown by CA IDM.
    Best Answer

    Broadcom Employee
    Posted Dec 14, 2017 08:33 AM

    Hi Susmita,

    You cannot change the way IM framework works with the resource Bundles properties to send error messages.

    Either you change the resourceBundles\IMSExceptions_XX.properties and that will impact UI and all TEWS requests or
    you intercept the TEWS XML SOAP Response to update the description field.
    Updating the XML SOAP Response depends on where you are.
    By instance if your Client is SoapUI then you have no control on the displayed response.
    If you send the XML Request from a java code then you have the control on the response returned in your code.

    Other tunnels or gateways are possible to alter a Soap Response.

    Regards,

    Philippe.