Layer7 API Management

  • 1.  Context variable values not displayed in Global policy fragment

    Posted Jan 23, 2017 10:19 PM

    We have a global policy fragment-message completed  on gateway version 9.0, it simply sets a few context variables and at the end there is a customize error response assertion that uses values of these context variables. When tested from a policy end point and when control flows to this global policy fragment, the customize error assertion within the global policy fragment is not displaying the values of the context variables cv_httpstatus, cv_contentType, cv_responsebody Attached are the copies of global policy fragment and the test end point.

    Can anyone point out why the context variable values are not getting retrieved in the customize error assertion within the global policy fragment when it executes ?

    Attachment(s)



  • 2.  Re: Context variable values not displayed in Global policy fragment

    Posted Jan 24, 2017 04:53 AM

    Hi MKarthik ,

     

    I suggest a new support case be raised so that the files attached can be reviewed. This may need a deeper analysis.

     

    Regards

    Seenu Mathew



  • 3.  Re: Context variable values not displayed in Global policy fragment

    Broadcom Employee
    Posted Jan 24, 2017 08:19 AM

    We currently have a support case open for the same. To retrieve the values set in the 'customize error response' they must be exported from the global fragment and referenced as shared variables: