Recently Design Automation team made an improvement related to Data URI, it will URL Decode the data of URI in argument now, and it applies to all the Design Automation engines including AutoCAD, Inventor, Revit, 3ds Max.
Previously, the Design Automation will not do any URL decode for the URI data, take the 2 input parameters in the following workitem for example:
- inputJson-1 includes a key of fileName, and the value is url encoded.
- inputJson-2 includes reserved character and url-encoded character mixed.
They will not be decoded while saving to local file, and it can't be read out correctly by the addin unless your plugin decodes it first.
From now on, Design Automation will URL decode the "data" part of the URI when handling the WorkItem payloads.
Most customers should not be affected by this change and don't need to take any action for the existing workflows. This change may help succeed the WorkItems with data URI such as inputJson-1.
We now require that clients' Data URI be compliant with rfc2397 and the "data" part of the URI to be URL encoded, especially:
- If their WIs start to fail due to unencoded data URI (such as inputJson-2).
- Start new workflows with data URI as inputs