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

2017-05-02 06:24:16 GMT <twen> bonjour

2017-05-02 07:54:48 GMT <alfbot> IanW1: Sent 3 weeks, 1 day, 11 hours, and 48 minutes ago: <yreg> ping

2017-05-02 08:17:37 GMT <Tichodroma> Does anybody use the SDK 3.0 for building a JAR module for multiple Alfresco versions *and* deploying and releasing all build artifacts to Nexus/Artifactory and the SCM?

2017-05-02 08:18:54 GMT <Tichodroma> Of course I can define profiles that sets the alfreso.platform.version Maven property to different values. I can even use the maven-jar-plugin to deploy the JAR a second time using a classifier.

2017-05-02 08:19:51 GMT <Tichodroma> But these are manual steps: select profile 5.0.d, build/deploy, select profile 5.2.f, build/deploy. The Maven release plugin only does one of these :(

2017-05-02 08:20:02 GMT <Tichodroma> Any experience or hints?

2017-05-02 09:00:19 GMT <mrks_js> hi y'all

2017-05-02 09:18:57 GMT <bmejias> hi mrks_js

2017-05-02 09:19:04 GMT <bmejias> how was that trip back?

2017-05-02 09:19:16 GMT <bmejias> I think it's a great idea to have a long way right after the conference...

2017-05-02 09:19:23 GMT <bmejias> we should take note for next year :D

2017-05-02 09:25:37 GMT <mbui> Good morning, is the slides from BeeCon 2017 available somewhere?

2017-05-02 09:28:47 GMT <alfbot> ohej: Sent 2 weeks, 0 days, 1 hour, and 38 minutes ago: <yreg> ping

2017-05-02 09:29:13 GMT * ohej feels sad.. has it been two weeks?! :O

2017-05-02 09:29:29 GMT <ohej> ~later tell yreg pong.. (two weeks later) :P

2017-05-02 09:29:29 GMT <alfbot> ohej: The operation succeeded.

2017-05-02 09:29:52 GMT <ohej> Tichodroma: about your maven release plugin question

2017-05-02 09:30:18 GMT <ohej> you should be able to do something like: mvn release:prepare -Darguments="-Dalfresco.platform.version=5.2.f"

2017-05-02 09:34:56 GMT <angelborroy> fcorti why in this page https://community.alfresco.com/docs/DOC-6847-alfresco-community-edition-file-list-201704 is there a link for 201702?

2017-05-02 09:34:58 GMT <alfbot> Title: Alfresco Community Edition file list 201704 | Alfresco Community (at community.alfresco.com)

2017-05-02 09:35:06 GMT <angelborroy> is it right?

2017-05-02 09:39:57 GMT <Modestas> ohej: did you separated solr from all-in? in sdk3?

2017-05-02 09:40:55 GMT <Modestas> guys it is possible to write CMIS query to check parentOf ?

2017-05-02 09:42:37 GMT <Modestas> I have 5 levels depth tree and want to check if child is parent of using one CMIS query.

2017-05-02 09:50:56 GMT <Tichodroma> ohej: yes, that is possible to prepare the release for a single Alfresco version. But what if I want to release the module for multiple Alfresco versions at the same time? Is this even possible with Maven?

2017-05-02 10:01:30 GMT <AFaust> ~later tell eswbitto: Regarding your question from last week (27th). I do know someone who has implemented clustering on Community Edition recently...

2017-05-02 10:01:30 GMT <alfbot> AFaust: The operation succeeded.

2017-05-02 10:05:44 GMT <fcorti> hi angelborroy, happy to see you active again after the huge deal of the beecon

2017-05-02 10:05:45 GMT <fcorti> :-)

2017-05-02 10:05:52 GMT <fcorti> Let me check the links...

2017-05-02 10:05:57 GMT <Modestas> AFaust: Hi

2017-05-02 10:05:59 GMT <angelborroy> I’ve written a comment

2017-05-02 10:06:16 GMT <Modestas> AFaust: is it possible to write a CMIS query to check parentOf

2017-05-02 10:06:19 GMT <angelborroy> fcorti just wanted to know that it was wrong before writing it public

2017-05-02 10:06:30 GMT <Modestas> if tree depth is at least 5 nodes in depth?

2017-05-02 10:06:34 GMT <AFaust> ~later tell eswbitto: One question before considering clustering - independent of Enterprise vs. Community Edition - should be: Why do you think you need it? Though I am very confident of the module for Community Edition, the complexity should only be added if all "regular" options to scale have been exhausted or the case specifically requires it e.g. for failover/redundancy

2017-05-02 10:06:34 GMT <alfbot> AFaust: The operation succeeded.

2017-05-02 10:07:23 GMT <fcorti> angelborroy I think it's an error... I'm asking to adjust the content

2017-05-02 10:07:25 GMT <AFaust> Modestas: You can only do an IN_FOLDER check with CMIS against the DB (or SOLR) for a single level, while an IN_TREE check against SOLR will allow you to check for any level

2017-05-02 10:07:48 GMT <AFaust> There is no way to specify "at least 5 level deep"

2017-05-02 10:08:05 GMT <Modestas> so it is possible to check only direct parent?

2017-05-02 10:08:24 GMT <AFaust> You could technically do that with a PATH query in FTS though using wildcards for the 5 minimum levels...

2017-05-02 10:08:48 GMT <AFaust> As I said, you can check direct parent (IN_FOLDER) against DB or SOLR, and IN_TREE only against SOLR

2017-05-02 10:08:54 GMT <Modestas> please give me more information

2017-05-02 10:09:01 GMT <Modestas> about path

2017-05-02 10:09:01 GMT <AFaust> If you have to use DB query, then you are limited to IN_FOLDER

2017-05-02 10:09:27 GMT <AFaust> What information do you need about PATH? How to use it? I advise to check the documentation for that...

2017-05-02 10:10:46 GMT <Modestas> AFaust: sample would help a lot :)

2017-05-02 10:10:56 GMT <Modestas> simple query sample

2017-05-02 10:11:00 GMT <AFaust> Generally a PATH is based on the QName path of a node and can use wildcards as well as descendant axis (based on XPATH), e.g. PATH:"/app:company_home/cm:MyFolder/*/*/*/*/*//*" will look below the node identified by /app:company_home/cm:MyFolder with at least 5 levels of depth and any depth below that...

2017-05-02 10:11:35 GMT <Modestas> thank you!!

2017-05-02 10:12:12 GMT <AFaust> I think PATH:"/app:company_home/cm:MyFolder/*/*/*/*//*" would be more appropriate for your use case (the last wildcard should have arbitrary depth so it can start at 5 instead of 6 as the last example)

2017-05-02 10:14:10 GMT <AFaust> Tichodroma: Why do you need to build the same module for multiple Alfresco versions? Wouldn't it be sufficient to build for the base version of Alfresco? Unless you have different code bases for different Alfresco versions, in which case you should probably also have different build POMs and even distinct sub-modules in your project setup.

2017-05-02 10:14:29 GMT <AFaust> Only reason I can think of would be for integration testing...

2017-05-02 10:14:48 GMT <AFaust> But then I would not deploy each of the artifacts - only the one for the base Alfresco version...

2017-05-02 10:15:27 GMT <fcorti> angelborroy the only change from the 201702 is the release of the RM 2.5.b... but with this naming it's a little bit confusing. They are going to add a note on top of the page to explain this.

2017-05-02 10:16:10 GMT <angelborroy> I don’t think so: https://issues.alfresco.com/jira/issues/?jql=project%20%3D%20ALF%20AND%20fixVersion%20%3D%20%22Community%20Edition%20201704%20GA%22%20ORDER%20BY%20priority%20DESC%2C%20updated%20DESC

2017-05-02 10:16:20 GMT <angelborroy> fcorti I’m waiting for one of this issues...

2017-05-02 10:17:09 GMT <fcorti> The list I see here i sempty...

2017-05-02 10:18:04 GMT <angelborroy> just filter issues resolved by 201704

2017-05-02 10:18:18 GMT <angelborroy> fcorti probably direct link does now work

2017-05-02 10:18:55 GMT <fcorti> samuel confirmed me he did not rebuild the artifact for 201704

2017-05-02 10:19:07 GMT <fcorti> the addition is the RM

2017-05-02 10:19:17 GMT <fcorti> and it is external

2017-05-02 10:20:02 GMT <angelborroy> I see four issues solved by 201704

2017-05-02 10:20:08 GMT <angelborroy> ALF-21833

2017-05-02 10:20:11 GMT <angelborroy> ALF-21878

2017-05-02 10:20:15 GMT <angelborroy> ALF-21851

2017-05-02 10:20:18 GMT <angelborroy> ALF-21894

2017-05-02 10:21:08 GMT <angelborroy> we need to re-classify them or to rebuild that artifact

2017-05-02 10:23:05 GMT <Modestas> AFaust: will CMIS query with path property resolve in db search or solr search?

2017-05-02 10:23:28 GMT <AFaust> A real CMIS query does not support PATH

2017-05-02 10:23:33 GMT <AFaust> Only FTS supports it

2017-05-02 10:23:41 GMT <AFaust> And using PATH will always require use of SOLR

2017-05-02 10:24:11 GMT <AFaust> Which is why I always recommend to use metadata selectors and stop basing search on the location / path.

2017-05-02 10:24:33 GMT <Modestas> I have properties I am looking for

2017-05-02 10:25:04 GMT <Modestas> but they are not in direct relationship

2017-05-02 10:25:09 GMT <AFaust> angelborroy, fcorti: looks like you need to be logged in to see those 4 issues in the filter

2017-05-02 10:25:28 GMT <fcorti> angelborroy yes, they will be moved into the 201705... in 201704 they are not there

2017-05-02 10:29:16 GMT <fwu> hi all!

2017-05-02 10:30:31 GMT <Modestas> AFaust: is it possible to set scope for CMIS query?

2017-05-02 10:30:55 GMT <AFaust> If by "scope" you mean a context NodeRef, then no, because that would again require a PATH check...

2017-05-02 10:33:10 GMT <Modestas> so is it even possible to solve my problem without solr? I can say NodeRef from which properties should be checked

2017-05-02 10:33:38 GMT <AFaust> I don't yet fully undestand your problem to make that determination...

2017-05-02 10:33:49 GMT <Modestas> I have a tree structure

2017-05-02 10:33:53 GMT <AFaust> Also, if you already have the NodeRef, why do you need to make a search?

2017-05-02 10:34:01 GMT <Modestas> I know root NodeRef

2017-05-02 10:34:20 GMT <Modestas> and I need to find children with corresponding property

2017-05-02 10:34:57 GMT <Modestas> the tree of NodeRefs is huge sometimes it can be in millions of NodeRefs.

2017-05-02 10:35:09 GMT <AFaust> I mean, if you have a tree and need to make a search on any level of the tree, then yes, you cannot use CMIS DB query. That much is certain. But only you could know if you could simply transform your query to something different that only uses metadata instead of scope/path based on your metadata model...

2017-05-02 10:35:47 GMT <AFaust> e.g. if your tree had some kind of "tree ID" it inherits down the chain you could use that...

2017-05-02 10:36:02 GMT <AFaust> instead of having to query by root / path

2017-05-02 10:37:12 GMT <AFaust> I believe douglascrp already provided the link to my presentation from BeeCon regarding transactional metadata query. One slide specifically said to focus on metadata and - if the location is relevant - to code that location as additional metadata

2017-05-02 10:37:57 GMT <fwu> anyone can help me on this: I have 2 script files. How can I use a function in one file in the other file? Inside inline workflow script I use an import statement. But how to do inside a script file?

2017-05-02 10:39:12 GMT <AFaust> fwu: You need to be a bit more precise: What kind of script file? Client side, web script, action/rule?

2017-05-02 10:40:04 GMT <AFaust> Also, both script files on the same tier, e.g. both on Repository / Share?

2017-05-02 10:40:46 GMT <fwu> Afaust, inside the script folder in the data dictionary folder

2017-05-02 10:40:59 GMT <AFaust> Generally, you can only import script files via <import...> when they are executed within a server-side environment, so that means Repository web scripts, workflow scripts, actions/rules or Share web scripts / page controllers.

2017-05-02 10:41:30 GMT <AFaust> Ok - so Repository-tier server-side scripts then... Then you can also use <import...>

2017-05-02 10:42:01 GMT <fwu> Afaust, yes I can do that in Workflow inline javascript

2017-05-02 10:42:28 GMT <AFaust> And in those other cases I have mentioned (including the case of your current question)

2017-05-02 10:43:48 GMT <fwu> if I use an import statment inside the script it doesnt throw an error, hoever, the function is not recognized

2017-05-02 10:50:51 GMT <AFaust> How are you importing the script file, e.g. what does your import statement look like?

2017-05-02 10:52:48 GMT <fwu> Afaust, in the first line of the script I have this:

2017-05-02 10:53:23 GMT <fwu> <import resource="/Company Home/Data Dictionary/Scripts/genericscript.v1.js">

2017-05-02 10:54:29 GMT <fwu> then in the second file I just use the function by name, as if I was in the same file.

2017-05-02 10:55:50 GMT <Tichodroma> AFaust: Unless you have different code bases for

2017-05-02 10:56:25 GMT <Tichodroma> AFaust: "Unless you have different code bases for different Alfresco versions". Yes, this can happen. Maybe you are right that in this case it is not the same module anymore.

2017-05-02 10:57:28 GMT <AFaust> I have this case for my cache/cluster one where I now have a specific branch / module for Alfresco 4.2

2017-05-02 10:57:46 GMT <AFaust> This has a distinct group + artifact ID as well

2017-05-02 10:58:46 GMT <AFaust> fwu: So the function is in genericscript.v1.js and you call it from the script that has the <import>?

2017-05-02 10:59:26 GMT <fwu> yes

2017-05-02 10:59:44 GMT <fwu> only the import function doesnt throw the error

2017-05-02 10:59:45 GMT <AFaust> The import looks fine in general, but be aware that this path-based import may not work on other systems that have not used English as the locale during the first startup

2017-05-02 11:00:27 GMT <AFaust> The <import> should always throw an error if the file cannot be imported, so the fact that it does not throw one means it probably is imported correctly and something else is not working out as you had planned...

2017-05-02 11:01:01 GMT <fwu> ok. At least it means it should work.

2017-05-02 11:01:10 GMT <fwu> I was thinking that maybe this couldnt be done

2017-05-02 11:01:43 GMT <fwu> I can set a less complex function to test it

2017-05-02 11:15:48 GMT <fwu> AFaust, it seems the import is throwing an error ... very strange

2017-05-02 11:15:55 GMT <fwu> this error:

2017-05-02 11:15:59 GMT <fwu> 2017-05-02 12:14:25,493 ERROR [repo.action.AsynchronousActionExecutionQueueImpl] [defaultAsyncAction8] Failed to execute asynchronous action: Action[ id=d6d88e0d-6cac-4971-b076-6a935e2855d0, node=workspace://SpacesStore/d6d88e0d-6cac-4971-b076-6a935e2855d0 ]: syntax error (workspace://SpacesStore/69a2932b-30a8-491a-aa70-fda62c20ca79#5) org.alfresco.scripts.ScriptException: 04020279 Failed to execute script 'workspace://SpacesStore/6

2017-05-02 11:16:40 GMT <AFaust> Is there any more detail, e.g. a stack trace?

2017-05-02 11:16:55 GMT <fwu> yes

2017-05-02 11:18:15 GMT <fwu> https://jpst.it/YO_U

2017-05-02 11:23:17 GMT <fwu> i tried with a new js with just one small function. And it throws the error

2017-05-02 11:34:57 GMT <AFaust> So - what is at line 5?

2017-05-02 11:35:17 GMT <AFaust> In the script referenced by nodeRef workspace://SpacesStore/69a2932b-30a8-491a-aa70-fda62c20ca79?

2017-05-02 11:35:34 GMT <AFaust> Looks like a regular error not related to import

2017-05-02 11:35:44 GMT <fwu> let me see

2017-05-02 11:40:37 GMT <fwu> in the script with the inport I have this:

2017-05-02 11:40:52 GMT <fwu> var workflow = actions.create("start-workflow"); inside a function

2017-05-02 11:41:27 GMT <fwu> however, if I delete the import statement, the script works fine

2017-05-02 11:44:08 GMT <AFaust> The problem with imports is that the line number is not a precise info any more.

2017-05-02 11:44:31 GMT <AFaust> The line number #5 actually refers to the line #5 of the "merged script" e.g. where the <import> is replaced with the contents of the other script

2017-05-02 11:44:56 GMT <AFaust> So you would need to look at line #5 in the imported script, not the one with the import

2017-05-02 11:46:21 GMT <fwu> let me see

2017-05-02 11:48:34 GMT <fwu> AFaust, I tried other script with just a function and I still get the #5

2017-05-02 11:49:23 GMT <fwu> and in this script I only have 4 lines!

2017-05-02 11:49:43 GMT <fwu> function myTest(){ logger.log('test'); }

2017-05-02 11:52:42 GMT <mrks_js> bmejias: Hey - it was good! : ) had a lot of time at the airport

2017-05-02 11:52:47 GMT <mrks_js> how was your way back?

2017-05-02 12:01:20 GMT <qwebirc4154> Hi Guys, I am trying to display audit data in admin console page using Aikau AlfList I am able to display the content but when I update the URL (currently passing entire url and limits via application text box) and filtered value in popup dialog form. I can see the new data in network tab of browser after submit, and the default one. The problem is that UI is not updated as per the limits / configuration made via pop up fo

2017-05-02 12:01:48 GMT <qwebirc4154> I have copied the service and alflist js file https://pastebin.com/qZEjxhxC

2017-05-02 12:01:49 GMT <alfbot> Title: // service define(["dojo/_base/declare", "alfresco/core/Core", - Pastebin.com (at pastebin.com)

2017-05-02 12:08:47 GMT <AFaust> fwu: Ok - if that script has only 4, then you need to look at the frist line of the script with the import (after the <import> line)

2017-05-02 12:12:31 GMT <AFaust> <qwebirc4154>: The AlfList is a very basic list. It does not support dynamic filtering and/or pagination. Also, your dialog form is only triggering the UPDATE_AUDIT publication, and not the ALF_DOCLIST_RELOAD_DATA which would cause the list to reload its data. The list payload is never changed by your form so it will always load the same data.

2017-05-02 12:13:41 GMT <AFaust> Basically you are explicitly triggering only the Ajax call which will not do anything with the response because it just discards the response (updated results) and triggers a list update via ALF_DOCLIST_RELOAD_DATA without any change in the payload of the list

2017-05-02 12:15:26 GMT <qwebirc4154> Thanks AFaust

2017-05-02 12:37:57 GMT <douglascrp> good morning

2017-05-02 12:39:04 GMT <mrks_js> hey douglascrp!

2017-05-02 12:45:26 GMT <Pop_> hi all :D

2017-05-02 12:45:41 GMT <bmejias> mrks_js it was long, but I had a good time with resplin walking in Barcelona before going to the airport.

2017-05-02 12:45:44 GMT <bmejias> Hi Pop_

2017-05-02 12:47:26 GMT <Pop_> anyone knows a link for comparison between community versions?

2017-05-02 12:48:37 GMT <mrks_js> bmejias: cool!

2017-05-02 13:03:21 GMT <AFaust> Pop_: What kind of comparison? You probably mean the release notes for each community release to check what has changed...

2017-05-02 13:03:36 GMT <AFaust> You can always check the community.alfresco.com site for the high level release notes

2017-05-02 13:12:35 GMT <fwu> AFaust, after the import line I have a blank line

2017-05-02 13:13:01 GMT <fwu> and then a function declaration

2017-05-02 13:23:31 GMT <fwu> I test the import with the workspace link, but with no luck.

2017-05-02 13:23:51 GMT <fwu> the import dosnt work

2017-05-02 18:11:38 GMT <Loftux> hi douglascrp Have you found a workaround for onActionFormDialog validation bug? https://issues.alfresco.com/jira/browse/SHA-2030

2017-05-02 18:28:17 GMT <douglascrp> Loftux, hey

2017-05-02 18:28:20 GMT <douglascrp> sorry for the late response

2017-05-02 18:28:24 GMT <douglascrp> no, I haven't

2017-05-02 18:28:31 GMT <douglascrp> our client is using it as it is right now

2017-05-02 18:31:20 GMT <Loftux> douglascrp: Ok thanks. We need to use onActionFormDialog in one of our addons that needs to work in multiple versions, so quite annoying bug,

2017-05-02 18:35:37 GMT <douglascrp> yes

2017-05-02 18:35:51 GMT <douglascrp> I haven't tried to track the change and figure out where it stopped working

2017-05-02 18:36:38 GMT <douglascrp> I remember in the past, where the parameter were optional, and I couldn't use the action without providing a value :D

2017-05-02 18:36:44 GMT <douglascrp> now it is on the contrary :D

2017-05-02 18:36:54 GMT <douglascrp> it is obligatory, but I can use it without a parameter

2017-05-02 19:57:45 GMT <fwu> back

End of Daily Log

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