api-manager icon indicating copy to clipboard operation
api-manager copied to clipboard

[APIM 4.3.0] Issue with GET operation policies REST API

Open Hamool-Nizar opened this issue 1 year ago • 0 comments

Description

Hi All,

We are unable to use the REST API call to retrieve all common operation policies with search conditions [1]. The search conditions are not functioning as expected as it documented in the following documentation.

[1]. https://apim.docs.wso2.com/en/latest/reference/product-apis/publisher-apis/publisher-v4/publisher-v4/#tag/Operation-Policies/operation/getAllCommonOperationPolicies

Steps to Reproduce

We tested this behavior as follows:

  1. Postman:

    We invoked the GET operation-policies with a search condition as follows: image

  2. Curl:

    We invoked the GET operation-policies with a search condition as follows: image

In both scenarios, we encountered the following error:

“Requested API policy with name 'addHeader' and version 'null' not found"

Affected Component

APIM

Version

4.3.0

Environment Details (with versions)

No response

Relevant Log Output

ERROR - GlobalThrowableMapper Couldn't retrieve an existing common policy with Name: addHeader and Version: null

Related Issues

No response

Suggested Labels

No response

Hamool-Nizar avatar Aug 02 '24 08:08 Hamool-Nizar