[OOTB-hive] Call for contribution: Let's build a comprehensive module of bug patches!

Benjamin Kahn xkahn at zoned.net
Thu Aug 25 14:41:29 BST 2016

Okay. Here is a proposed addition:

Clean, extensible import API for JavaScript resources

The problem is that the import syntax for Web Scripts is not valid
Javascript. This causes problems for people who use IDEs or with syntax
validation checkers.

As a reminder, the current syntax is:
<import resource="classpath:/alfresco/templates/org/alfresco/import/alfresco-util.js">

Axel proposes two alternatives:
importScript("legacy", "classpath:/alfresco/templates/webscripts/org/alfresco/repository/forms/pickerresults.lib.js", true);

importScript("classpath:/alfresco/templates/org/alfresco/import/alfresco-util.js", true);

Others propose simply allowing the import to still work when commented out:
//<import resource="classpath:/alfresco/templates/org/alfresco/import/alfresco-util.js">
//+<import resource="classpath:/alfresco/templates/org/alfresco/import/alfresco-util.js">

The last comment in the bug is:
    Ok - the confusion may be due to the fact that there are two distinct
    implementation of ScriptResourceHelper in Alfresco - one in Surf and
    one on Repository tier. The Surf one has been fixed and the change is
    in both 5.0.d and 5.0.1. The Repository tier one has not been changed
    / adapted.

So it's already been accepted into Alfresco, but only in Surf. Should
this repo accept this patch so code analysis can operate over more of
the source?

On Thu, 2016-08-25 at 12:04 +0200, Lutz Horn wrote:
> Hi bees,
> on Wednesday, we head a nice discussion on #alfresco about how to 
> collect patches for bugs in Alfresco. To move things forward, we have 
> created a GitHub project to collect patches:
> https://github.com/ecm4u/ecm4u-alfresco-bugpatches
> Right now the project contains only one single patch, but we will add 
> more soon.
> Please join us in this effort. Write issues, propose additions, send
> us 
> merge requests!
> We consider it important to have one module available that patches
> all 
> those bugs that Alfresco sadly is sometimes slow to fix.
> Right now the module is build to work with Alfresco 5.1e CE but we
> can 
> expand the project to provide patches for other Alfresco versions.
> Regards
> Lutz

More information about the OOTB-hive mailing list