share-extras / js-console

Administration Console component for Alfresco Share, that enables the execution of arbitrary JavaScript code against the repository
Other
74 stars 53 forks source link

ACS 7.0: JavaScript Console breaks due to missing / incomatible Apache Commons Lang dependency #96

Closed AFaust closed 3 years ago

AFaust commented 3 years ago

When installing the 0.6 release version from Maven Central on ACS 7.0, execution of scripts within the JavaScript Console fail due to

Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils
      at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1372)
      at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1195)
      ... 123 more

ACS 7.0 no longer includes commons-lang - instead, commons-lang3 is included which provides the same utility in a different package, and may have already been available in previous ACS versions, as the package rename was intended to allow both library versions to sit side-by-side. Ideally, going forward, this unnecessary dependency (only exists for simple isBlank/isEmpty checks that can be easily done without it) should be dropped entirely.