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

Application download fails if multiple SharePermissions are assigned #389

Closed
lreeb opened this issue Apr 28, 2023 · 2 comments
Closed

Application download fails if multiple SharePermissions are assigned #389

lreeb opened this issue Apr 28, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@lreeb
Copy link

lreeb commented Apr 28, 2023

APIM-CLI version

1.13.3

API-Management version

7.7.20211130

Bug description

I have an application with multiple SharePermissions, all users have permission "manage". After upgrading to the newest APIM-CLI, I can't download the application data with apim app get any longer, with the error message:
Cannot coerce empty String ("") to 'com.axway.apim.api.model.apps.ApplicationPermission$SharePermission' value

However if I delete all but one user from the "Sharing" permissions, it works without error.

Steps to reproduce

  • Create an application "my-application" in Axway Manager UI
  • In "Sharing", specify multiple users with permission "Manage"
  • Try to download this application via apim app get --output json --name "my-application"

Relevant log output

Error reading application permissions. Error: Cannot coerce empty String ("") to `com.axway.apim.api.model.apps.ApplicationPermission$SharePermission` value (but could if coercion was enabled using `CoercionConfig`)
@lreeb lreeb added the bug Something isn't working label Apr 28, 2023
@rathnapandi
Copy link
Member

Hi @lreeb,
It's working fine on the latest CLI version with APIM release 7.7.20221130.
Can you test it with the latest CLI version (1.13.7)?

@rathnapandi rathnapandi self-assigned this Apr 28, 2023
@lreeb
Copy link
Author

lreeb commented Apr 29, 2023

Hi @rathnapandi,
Thanks for the quick response. I can confirm that it works with the latest version 1.13.7, so closing this issue!

@lreeb lreeb closed this as completed Apr 29, 2023
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