Daily Log for #alfresco IRC Channel

Alfresco discussion and collaboration. Stick around a few hours after asking a question.

Official support for Enterprise subscribers: support.alfresco.com.

Joining the Channel:

Join in the conversation by getting an IRC client and connecting to #alfresco at Freenode. Our you can use the IRC web chat.

More information about the channel is in the wiki.

Getting Help

More help is available in this list of resources.

Daily Log for #alfresco

2018-03-28 06:28:35 GMT <twen> hello

2018-03-28 07:10:00 GMT <kkore> hi how to get the property title with property name through java API

2018-03-28 07:31:15 GMT <kkore> I am using dictionaryservices.getType(Qname) qname passing as {http://www.alfresco.org/model/content/1.0}modified there it returning null

2018-03-28 07:31:39 GMT <kkore> for getting title of modified with qname

2018-03-28 07:39:13 GMT <kkore> like I am trying get cm:modified as Modified

2018-03-28 07:53:11 GMT <AFaust> kkore: cm:modified is a property, so dictionaryService.getProperty(QName) would be more appropriate...

2018-03-28 08:04:36 GMT <kkore> Thanks AFaust I tried for property but I am using type

2018-03-28 08:05:02 GMT <AFaust> Why, if it is wrong and will not work?

2018-03-28 09:10:59 GMT <kkore> AFaust:now able to get all property titles

2018-03-28 12:46:46 GMT <xkahn> AFaust: Where is your patch to fix the <include.../> issue with Data Dictionary Javascript? We are starting to look at trying to analyze our JS files and this is a sticking point.

2018-03-28 12:47:45 GMT <xkahn> errr... <import

2018-03-28 12:49:03 GMT <xkahn> ah. Found it: https://github.com/AFaust/alfresco-enhanced-script-environment

2018-03-28 12:49:04 GMT <alfbot> Title: GitHub - AFaust/alfresco-enhanced-script-environment (at github.com)

2018-03-28 12:50:17 GMT <AFaust> xkahn: Well - it isn't so much a patch as a new API

2018-03-28 12:50:36 GMT <xkahn> AFaust: It requires rebuilding Alfresco, IIRC?

2018-03-28 12:50:43 GMT <AFaust> No

2018-03-28 12:51:15 GMT <xkahn> Oh! Interesting.

2018-03-28 12:51:43 GMT <xkahn> The links to the "install" or "building" ... or anything else in the README don't work. :)

2018-03-28 12:52:17 GMT <AFaust> I haven't update that project in quite a while - been working on the Nashorn alternative whenever I had time

2018-03-28 12:52:41 GMT <AFaust> The links were created as dummies / TODOs..

2018-03-28 12:53:04 GMT <AFaust> Correction - the wiki pages actually exist

2018-03-28 12:53:10 GMT <AFaust> Somehow the links got broken

2018-03-28 12:53:11 GMT <xkahn> AFaust: I know! I saw that.

2018-03-28 12:53:14 GMT <AFaust> https://github.com/AFaust/alfresco-enhanced-script-environment/wiki

2018-03-28 12:53:15 GMT <alfbot> Title: Home · AFaust/alfresco-enhanced-script-environment Wiki · GitHub (at github.com)

2018-03-28 12:54:49 GMT <AFaust> The new import API is provided by https://github.com/AFaust/alfresco-enhanced-script-environment/blob/master/framework/common/src/main/java/de/axelfaust/alfresco/enhScriptEnv/common/script/functions/RhinoImportScriptFunction.java

2018-03-28 12:54:50 GMT <alfbot> Title: alfresco-enhanced-script-environment/RhinoImportScriptFunction.java at master · AFaust/alfresco-enhanced-script-environment · GitHub (at github.com)

2018-03-28 12:57:35 GMT <AFaust> And this is how the import would look in a file: https://github.com/AFaust/alfresco-enhanced-script-environment/blob/master/patch-modules/repository/src/main/webscripts/org/alfresco/slingshot/documentlibrary-v2/doclist.get.js

2018-03-28 12:57:36 GMT <alfbot> Title: alfresco-enhanced-script-environment/doclist.get.js at master · AFaust/alfresco-enhanced-script-environment · GitHub (at github.com)

2018-03-28 12:58:35 GMT <AFaust> Essentially, the addon replaces the default Rhino script processor with an enhanced variant

2018-03-28 13:00:44 GMT <AFaust> But with regards to JS validation, there are simpler means to deal with this than use a custom import feature

2018-03-28 13:02:07 GMT <AFaust> My approach is generally the following: a *.get.js / *.post.json.js web script does nothing more than import library JS and call an entry method and is excluded from validation - the imported library JS contain all the logic and are properly validated, without any import sections standing in the way

2018-03-28 13:02:55 GMT <AFaust> We use that approach in the OOTBee Support Tools addon

2018-03-28 13:02:59 GMT <AFaust> i.e. web script: https://github.com/OrderOfTheBee/ootbee-support-tools/blob/master/repository/src/main/amp/config/alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/active-sessions-users.get.js

2018-03-28 13:03:00 GMT <alfbot> Title: ootbee-support-tools/active-sessions-users.get.js at master · OrderOfTheBee/ootbee-support-tools · GitHub (at github.com)

2018-03-28 13:03:18 GMT <AFaust> and library: https://github.com/OrderOfTheBee/ootbee-support-tools/blob/master/repository/src/main/amp/config/alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/active-sessions.lib.js

2018-03-28 13:03:19 GMT <alfbot> Title: ootbee-support-tools/active-sessions.lib.js at master · OrderOfTheBee/ootbee-support-tools · GitHub (at github.com)

2018-03-28 13:03:54 GMT <AFaust> I use a JSHint-based Maven plugin for validation: https://github.com/OrderOfTheBee/ootbee-support-tools/blob/master/repository/pom.xml#L94

2018-03-28 13:03:55 GMT <alfbot> Title: ootbee-support-tools/pom.xml at master · OrderOfTheBee/ootbee-support-tools · GitHub (at github.com)

2018-03-28 15:29:12 GMT <resplin> digcatt: Regarding the broken nightly builds

2018-03-28 15:29:36 GMT <resplin> This week's release of Alfresco Community Edition will be our first one to DockerHub.

2018-03-28 15:29:47 GMT <resplin> I'm told there will be a nightly image pushed that people can use.

2018-03-28 15:29:59 GMT <resplin> Hopefully that is easy to accept as the basis for Honeycomb Nightly.

2018-03-28 15:37:47 GMT <MartinM_> Hi guys. This chat seems a bit weird. I guess it disconnects me very easily or it is just my imagination? I access is with a browser calling https://webchat.freenode.net/

2018-03-28 15:37:48 GMT <alfbot> Title: freenode Web IRC (qwebirc) (at webchat.freenode.net)

2018-03-28 15:37:58 GMT <MartinM_> anyone else noticed that too?

2018-03-28 15:50:03 GMT <resplin> I found the webclient to be unreliable that way. I suspect that the browser does some sort of memory management or cleanup of background tabs and then disconnects.

2018-03-28 15:50:12 GMT <resplin> I find a dedicated IRC client works much better.

2018-03-28 16:05:22 GMT <MartinM_> Thanks richard

End of Daily Log

The other logs are at http://esplins.org/hash_alfresco