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-07-27 06:41:53 GMT <qwebirc30253> good morning

2018-07-27 06:41:56 GMT <qwebirc30253> Previously we are using two different projects for platform and share, now converted to AIO project getting an issue of dependencies, showing like Noclassfound even though dependencies exist in pom.xml (parent folder), tried like adding dependencies in platform module pom.xml but then also getting the same issue. Where exactly dependencies need to add for Java class of platform module is needed to aid in parent poem or modu

2018-07-27 06:42:47 GMT <qwebirc30253> pom**

2018-07-27 07:04:07 GMT <ashley_> Hello All

2018-07-27 07:05:03 GMT <ashley_> I am want get user's group details using javascript in alfresco process service, can you please share any link is available

2018-07-27 07:05:15 GMT <ashley_> i used GroupInfo=userInfoBean.getPrimaryGroup(userID);

2018-07-27 07:05:33 GMT <ashley_> but its getting empty

2018-07-27 07:09:04 GMT <ashley_> and Caused by: org.activiti.engine.ActivitiException: Exception while invoking TaskL istener: couldn't find a variable type that is able to serialize com.activiti.mo Exception

2018-07-27 10:03:26 GMT <ashley_> Can anyone help me on this please

2018-07-27 10:17:23 GMT <yreg> ashley_, I bet your chances would be higher if you open a support case, or ask in the activiti bitter channel

2018-07-27 10:17:33 GMT <yreg> *gitter

2018-07-27 10:17:50 GMT <yreg> Or probably even better if post your question to community.alfresco.com

2018-07-27 10:18:49 GMT <yreg> You may not get a prompt response but I bet you would probably get some constructive interraction

2018-07-27 10:42:40 GMT <alfbot> Tichodroma: Sent 2 weeks, 6 days, 19 hours, and 59 minutes ago: <AFaust> From within ALfresco you can use the search.solrAdminHTTPCLient bean for that...

2018-07-27 10:42:41 GMT <alfbot> Tichodroma: Sent 2 weeks, 6 days, 19 hours, and 58 minutes ago: <AFaust> Alfresco already use that to call the SUMMARY action

2018-07-27 10:44:48 GMT <hi-ko> AFaust: I'm still struggeling with douple encoded url in aos. I saw your comment in https://issues.alfresco.com/jira/browse/ACE-5259

2018-07-27 10:47:02 GMT <AFaust> My comment? You mean a different JIRA issue than this one, because I can't see a comment of mine in there

2018-07-27 10:47:54 GMT <AFaust> But I have encountered such issues in the past, yes

2018-07-27 10:48:04 GMT <hi-ko> What I'm wondering: the url is already encoded. so encodeURI(url) is not a fix but the issue. I see in action.js in dlA_internalEditOnlineAos(response) the onlineEditUrlAos property is already encoded but I don't understand were the onlineEditUrlAos comes from

2018-07-27 10:48:34 GMT <hi-ko> sorry this https://issues.alfresco.com/jira/browse/ALF-21758

2018-07-27 10:48:44 GMT <AFaust> I have one situation at a customer where only a single user is affected by this (despite all using the same Alfresco and the same Office version, and the entire system of the user having been completely rebuildt based on their standard image)

2018-07-27 10:49:38 GMT <AFaust> Ah yes, that ALF-21758 was for the same customer, though a different constellation

2018-07-27 10:50:56 GMT <hi-ko> So - to address the issue I have to find out where the url / onlineEditUrlAos comes from. this determines if the url should be encoded or not

2018-07-27 10:51:53 GMT <AFaust> I backported the code from 201701 GA for my customer, and that solved the issue of ALF-21758 for them, though they still had one user where Office would introduce a double encoded URL somewhere (Alfresco not at fault - I looked at all network packages and it is Office that generates the double-encoded URL)

2018-07-27 10:53:00 GMT <hi-ko> you backported which part? the action.js?

2018-07-27 10:53:27 GMT <AFaust> Yes

2018-07-27 10:53:38 GMT <AFaust> The _aos_tryToLaunchOfficeByMsProtocolHandler

2018-07-27 10:55:55 GMT <hi-ko> but encodeURI(url) is the issue in my case. Only reverting back to plain url works. so when I debug action.js the url is already encoded

