You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issues when trying to export and import a SOAP API using the apictl tool which contains a document containing spaces for the name,
Steps to Reproduce
Login to the publisher:
Create a SOAP API by importing WSDL file in the publisher
Add an inline documentation with the name containing a space ex :- "test name" and add some content to it.
Login to the particular environment using apictl:
apictl login dev --username xxxxx --password xxxxxx -k
Export the API from the particular environment:
apictl export api -in testApi -v v1 -e dev --preserve-status=true --format JSON -k
Delete the api from the publisher portal
Import the API to the dev environment using apictl:
apictl import api -f dev/testApi.zip -e dev -k
After the import the following error log could be observed.
and the document cannot be observed through dev portal nor publisher portal
ID: [-1234] [api/am/publisher] [2023-09-12 11:16:58,488] ERROR {org.wso2.carbon.apimgt.rest.api.publisher.v1.common.mappings.ImportUtils} - Failed to locate the document files of the API/API Product: testApi java.io.FileNotFoundException: (The system cannot find the file specified)
After testing the behaviour locally it was concluded that the issue happens when a name with spaces is used to name the documents added to the API.
Affected Component
APIM
Version
4.1.0.105
Environment Details (with versions)
No response
Relevant Log Output
ID: [-1234] [api/am/publisher] [2023-09-12 11:16:58,488] ERROR {org.wso2.carbon.apimgt.rest.api.publisher.v1.common.mappings.ImportUtils} - Failed to locate the document files of the API/API Product: testApi java.io.FileNotFoundException: <File path ommited> (The system cannot find the file specified)
Related Issues
No response
Suggested Labels
No response
The text was updated successfully, but these errors were encountered:
Description
Issues when trying to export and import a SOAP API using the apictl tool which contains a document containing spaces for the name,
Steps to Reproduce
Login to the publisher:
Create a SOAP API by importing WSDL file in the publisher
Add an inline documentation with the name containing a space ex :- "test name" and add some content to it.
Login to the particular environment using apictl:
apictl login dev --username xxxxx --password xxxxxx -k
Export the API from the particular environment:
apictl export api -in testApi -v v1 -e dev --preserve-status=true --format JSON -k
Delete the api from the publisher portal
Import the API to the dev environment using apictl:
apictl import api -f dev/testApi.zip -e dev -k
After the import the following error log could be observed.
and the document cannot be observed through dev portal nor publisher portal
ID: [-1234] [api/am/publisher] [2023-09-12 11:16:58,488] ERROR {org.wso2.carbon.apimgt.rest.api.publisher.v1.common.mappings.ImportUtils} - Failed to locate the document files of the API/API Product: testApi java.io.FileNotFoundException: (The system cannot find the file specified)
After testing the behaviour locally it was concluded that the issue happens when a name with spaces is used to name the documents added to the API.
Affected Component
APIM
Version
4.1.0.105
Environment Details (with versions)
No response
Relevant Log Output
Related Issues
No response
Suggested Labels
No response
The text was updated successfully, but these errors were encountered: