-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APIM CLI to check/skip already removed API #417
Comments
Hi @razvan4axway
Thanks |
Hi Rathna, keep the custom validation please out of scope, they're not relevant as it's anyway something custom. Nevertheless for each publication request there is an in place upgrade performed automatically directly after publication request on API Manager side which is creating conflicts with the procedure on CLI side. In theory this can also happen without such an automation so we would expect the APIM CLI to have a proper error handling:
|
Hi @raffaelsta / @razvan4axway, Can you share the command line parameters used to deploy API? |
Hi @raffaelsta / @razvan4axway, The fix check for api availability before deleting exiting API. can you test with |
Hi @rathnapandi, thank you for this fix. From my end it's handling now the above mentioned issue in a proper way. Just thinking if the log level shouldn't be info/warning instead of error in such a case. I will also let my colleagues test who initially raised this issue and let you know. Anyway thanks for handling it! |
Hi @raffaelsta, Changed the log level to warning. |
Fixed as part of 1.14.3 release |
Problem description
Issue:
Customer has a policy with API Manager that is event based and is called when an API is requested to be published.
They have automated the process.
As admin publishing is directly permitted, however as an Org admin this is forbidden. (No option in GUI)
Policy is doing the following: running validation and performing in place upgrade.
5b) If predecessor is unpublished, it will also delete it
Test case #1
Import unpublished API vs Currently published API - OK
When publishing the new API, the old is removed automatically
Test case #2
Import published API with changed path (breaking change) vs Unpublished API - KO
a)New API is created and published correctly
b)Unpublished API IS removed by the automation policy
c)APIM CLI tries to remove the previous API but as it is already deleted , it throws a 403 Response
d)APIM CLI next tries to rollback the new API but doesn't succeed to remove a published API because of the Org admin privileges(which is good)
This process raises some alarms on the client side
Feature request
Possible solutions:
The text was updated successfully, but these errors were encountered: