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-10-17 06:54:15 GMT <yreg> Morning channel

2017-10-17 07:01:38 GMT <yreg> Logs and multi-threading can sometimes be annoying :-/

2017-10-17 07:02:14 GMT <yreg> even with grep -v, it is hard to isolate the log trail you are looking for

2017-10-17 07:40:59 GMT <aviriel> Good morning!

2017-10-17 07:41:16 GMT <yreg> aviriel, Hey there !

2017-10-17 07:41:19 GMT <yreg> How it goes !

2017-10-17 07:41:32 GMT <yreg> it has been a long time since last time we have seen you !!!

2017-10-17 07:41:49 GMT <aviriel> yreg: good, I found some time to think about DevCon :) How are you doing?

2017-10-17 07:42:03 GMT <yreg> Fine fine overall

2017-10-17 07:42:27 GMT <yreg> I couldn't get a hold on you in skype lately I hope everything is going good on your end !

2017-10-17 07:43:06 GMT <aviriel> just opened Skype. Too many notifications in it. Looks like my phone doesn't send me updates about Skype :(

2017-10-17 07:43:51 GMT <yreg> Well... skype got crappy ever since M$ bought it

2017-10-17 08:37:58 GMT <fcorti> Good to hear that you are thinking about DevCon aviriel... maybe a talk? :-)

2017-10-17 09:06:41 GMT <aviriel> fcorti: no, nothing special, only some ideas about marketing that we discuss with yreg and Kristen. But if you want to discuss something else, let's talk :)

2017-10-17 09:10:25 GMT <fcorti> Well, I'm always looking for valuable content and I think you have a lot of things to share

2017-10-17 09:11:49 GMT <aviriel> fcorti: not yet, I just try to understand what happened during the time I was unavailable. Give me some time to generate some content for you :)

2017-10-17 09:12:31 GMT <fcorti> aviriel yes, sure... :-)

2017-10-17 09:17:33 GMT <yreg> aviriel, FYI we have a TTL about devcon later today

2017-10-17 09:19:45 GMT <fcorti> yreg +1

2017-10-17 09:19:55 GMT <fcorti> aviriel join us https://youtu.be/Qfq_0YSdI3o

2017-10-17 09:29:08 GMT <aviriel> fcorti: ok, but I'm not going to submit anything this time :)

2017-10-17 09:29:40 GMT <fcorti> aviriel ok, no pressure... I hope that you will join in every case.

2017-10-17 10:25:21 GMT <aviriel> Let's imagine that I'm a newbie. Please, help me! How to check that the user is in the group with javascript? I try to do https://gist.github.com/aviriel/24f3fad5f006cbd11c4018f74c60b660 and it doesn't work

2017-10-17 10:25:22 GMT <alfbot> Title: gist:24f3fad5f006cbd11c4018f74c60b660 · GitHub (at gist.github.com)

2017-10-17 10:27:46 GMT <AFaust> aviriel: Good imitation of how to pose a question as a newbie...

2017-10-17 10:27:53 GMT <aviriel> :)

2017-10-17 10:28:51 GMT <aviriel> I understand that I always can do "for (var i =0....)" but it doesn't look nice

2017-10-17 10:29:09 GMT <aviriel> I believe that there should be some better solution

2017-10-17 10:29:15 GMT <MartinM__> Nice to know would be the actual output from the print commands :)

2017-10-17 10:30:06 GMT <AFaust> One issue: user may not directly be contained in the admin group, but transitively via group

2017-10-17 10:30:09 GMT <aviriel> MartinM__: added to the comment

2017-10-17 10:33:18 GMT <aviriel> AFaust: what to do in this case? With non-admin users and not-admin groups the result is the same. User is in the group, but I get "-1"

2017-10-17 10:33:29 GMT <MartinM__> I'm not to familar with those web scripts but the account admin is might not real "real" account. Could you try to find an other user in this group. A real created once

2017-10-17 10:33:36 GMT <yreg> aviriel, in my experience, it can be overwhelming if you list all users from one group