2018-07-27 10:58:45 GMT <hi-ko> a - sorry I was on github share-old - my fault. in https://github.com/Alfresco/share/ it's again location.href = protocolHandler + ':ofe%7Cu%7C' + url; as I expected ...

2018-07-27 10:58:46 GMT <alfbot> Title:GitHub - Alfresco/share: Alfresco Share (at github.com)

2018-07-27 10:59:48 GMT <hi-ko> So in share 5.1.x this should be assumed as a bug and worked by accident

2018-07-27 11:01:14 GMT <hi-ko> AFaust: did you understand where the url comes from?

2018-07-27 11:03:17 GMT <AFaust> from alfresco.js onlineEditUrlAos()

2018-07-27 11:04:05 GMT <AFaust> using the webdavUrl of the record as the base, and falling back to a UUID based URL if webdavUrl is too long

2018-07-27 11:35:21 GMT <hi-ko> strange - webdav url is taken from /share/proxy/alfresco/slingshot/doclib2/node/workspace/SpacesStore/ details and this is already url encoded. for me this is fine so far with encoding again in actions.js. I'm wondering why this worked in the past ...

2018-07-27 11:36:07 GMT <hi-ko> AFaust: thanks for your input.

2018-07-27 11:47:33 GMT <qwebirc30253> with SDK 3.0.1 in documentlist-min.js is not loading

2018-07-27 11:50:13 GMT <qwebirc30253> I just changed documentlist-min.js for showing custom metadata template,then after changes I restarted server the changes are showing changed file is not loading from res

2018-07-27 11:55:00 GMT <angelborroy> qwebirc30253 why are you modifying a minimized JS file?

2018-07-27 11:55:44 GMT <angelborroy> You could modify documentlist.js in your Alfresco SDK 3 project and then maven will minify the file for you

2018-07-27 11:55:56 GMT <angelborroy> Anyway modifying directly Alfresco resources is discouraged

2018-07-27 11:58:08 GMT <qwebirc30253> angelborroy, I thought for customization we need change in -min.js that's why

2018-07-27 11:59:07 GMT <angelborroy> what do you want to modify?

2018-07-27 12:00:40 GMT <qwebirc30253> added metadata template to show document status in documentlist js file beside social icons

2018-07-27 12:04:16 GMT <angelborroy> qwebirc30253 probably this can help you to understand how to extend Alfresco

2018-07-27 12:04:17 GMT <angelborroy> https://github.com/angelborroy/alfresco-add-menu-sample

2018-07-27 12:04:18 GMT <alfbot> Title:GitHub - angelborroy/alfresco-add-menu-sample: Ejemplo para crear un menรบ en la Biblioteca de Documentos de Alfresco Share (at github.com)

2018-07-27 12:04:28 GMT <angelborroy> Unluckily itโ€™s only available in Spanish

2018-07-27 12:08:42 GMT <qwebirc30253> @angelborroy I will go through those link. thq

2018-07-27 12:17:55 GMT <AxelFaust> Grrrml.... struggling with a weird error in my Docker init shell script for almost 2 hours know, and error output does not make any sense... Likely a single stray character somewhere missing with the entire file structure.

2018-07-27 12:26:23 GMT <yreg> AxelFaust, can you elaborate ?

2018-07-27 12:27:50 GMT <AxelFaust> The error reported meeting EOF at line X looking for some specific input. Thing is, line X was far away from any EOF (still 30 lines to go), and that line was even commented out in some of my re-tries

2018-07-27 12:28:37 GMT <AxelFaust> It was unclear which command was being run that may have tried to match more than its intended arguments due to an unterminated parameter string, since none of my debug echo statements triggered

2018-07-27 12:28:50 GMT <yreg> Could it be a hidden char ?

2018-07-27 12:29:28 GMT <yreg> Try deleting the line instead of commenting or make sure you are pointing to the right location using the full path for your entrypoint

