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

API with star (*) on the name fails to be exported #467

Closed
emmanuel-galindo opened this issue Mar 12, 2024 · 1 comment
Closed

API with star (*) on the name fails to be exported #467

emmanuel-galindo opened this issue Mar 12, 2024 · 1 comment
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

If feAPI has star/asterisk (*) char on the name, when running "apim api get -o json" in windows, it fails with this error:
2024-03-12 14:59:26,198 [ExportHelper] DEBUG: Going to export API: (XX) API ** OLD** into folder: C:\Users\emgalin\dev\projects\apim-changelist\backup\20240311221747\e3debecd-3863-42e2-8f1c-ec453c45f180\api-old
2024-03-12 14:59:26,206 [APIExportApp] ERROR: Can't save API-Definition locally to file: C:\Users\emgalin\dev\projects\apim-changelist\backup\20240311221747\e3debecd-3863-42e2-8f1c-ec453c45f180\api-old/(XX) API ** OLD**.json
| Can't write file
com.axway.apim.lib.error.AppException: Can't save API-Definition locally to file: C:\Users\emgalin\dev\projects\apim-changelist\backup\20240311221747\e3debecd-3863-42e2-8f1c-ec453c45f180\api-old/(XX) API ** OLD**.json
at com.axway.apim.api.export.impl.ExportHelper.saveAPILocally(ExportHelper.java:66)
at com.axway.apim.api.export.impl.JsonAPIExporter.execute(JsonAPIExporter.java:32)
at com.axway.apim.APIExportApp.execute(APIExportApp.java:184)
at com.axway.apim.APIExportApp.exportAPI(APIExportApp.java:47)
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)
Caused by: com.axway.apim.lib.error.AppException: Can't write file
at com.axway.apim.api.export.impl.ExportHelper.writeBytesToFile(ExportHelper.java:152)
at com.axway.apim.api.export.impl.ExportHelper.saveAPILocally(ExportHelper.java:62)
... 9 more
Caused by: java.io.FileNotFoundException: C:\Users\emgalin\dev\projects\apim-changelist\backup\20240311221747\e3debecd-3863-42e2-8f1c-ec453c45f180\api-old(XX) API ** OLD**.json (The filename, directory name, or volume label syntax is incorrect)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(FileOutputStream.java:298)
at java.base/java.io.FileOutputStream.(FileOutputStream.java:237)
at java.base/java.io.FileOutputStream.(FileOutputStream.java:126)
at com.axway.apim.api.export.impl.ExportHelper.writeBytesToFile(ExportHelper.java:149)
... 10 more

Steps to reproduce

No response

Relevant log output

No response

@emmanuel-galindo emmanuel-galindo added the bug Something isn't working label Mar 12, 2024
rathnapandi pushed a commit that referenced this issue Mar 12, 2024
@rathnapandi
Copy link
Member

Fixed in 1.14.4

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