2017-10-17 10:34:02 GMT <yreg> and it is probably better to list all groups for the users and see if the group you are looking for is there

2017-10-17 10:34:14 GMT <MTielemans> aviriel, I get the same result with any username. Couldn´t this be because indexOf compares JS objects, and the actual instances are different?

2017-10-17 10:34:19 GMT <AFaust> Second: JS array indexOf is based on shallow equals (at least in Rhino implementation)

2017-10-17 10:34:38 GMT <MTielemans> You should probably loop that array and compare usernames instead.

2017-10-17 10:34:49 GMT <aviriel> yreg: I only want to improve https://github.com/ITDSystems/alvex-courses-extras/blob/master/2017-10-14/export-import-groups/exportGroupMembers.js to check if the user is already in the group, because it rollbacks the transaction (all groups) in this case

2017-10-17 10:34:50 GMT <alfbot> Title: alvex-courses-extras/exportGroupMembers.js at master · ITDSystems/alvex-courses-extras · GitHub (at github.com)

2017-10-17 10:34:51 GMT <MTielemans> Yeah what AFaust said :)

2017-10-17 10:34:58 GMT <AFaust> https://github.com/mozilla/rhino/blob/master/src/org/mozilla/javascript/ScriptRuntime.java#L3276

2017-10-17 10:34:59 GMT <alfbot> Title: rhino/ScriptRuntime.java at master · mozilla/rhino · GitHub (at github.com)

2017-10-17 10:35:38 GMT <AFaust> and https://github.com/mozilla/rhino/blob/master/src/org/mozilla/javascript/NativeArray.java#L1508

2017-10-17 10:35:39 GMT <alfbot> Title: rhino/NativeArray.java at master · mozilla/rhino · GitHub (at github.com)

2017-10-17 10:36:09 GMT <aviriel> MTielemans: AFaust: ok, I thought about it. So should I manually with "for i =0..." check if username is in the property of the object in the array of members?

2017-10-17 10:37:04 GMT <AFaust> aviriel: that would be the optimal approach

2017-10-17 10:37:16 GMT <aviriel> okay :(

2017-10-17 10:37:30 GMT <AFaust> you could of course use array.forEach(function()) or array.filter(function()) to go over the array, but that would not short-circuit...

2017-10-17 10:38:08 GMT <MTielemans> AFaust, that´s how I usually do it. You mean it doesn´t break when it finds a result? Because you can just return if you do, right?

2017-10-17 10:38:48 GMT <AFaust> MTielemans: If you simply return out of the inner function than it will still get called for the next element (if there is one in the array) - you simply end processing of the individual element

2017-10-17 10:39:20 GMT <MTielemans> Hah, that´s embarrassing :)

2017-10-17 10:40:01 GMT <yreg> I just came across this ... let's say Unique license... and it made me reconsider my positioning from free opensource software licenses !

2017-10-17 10:40:48 GMT <aviriel> yreg: what do you mean?

2017-10-17 10:41:28 GMT <yreg> aviriel, this is totally unrelated to the ongoing thread!

2017-10-17 10:41:45 GMT <yreg> here is the license : https://www.dbad-license.org/

2017-10-17 10:41:46 GMT <alfbot> Title: DBAD by philsturgeon (at www.dbad-license.org)

2017-10-17 10:42:44 GMT <yreg> just found a project refencing it and I was amazed by it :D

2017-10-17 10:42:51 GMT <AFaust> yreg: Why does it make you reconsider your position?

2017-10-17 10:43:14 GMT <aviriel> yreg: now I know what license to use for Alvex

2017-10-17 10:43:47 GMT <yreg> this new license is now my favourite license (it was Apache before)

2017-10-17 10:44:19 GMT <yreg> aviriel, hehe

2017-10-17 10:44:33 GMT <MTielemans> I think I know some real proper donkey dicks then.

2017-10-17 10:45:06 GMT <MTielemans> Sorry for the language. Just re-using the terminology in the provided license.

2017-10-17 10:45:32 GMT <yreg> MTielemans, no worries

2017-10-17 10:45:51 GMT <AFaust> I don't yet see any American in here, so don't necessarily be overly defensive about talking about body parts...

2017-10-17 10:48:24 GMT <yreg> MTielemans, I have seen all kinds of these d*** in the past, I even used to work for one :-D

2017-10-17 10:50:35 GMT <yreg> totally rebranded Alfresco CE, added a couple of feature and is selling it for tremendous amount of money

2017-10-17 10:54:47 GMT <yreg> -= THIS MESSAGE NOT LOGGED =-

2017-10-17 11:13:40 GMT <aviriel> btw, I found nice bug some days ago. If you execute "print(folder.children.length)" in the javascript console for the folder with 80k nodes, then javascript console doesn't show any errors, but the result is different for every execution. Sometimes it's 14k, sometimes 20k :)

2017-10-17 11:15:42 GMT <aviriel> maybe it's not a bug, but a known feature :(

2017-10-17 11:16:38 GMT <AFaust> aviriel: I believe it is a know "feature" of Alfresco - very likely the maxPermissionCheckTimeMillis one...

2017-10-17 11:17:08 GMT <AFaust> And once the nodes are already loaded into memory / caches, then you get further because the operation to check permission takes less time...

2017-10-17 11:18:08 GMT <aviriel> AFaust: yep, now don't use default APIs to check the length...

2017-10-17 11:18:49 GMT <AFaust> never if you suspect something might have more than 1000

2017-10-17 11:20:42 GMT <aviriel> douglascrp: good morning!

2017-10-17 11:21:10 GMT <douglascrp> good morning everyone

2017-10-17 11:21:13 GMT <douglascrp> aviriel, hello

2017-10-17 11:21:53 GMT <aviriel> douglascrp: I heard that you will come to DevCon in January. Is it true?

2017-10-17 11:22:42 GMT <yreg> douglascrp, really? that would be awesome! Would love to meet you there

2017-10-17 11:23:05 GMT <douglascrp> aviriel, yreg I am trying to make that possible

2017-10-17 11:23:14 GMT <douglascrp> and I would love that I can do so

2017-10-17 11:26:18 GMT <aviriel> douglascrp: let me know final decision. I didn't plan to go to DevCon this year, but if you will come, then I have to come for 1 day to Lisbon to meet you.

2017-10-17 11:26:46 GMT <DarkStar1> that makes 2 of us.

2017-10-17 11:26:49 GMT <DarkStar1> o/ douglascrp

2017-10-17 11:26:57 GMT <douglascrp> DarkStar1, hey man

2017-10-17 11:27:28 GMT <aviriel> we should tell Kristen how to market DevCon. "Come to DevCon, douglascrp will be there!"

2017-10-17 11:30:29 GMT <douglascrp> aviriel, ahaha... good one

2017-10-17 11:47:39 GMT <aviriel> Great! Thanks to everyone! Now I have a script to add users to groups on the new Alfresco instance how it was on the old instance: https://github.com/ITDSystems/alvex-courses-extras/blob/master/2017-10-14/export-import-groups/exportGroupMembers.js :)

2017-10-17 11:47:40 GMT <alfbot> Title: alvex-courses-extras/exportGroupMembers.js at master · ITDSystems/alvex-courses-extras · GitHub (at github.com)

2017-10-17 12:46:58 GMT <danric_> Hi all, Alfresco people.

2017-10-17 12:48:26 GMT <danric_> Did anyone try to look inside the solr 6 index with Luke? I can find nodes by id but I can not rebuild and edit the indexed properties.

2017-10-17 13:34:31 GMT <yreg> AFaust, QQ: is it possible to search for nodes with wrong index from alfresco side

2017-10-17 13:34:58 GMT <yreg> something like querying "EXCEPTIONSTACK" spcial field ?

2017-10-17 13:35:05 GMT <AFaust> How do you mean "wrong index"? You would need to know specifically the values of the index to find them...

2017-10-17 13:35:17 GMT <AFaust> Ah, so not "wrong index" but "issues when trying to index"

2017-10-17 13:35:32 GMT <yreg> AFaust, exactly

