Permissions After SCM File Download
Permissions Not As Expected After Downloading File
The Download Instruction of an SCM package for the ThingWorx Platform differs in behavior from the Download Instruction of an SCM package for the Axeda Platform. On the Axeda Platform, a Download Instruction compresses the file to download by default unless the user explicitly checks a box stating not to compress the file before downloading. The compression results in the permissions that were set on the file before the file was compressed being retained after the download. On the ThingWorx Platform, there is no option to compress the file before downloading and the file is transferred uncompressed. As a result, when a Download Instruction sent from ThingWorx completes, the permissions to the file after it is downloaded to the asset are the same as if you chose not to compress the file on Axeda Platform. Downloading from Axeda Platform without compression provides only read and write access to the user context of the user who started the Axeda agent.
Workaround
To workaround this limitation on ThingWorx, you can manually compress the file using tar.gz before including it in your SCM package. When adding the Download Instruction to your SCM package, select the "Agent should uncompress this file after downloading" check box.
Was this helpful?