2018-07-27 12:29:51 GMT <AxelFaust> No - it turned out (just fixed that error) to be a ` at the end of a variable assignment based on a piped set of utils

2018-07-27 12:30:04 GMT <yreg> You obviously can avoid having to re-build the image every time by simply mounting the newly edited file as volume

2018-07-27 12:30:10 GMT <yreg> It would save you some time

2018-07-27 12:30:11 GMT <AxelFaust> Yeah, I deleted the whole block the line was in to see if I got a different error message

2018-07-27 12:34:57 GMT <AxelFaust> On to the next error(s)...

2018-07-27 12:37:32 GMT <yreg> Good luck

2018-07-27 12:37:57 GMT <alfresco-discord> <mbui> So we're having some issues with some users performing actions that takes long time (enough for a client side timeout) to process. Such as moving/copying files, extracting ZIP-files etc.

2018-07-27 12:38:51 GMT <yreg> @mbui FYI the action should continue to run on the backend

2018-07-27 12:38:58 GMT <alfresco-discord> <mbui> First the user gets an error message on the client side timeout. And when they're attempting the action again (cause they think the previous failed) it may say something like "File already exists" or something similar. Because it has processed.

2018-07-27 12:39:59 GMT <yreg> @mbui you can always increase timeout limit, but be careful to keep it reasonable just not to Hog youtomcaq threadpool

2018-07-27 12:40:01 GMT <alfresco-discord> <mbui> Yes, my point is that this is very confusing for the users. I was thinking a way to solve this by polling the BatchJob (I'm assuming those processes are run as batch jobs, havn't checked). Instead of waiting for the answer.

2018-07-27 12:41:06 GMT <yreg> Moving/copying/deleting are not processed as batch jobs

2018-07-27 12:41:06 GMT <alfresco-discord> <mbui> But it feels like this should be a very common use case? It should be intuitive OOTB in my opinion ๐Ÿ˜ƒ

2018-07-27 12:43:10 GMT <alfresco-discord> <mbui> well, that's unfortunate ๐Ÿ˜ƒ

2018-07-27 12:44:34 GMT <alfresco-discord> <mbui> So, would one approach be to wrap those actions as batch jobs and then create a webscript which polls the job for the progress? ๐Ÿค”

2018-07-27 12:46:39 GMT <yreg> Too much effort in my opinion for too less added value

2018-07-27 12:47:46 GMT <yreg> I wouldn't expect to hit such case in day to day operations .. maybe just once or twice a year for some restructuring of the repo or something ...

2018-07-27 12:56:00 GMT <alfresco-discord> <mbui> Depends on the use case of the business logic I guess. In this particular case they are using Alfresco as case mananagement. It's not unusual that they have folders with several hundreds or maybe even thousands of files in which they may want to move/copy etc.

2018-07-27 13:01:20 GMT <yreg> In my experience few hundreds should never be an issue (on reasonably performant systems)

2018-07-27 13:01:28 GMT <AxelFaust> As far as I remember, the biggest impact of those big copy / move / unzip operations is typically the lookup of rules to execute (due to inheritance of rules)

2018-07-27 13:01:41 GMT <AxelFaust> And yes, a reasonably fast system should not have issues with a few hundred

2018-07-27 13:02:19 GMT <yreg> I would discourage from moving several thousands as regular day to day task because it generates a lot of overhead (referring to solr indexing as well)

2018-07-27 13:03:01 GMT <yreg> In my experience that can cause solr to lag behind

2018-07-27 13:03:15 GMT <yreg> And full reindex to take much longer than should

2018-07-27 13:04:11 GMT <AxelFaust> At one of my customers we have implemented a feature of "background actions" for the Share UI, i.e. via an AOP approach, operations known to take a long time are being moved to a background process, and the client receives an ID (NodeRef) of a status object to check for progress. A small popup + progress bar on the lower right side of the Share UI then tracks those action(s)

2018-07-27 13:05:27 GMT <AxelFaust> Though that obviously only supports our custom actions

2018-07-27 13:10:18 GMT <alfresco-discord> <mbui> AxelFaust: That sounds like a neat feature. So only the user who executed the action will see the progress? And the progress will still be available if they accidently closes the browser, change page or logs out+in?

2018-07-27 13:23:43 GMT <AxelFaust> mbui: yes

2018-07-27 16:00:38 GMT <alfresco-discord> <mbui> Anyone know how to create a FTS query which searches for a property (that consists of a collection) which has an empty collection?

2018-07-27 16:03:17 GMT <yreg> @mbui have you tried ISNULL:'property-qname' ?

2018-07-27 16:03:46 GMT <alfresco-discord> <mbui> yreg: yes, does not work.

2018-07-27 16:06:39 GMT <yreg> Can you create a behaviour to convert those empty collections to a null value <grin> ?

2018-07-27 16:08:11 GMT <alfresco-discord> <mbui> I've found a node which has the property wpsmail-v2:attachmentsCache set to an empty collection. This crashes the document library. Want to find if there's other similar nodes in the system.

2018-07-27 16:08:35 GMT <alfresco-discord> <mbui> https://i.gyazo.com/86356046743cf23aa50489be8a885102.png

2018-07-27 16:10:28 GMT <yreg> Just out of curiosity, have you confirmed it was actually an empty collection, not a collection with a single empty string ?

2018-07-27 16:18:05 GMT <alfresco-discord> <mbui> Yes

2018-07-27 16:18:38 GMT <yreg> I think it should be fairly possible to craft a DB query to get all of them

2018-07-27 16:22:50 GMT <alfresco-discord> <mbui> Not optimal, but the query ISNOTNULL:'wpsmail-v2:attachmentsCache' and then iterating the result and filtering all the ones that has node.properties["wpsmail-v2:attachmentsCache"].length == 0 did the work. However that approach is quite limited maxItems.

2018-07-27 16:23:42 GMT <yreg> You can paginate

2018-07-27 17:39:53 GMT <alfresco-discord> <mbui> I guess it's a generel bug in Share. This happens only in "Detailed view" in the document library. My guess is that the client always crashes if you have a property that contains an empty collection. I've reported this to Alfresco support.

2018-07-27 17:41:55 GMT <alfresco-discord> <mbui> The crash happens in documentlist.js: https://i.gyazo.com/2f9548b8cf6d87b74d05893fdfaf3c45.png

2018-07-27 18:12:07 GMT <manav> hello all

2018-07-27 18:12:57 GMT <manav> I'm trying hot reload java code in alfresco sdk 2.2

2018-07-27 18:13:42 GMT <manav> @ECHO OFF set springloadedfile=springloaded-1.2.5.RELEASE.jar IF "%MAVEN_OPTS%" == "" ( ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you SET MAVEN_OPTS=-javaagent:springloaded-1.2.5.RELEASE.jar -noverify -Xdebug -Xms256m -Xmx2G -Xms256m -Xmx2G -XX:PermSize=300m ) ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%' mvn clean install -Pamp-to-war

2018-07-27 18:14:15 GMT <manav> above code is in my run.bat

2018-07-27 18:16:00 GMT <manav> alfresco server is getting started, but the changes in java code is not getting reflected..

2018-07-27 18:40:29 GMT <mark_____> Hi Guys, I'm switching from LDAP to LDAPS, I've imported the certificate, changed the port in the config and added ldap.authentication.java.naming.security.protocol=ssl, is there any steps I'm missing?

2018-07-27 18:45:37 GMT <mark_____> Failed to communicate with ldaps://xxx.yyy.local:636. Reason javax.naming.CommunicationException, simple bind failed: xxx.yyy.local:636, javax.net.ssl.SSLHandshakeException, sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target, sun.security.validator.ValidatorException, PKIX path building faile

2018-07-27 18:45:52 GMT <mark_____> not sure if that makes sense to anyone :|

2018-07-27 22:43:15 GMT <mark_____> anyone about?

2018-07-27 23:19:29 GMT <alfresco-discord> <Mark> You need to configure an ssl trust relationship. Meaning you import the ldap server's certificate into a keystore for trust entries (a truststore)

2018-07-27 23:21:35 GMT <alfresco-discord> <Mark> Instructions start at "ldap.authentication.java.naming.security.protocol" on this page: https://docs.alfresco.com/5.1/concepts/auth-ldap-props.html

2018-07-27 23:21:37 GMT <alfbot> Title:LDAP configuration properties | Alfresco Documentation (at docs.alfresco.com)

End of Daily Log

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