2017-10-17 13:35:54 GMT <AFaust> Well, as admin / system user it should be possible.

2017-10-17 13:36:02 GMT <yreg> I tried exceptionstack and exceptionmessage but both do not seem to work in FTS queries

2017-10-17 13:36:16 GMT <AFaust> As long as you have a specific field which you can use and know the type of exception / stack value...

2017-10-17 13:36:29 GMT <yreg> or are they being re-mapped to cm namespace ?

2017-10-17 13:36:56 GMT <yreg> I actually want to lookup all nodes having troubles during index

2017-10-17 13:37:13 GMT <yreg> tried this EXCEPTIONSTACK:* without luck

2017-10-17 13:37:21 GMT <AFaust> It could be that the FTS parsing logic maps them to cm namespace because there may not be any special handling for the field names

2017-10-17 13:37:22 GMT <yreg> will try {}EXCEPTIONSTACK:* and see

2017-10-17 13:38:06 GMT <yreg> AFaust, that was my initial suspicion as well

2017-10-17 13:38:28 GMT <AFaust> If you tried the Lucene query language there should not be any processing limitations

2017-10-17 13:39:22 GMT <yreg> still not working

2017-10-17 13:39:27 GMT <yreg> not even with lucene

2017-10-17 13:40:05 GMT <yreg> well I guess I will need to export db-id from solr manually and look nodes in alfresco in a node per node basis.. what a waste of time

2017-10-17 13:50:20 GMT <danric_> My goal is to investigate the indexed term in order to evaluate the amount of data indexed when the cross language is enabled by shared.properties

2017-10-17 13:55:16 GMT <danric_> The best would be to have control over the indexing language so that it (the indexing process) does not depend on the browser language with which the users upload the documents. Do you know if it is possible to configure solr6 to use the same token analyzer for all languages?

2017-10-17 13:57:22 GMT <yreg> danric_, probably possible through some schema.xml customization

2017-10-17 13:58:27 GMT <bhagyas> fcorti: Is there a way to get the nodepath using alfresco js api?

2017-10-17 13:58:28 GMT <danric_> I tried but did not get results

2017-10-17 13:59:07 GMT <bhagyas> technically the folder path

2017-10-17 14:02:32 GMT <danric_> @bhagyas: have you tried something like var path=document.displayPath;

2017-10-17 14:02:37 GMT <danric_> ?

2017-10-17 14:21:02 GMT <fcorti> Join us at Office Hours dedicated to speaking at DevCon 2018

2017-10-17 14:21:12 GMT <fcorti> https://youtu.be/Qfq_0YSdI3o

2017-10-17 14:33:34 GMT <fcorti> Office Hours is happening...

2017-10-17 14:50:24 GMT <fcorti> If you have questions, feel free to raise it here

2017-10-17 15:00:52 GMT <bhagyas> fcorti: Preflight response is not successful

2017-10-17 15:01:03 GMT <bhagyas> when talking to a share webscript through the js api

2017-10-17 15:01:07 GMT <bhagyas> O_O

2017-10-17 15:03:21 GMT <fcorti> bhagyas you are using it in extreme env

2017-10-17 15:04:17 GMT <fcorti> I believe it cannot work properly

2017-10-17 15:18:45 GMT <yreg> AxelFaust, when I use lucene QL, I get in the debug logs for the solr client a different endpoint and an empty template in the payload, the rest of the query/payload/results is the same

2017-10-17 15:19:38 GMT <AxelFaust> I never use Lucense anymore because I consider that to be obsolete / legacy. And I primarily use the SOLR UI to do any low-level queries

2017-10-17 15:35:23 GMT <aviriel> kgastaldo: just noticed that CfP closes on 11:10am. What about time zone?:)

2017-10-17 15:38:58 GMT <yreg> AxelFaust, I just realise that I can't do TMQ on dbid !!!

2017-10-17 15:39:18 GMT <AxelFaust> Yep

2017-10-17 15:39:22 GMT <yreg> tried =sys:node\-dbid:123 but it does not work

2017-10-17 15:39:26 GMT <yreg> shit

2017-10-17 15:39:36 GMT <danric_> solr ui is definitely useful but it would be interesting to be able to analyze the index with Luke to see what is indexed

2017-10-17 15:39:58 GMT <AxelFaust> You also can't do ID:"workspace://SpacesStore/XXX" because they don't map that (they could, if they wanted to, just like sys:node-dbid)

2017-10-17 15:40:13 GMT <yreg> it is actually impossible to get a hold on any metadata with dash in it using TMQ

2017-10-17 15:40:30 GMT <AxelFaust> danric_: AFAIK SOLR is supposed to have a LUKE request handler. Have not checked that out yet...

2017-10-17 15:41:30 GMT <AxelFaust> yreg: Why would anyone have a dash in their property name? I consider that extremely bad style (you don't have to mention that Alfresco does this - my statement is already incorporating that fact)

2017-10-17 15:45:28 GMT <yreg> AxelFaust, I just want to have an easy way to convert the list of node having error index to nodeRef list

2017-10-17 15:47:00 GMT <douglascrp> yreg, there is a way

2017-10-17 15:47:03 GMT <douglascrp> let me get the link to you

2017-10-17 15:47:18 GMT <douglascrp> not easy, but doable

2017-10-17 15:49:18 GMT <yreg> douglascrp, using nodeservice to get node out of dbid ?

2017-10-17 15:49:36 GMT <douglascrp> yreg, https://docs.google.com/document/d/1DMNeMmZf6r4tKB0zYjWBx84OMWfINfR0UpVsPzyop9Q/pub#h.5dpf5i5v9wm3

2017-10-17 15:49:37 GMT <alfbot> Title: Searching with Alfresco 5.1 Community (at docs.google.com)

2017-10-17 15:49:38 GMT <yreg> that would require java development/nasty js console hacking

2017-10-17 15:49:41 GMT <douglascrp> using database

2017-10-17 15:49:59 GMT <douglascrp> yreg, search for this Finding the NodeRef for a Node Id

2017-10-17 15:50:04 GMT <douglascrp> "Finding the NodeRef for a Node Id" topic

2017-10-17 15:50:15 GMT <douglascrp> using the id, it is possible to generate the noderef using a db query

2017-10-17 15:50:37 GMT <douglascrp> I used that once

2017-10-17 15:53:12 GMT <yreg> extremely hacky

2017-10-17 15:53:17 GMT <douglascrp> yes, but works

2017-10-17 15:53:20 GMT <yreg> thanks douglascrp

2017-10-17 15:53:37 GMT <douglascrp> let me know if it helped you in the end

2017-10-17 16:03:50 GMT <danric_> AxelFaust: solr have a Luke request handler.... or better in the schema.xml is configured an AlfrescoLukeRequestHandler but doesn't work very well

2017-10-17 16:06:48 GMT <AxelFaust> Never really tried it.

2017-10-17 16:07:15 GMT <AxelFaust> Other than in old versions with Lucene, I really never had the need to use Luke with SOLR yet...

2017-10-17 16:23:38 GMT <yreg> douglascrp, that doc is extremely valuable

2017-10-17 16:24:17 GMT <yreg> but I will not recommend to a novice access to the database..

2017-10-17 16:24:40 GMT <douglascrp> yreg, yes, that is right

2017-10-17 16:24:43 GMT <yreg> I came up with a less hacky solution using javascript console

2017-10-17 16:24:48 GMT <douglascrp> you are not one of them :D

2017-10-17 16:25:13 GMT <yreg> the thing is that I need to provide a tutorial to a client to fix their systems

2017-10-17 16:25:36 GMT <yreg> and I am afraid that if I recommend direct access to DB the guy would take a habit out of it ;-)

2017-10-17 16:27:08 GMT <douglascrp> aahhh

2017-10-17 16:27:12 GMT <douglascrp> that is a good idea

2017-10-17 16:35:34 GMT <yreg> douglascrp, AxelFaust I just created a gist in case any of you is interested have a look : https://gist.github.com/yregaieg/6aaf35b884701aca5f4cd358613764e4

2017-10-17 16:35:35 GMT <alfbot> Title: do-something-with-solr-errors.js · GitHub (at gist.github.com)

2017-10-17 16:46:44 GMT <danric_> AxelFaust: Luke helped me a lot understandig the lucene tokenisation process and saved me from a bug in the Alfresco 4.2 version where eml files with attachments where indexed with all the binary data!

2017-10-17 16:48:03 GMT <danric_> AxelFaust: do you know how to configure Solr to index all documents in the same language (analyser) indipendently from the language of the browser?

2017-10-17 16:48:33 GMT <douglascrp> yreg, interesting

2017-10-17 16:48:41 GMT <AxelFaust> I agree it is a good learning tool... I'm just saying that for actual practical reasons in maintaining various customer systems I have simply not needed it anymore.

2017-10-17 16:49:31 GMT <AxelFaust> danric_: Well, one option is to simply force the document language to be the same, potentially pre-configured value (i.e. via policy)

2017-10-17 16:49:51 GMT <AxelFaust> No need to change anything on SOLR...

2017-10-17 16:50:19 GMT <douglascrp> yreg, really nice

2017-10-17 16:51:10 GMT <AxelFaust> You could also modify the schema.xml to customise the field analysers for the dynamic fields

2017-10-17 16:51:23 GMT <danric_> do you mean a behavior ?

2017-10-17 16:51:27 GMT <yreg> douglascrp, glad that you like it

2017-10-17 16:52:45 GMT <danric_> I've tried the way to modify schema.xml but with no success, I will retry for sure..

2017-10-17 16:52:56 GMT <AxelFaust> danric_: Yes, behaviour / policy are sort of interchangibly used...

2017-10-17 16:53:45 GMT <danric_> Yes, this is a possible way , thank you.

2017-10-17 16:54:01 GMT <yreg> AxelFaust, Well I actually learned lately that Policy & Behaviour differ a lot !

2017-10-17 16:54:41 GMT <yreg> Policy is the type / kind of behaviour

2017-10-17 16:54:57 GMT <yreg> a Behaviour is actually the implementation / instance

2017-10-17 16:54:58 GMT <AxelFaust> yreg: Yes, if you look at the technical elements, there is this difference...

2017-10-17 16:55:10 GMT <danric_> usually you have to bind a behavior to a policy, something like that

2017-10-17 16:55:20 GMT <yreg> exact

2017-10-17 16:55:21 GMT <AxelFaust> I'm just saying that the community uses it interchangibly...

2017-10-17 16:55:28 GMT <yreg> indeed

2017-10-17 16:56:58 GMT <danric_> I also found dataanlyzers_xx.properties files into alfresco-data-model-6.16.jar

2017-10-17 16:57:37 GMT <danric_> alfresco-data-model-6.16.jar\alfresco\model -

2017-10-17 16:58:15 GMT <danric_> I have to go. Thank you very much guys. see you soon.

2017-10-17 17:18:45 GMT <yreg> douglascrp, I am out of ideas for the value assustance thing, could you try again to attack the issue ?

2017-10-17 17:19:57 GMT <yreg> I think the issue might be related to the change event being registered multiple times (or fired multiple times) due to a not proper cleaning between one upload and the next

2017-10-17 18:46:37 GMT <sujaypillai> Can we put a restriction on dir.root to have a repository filesystem size quota (would it be possible?)

2017-10-17 18:46:38 GMT <sujaypillai> something similar to folder quota restriction (which is at each folder level)

2017-10-17 18:48:00 GMT <douglascrp> yreg, yes, I can try, but because of my lack of free time, and I can not assure you when I will be doing so, or how much time I will dedicate to it

2017-10-17 18:48:49 GMT <douglascrp> yreg, believe, I am also interested in having it working, but I have so much on my lap right now that I can't really work on side projects

2017-10-17 18:49:09 GMT <douglascrp> that would be totally different if I had to use it on one of my projects, but that is not the case right now

2017-10-17 18:49:29 GMT <douglascrp> yreg, my *current projects

End of Daily Log

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