You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While updating the custom mediation using the publisher update RESTful API the user receives 500 error response but the API still get updated with the custom mediation used in the payload of API even if the particular custom mediation does not exist in the registry.
Steps to Reproduce
Start the API manager and go to the publisher portal.
{
"code": 500,
"message": "Internal server error",
"description": "Error while updating API : xxxxxxxxxxx",
"moreInfo": "",
"error": []
}
We can observe even if the mediation policy does not exists in the Custom Policies of the Message Mediation form the publisher portal and if used in the payload of the update API still the API is getting updated with the non-existing mediation policy.
Version
3.2.0, 4.3.0
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered:
Description
While updating the custom mediation using the publisher update RESTful API the user receives 500 error response but the API still get updated with the custom mediation used in the payload of API even if the particular custom mediation does not exist in the registry.
Steps to Reproduce
Start the API manager and go to the publisher portal.
Create and publish an API.
Update the API using the below command.
curl --location --request PUT 'https://:/api/am/publisher/v1/apis/{apiId}'
--header 'Content-Type: application/json'
--header 'Authorization: ••••••'
--data '{payload}'
"mediationPolicies": [{
"name": "sample_sequence",
"type": "IN"}],
Error response -
{
"code": 500,
"message": "Internal server error",
"description": "Error while updating API : xxxxxxxxxxx",
"moreInfo": "",
"error": []
}
We can observe even if the mediation policy does not exists in the Custom Policies of the Message Mediation form the publisher portal and if used in the payload of the update API still the API is getting updated with the non-existing mediation policy.
Version
3.2.0, 4.3.0
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered: