Assets, which do not start with a /, are not properly encoded with the AssetEncoder when using Friendly URL's.
When injecting a script, inside of the Classpath via the @InjectScript, we are seeing that the path is a relative path. IE, "com/company/components/ColorPicker.script". There is no / like on the Form component for its external script injections. In the asset encoder.
The asset encoder assumes that the path starts with a /. You will then get the digest and the path collide because there is no seperator. There needs to be a check somewhere for this.
AssetEncoder.java, Line 49
// _path ends with a slash, path starts with one.
// simple workaround, aviods copying path and uses literals
String pathSeperator = "";
if (!path.startsWith("/")) pathSeperator = "/";
String fullPath = _path + "/" + digest + pathSeperator + path;
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|190d 20h 59m||1||Jesse Kuhnert||08/Dec/06 04:16|
|Workflow||Default workflow, editable Closed status [ 12567774 ]||jira [ 12590902 ]|
|Workflow||jira [ 12372602 ]||Default workflow, editable Closed status [ 12567774 ]|
|Resolution||Fixed [ 1 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Field||Original Value||New Value|
|Fix Version/s||4.1.1 [ 12312021 ]|