Skip to content
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

Importing breaking changes without force flag - [outboundProfiles, serviceProfiles] #468

Open
emmanuel-galindo opened this issue Mar 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@emmanuel-galindo
Copy link

APIM-CLI version

1.14.4

API-Management version

7.7.20231130

Bug description

For an APi that's just downloaded (w/the -useFE flag), and then imported back, it throws:

2024-03-12 15:18:36,992 [APIImportManager] INFO : Is Breaking changes : false Enforce Breaking changes : false
2024-03-12 15:18:36,993 [APIImportManager] DEBUG: Apply breaking changes: [outboundProfiles, serviceProfiles] & and Non-Breaking: [], for unpublished
2024-03-12 15:18:36,993 [APIImportManager] INFO : Update API Strategy: All changes can be applied in current state.

And then
2024-03-12 15:18:38,180 [APIManagerAPIMethodAdapter] DEBUG: 35b0835e-90c7-4000-b972-a45c93e41040 - a343575c-5f29-4c10-91a2-5df8f73225d5
2024-03-12 15:18:38,185 [UpdateExistingAPI] ERROR: Error updating existing API
com.axway.apim.lib.error.AppException: No operation found with name: 'a343575c-5f29-4c10-91a2-5df8f73225d5'
at com.axway.apim.adapter.apis.APIManagerAPIMethodAdapter.getMethodForName(APIManagerAPIMethodAdapter.java:82)
at com.axway.apim.adapter.apis.APIManagerAPIAdapter.translateMethodIds(APIManagerAPIAdapter.java:356)
at com.axway.apim.adapter.apis.APIManagerAPIAdapter.translateMethodIds(APIManagerAPIAdapter.java:254)
at com.axway.apim.adapter.apis.APIManagerAPIAdapter.translateMethodIds(APIManagerAPIAdapter.java:233)
at com.axway.apim.adapter.apis.APIManagerAPIAdapter.updateAPIProxy(APIManagerAPIAdapter.java:577)
at com.axway.apim.apiimport.actions.UpdateExistingAPI.execute(UpdateExistingAPI.java:55)
at com.axway.apim.apiimport.APIImportManager.applyChanges(APIImportManager.java:68)
at com.axway.apim.APIImportApp.importAPI(APIImportApp.java:93)
at com.axway.apim.APIImportApp.importAPI(APIImportApp.java:52)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.axway.apim.cli.APIManagerCLI.run(APIManagerCLI.java:129)
at com.axway.apim.cli.APIManagerCLI.main(APIManagerCLI.java:72)
2024-03-12 15:18:38,190 [APIImportApp] ERROR: Error updating existing API
com.axway.apim.lib.error.AppException: Error updating existing API
at com.axway.apim.apiimport.actions.UpdateExistingAPI.execute(UpdateExistingAPI.java:89)
at com.axway.apim.apiimport.APIImportManager.applyChanges(APIImportManager.java:68)
at com.axway.apim.APIImportApp.importAPI(APIImportApp.java:93)
at com.axway.apim.APIImportApp.importAPI(APIImportApp.java:52)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.axway.apim.cli.APIManagerCLI.run(APIManagerCLI.java:129)
at com.axway.apim.cli.APIManagerCLI.main(APIManagerCLI.java:72)

If introducing a change (a new tag), it informs:
2024-03-12 15:23:52,848 [APIImportManager] INFO : Is Breaking changes : false Enforce Breaking changes : false
2024-03-12 15:23:52,848 [APIImportManager] DEBUG: Apply breaking changes: [outboundProfiles] & and Non-Breaking: [tags], for unpublished
2024-03-12 15:23:52,849 [APIImportManager] INFO : Update API Strategy: All changes can be applied in current state.
2024-03-12 15:23:52,851 [UpdateExistingAPI] INFO : Update existing unpublished API: (IT EDS) API Management API 2.0 (ID: 35b0835e-90c7-4000-b972-a45c93e41040)
2024-03-12 15:23:52,852 [APIChangeState] INFO : Updating Frontend-API (Proxy) for the following properties: tags outboundProfiles

Steps to reproduce

Sharing data on a private email

Relevant log output

No response

@emmanuel-galindo emmanuel-galindo added the bug Something isn't working label Mar 12, 2024
@rathnapandi rathnapandi self-assigned this Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants