Automic Workload Automation

 View Only
  • 1.  Automic Downloads REST API provides invalid download_file_id

    Posted 24 days ago
    Edited by Michael A. Lowry 24 days ago

    Today I used the Automic Downloads REST API to fetch the most recent version of the AWI, v24.2. (Note that I have omitted the required authorization header from the curl commands below.)

    curl --location 'https://downloads.automic.com/api/downloads/v1?component_id=1409143059253&download_category_id=1570005424185&version_match=24.2.0&delivery_filter=Automic.Web.Interface'
    

    This returned the following JSON body (omitting the web-user-group and help sections):

    {
    	"download_category_id": "1570005424185",
    	"download_category_name": "Components",
    	"link": "https://downloads.automic.com/api/downloads/v1?download_category_id=1570005424185",
    	"component": [
    		{
    			"component_id": "1409143059253",
    			"component_name": "Automation.Engine",
    			"component_technical_name": "AE",
    			"link": "https://downloads.automic.com/api/downloads/v1?download_category_id=1570005424185&component_id=1409143059253",
    			"download_file": [
    				{
    					"filename": "Automation.Engine_Automic.Web.Interface_24_2_0+build.1724413462522.zip",
    					"delivery_id": "1600635055942",
    					"delivery_name": "Automic.Web.Interface",
    					"release_date": "2024-09-16",
    					"component_version_id": "1709818041789",
    					"filehash": "0xD48BE5C90DCBACE6B1405216DBC9F815",
    					"download_file_id": "1724354927919",
    					"product_version_id": "",
    					"component_name": "Automation.Engine",
    					"component_technical_name": "AE",
    					"component_version_name": "Automation.Engine 24.2.0",
    					"link": "https://downloads.automic.com/api/downloads/v1?download_file_id=1724354927919",
    					"download_link": "https://downloads.automic.com/api/downloads/v1?action=get&download_file_id=1724354927919"
    				}
    			]
    		}
    	]
    }
    

    I then tried to use the provided download_link to fetch the file with download_file_id 1724354927919.

    curl -X GET https://downloads.automic.com/api/downloads/v1?action=get&download_file_id=1724354927919 -O -J

    This resulted in an error message:

    to download the file add the URL parameter action=get

    I went to the Automic Downloads web site to see if it was impacted by the same problem.

    The list of downloads for AWI v24.2 looks like this:

    Date Title Filename MD5 Checksum
    2024-09-16 Automation.Engine 24.2.0 
    Automic Web Interface
     Automation.Engine_Automic.Web.Interface_24_2_0+build.1726067422287.zip (148.26 MiB) D4ECD14B8DB5DD59920A4300A9E3CF12

    Note that the file name, file ID (1725356811811), and MD5 hash are different from the ones provided by the REST API.

    I went back and tried to use the REST API to download the file with ID provided by the web page (1725356811811).

    curl -X GET https://downloads.automic.com/api/downloads/v1?action=get&download_file_id=1725356811811 -O -J

    This worked fine.

    So there appear to be at least two problems:

    1. When asked for downloads for AWI v24.2, the REST API returns an invalid download_file_id, file_name, and download_link.
    2. When provided with an invalid download_file_id, the REST API returns a misleading error message.


  • 2.  RE: Automic Downloads REST API provides invalid download_file_id

    Posted 24 days ago
    Edited by Michael A. Lowry 24 days ago

    The first problem has been fixed. Thanks to Lukas @ Broadcom for the quick fix.