api-manager
api-manager copied to clipboard
Application Export causing remove all the subscriptions in other applications as well
Description
Create 2 applications ( Ap1 , Ap2 ) . and 2 apis . Subscribe both apis from both applications Export Ap1 application Ex : curl -k -H "Authorization: Bearer 235f9e43-1f98-33b4-82b4-ba92dd0c8f12" "https://127.0.0.1:9443/api/am/admin/v1/export/applications?appName=app3&appOwner=admin&withKeys=true" > exported-application.zip
Import the same application Ap1 curl -k -X POST -H "Authorization: Bearer 962f3e13-9909-3c0b-a3cc-9b5e0f5b7dd6" -F [email protected] "https://127.0.0.1:9443/api/am/admin/v1/import/applications?preserveOwner=true&skipSubscriptions=false&appOwner=admin&skipApplicationKeys=false&update=true"
While importing Ap1 , behind the scenes following happens delete existing subscription , add new subscription But , also it delete all the subscription from other applications ( Ap2 ) as well
Steps to Reproduce
Create 2 applications ( Ap1 , Ap2 ) . and 2 apis . Subscribe both apis from both applications Export Ap1 application Ex : curl -k -H "Authorization: Bearer 235f9e43-1f98-33b4-82b4-ba92dd0c8f12" "https://127.0.0.1:9443/api/am/admin/v1/export/applications?appName=app3&appOwner=admin&withKeys=true" > exported-application.zip
Import the same application Ap1 curl -k -X POST -H "Authorization: Bearer 962f3e13-9909-3c0b-a3cc-9b5e0f5b7dd6" -F [email protected] "https://127.0.0.1:9443/api/am/admin/v1/import/applications?preserveOwner=true&skipSubscriptions=false&appOwner=admin&skipApplicationKeys=false&update=true"
While importing Ap1 , behind the scenes following happens delete existing subscription , add new subscription But , also it delete all the subscription from other applications ( Ap2 ) as well .
Affected Component
APIM
Version
3.2.0/3.2.1
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response