When using the 'Create New Project' from the Workstation and using a MAR file that was generated by curl and DevTest 10.5 API, the create fails with the following error:
Unable to create a new project.
Our audit file is either missing or we are not a model archive or are corrupt.
Release : 10.5
Component : CA Application Test
If base64=true is used in the curl command, then this results in a file with printable characters and this will be an invalid zip file.
The MAR file should be a valid zip file, so check if the file can be unzipped.
One way to check this is by renaming the .mar to .zip
In that case Windows File Explorer should be able to open the file, even without having Winzip installed.
The unzipped .mar file should contain a folder with a project and a .maraudit and .marinfo file.
If base64=true is used in the curl command, then this results in a file with printable characters and this will be an invalid zip file.
So in the curl command, use base64=false
For example:
curl -u admin:admin -X GET "http://localhost:1505/lisa-virtualize-invoke/api/v3/vses/VSE/services/WebServicesModel?base64=false" -H "accept: application/zip" --output vs.mar
If the .mar file can be opened with an editor and contains the following:
<?xml version="1.0" encoding="UTF-8"?>
<Error id="401" message="Authorization failed">
</Error>
Then this indicates there was a missing or invalid userid and password.