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

2019-02-05 09:31:42 GMT <alfresco-discord> <bhagyas> I wonder if there's a new Alfresco Logo is in the works [feeling this way, because Slack also changed logos and is now going to IPO]

2019-02-05 09:33:40 GMT <alfresco-discord> <drazen04> Hi folks, i have question for you: I create an evaluator where i want to assign an aspect if the size of the jsonObject that comes is greater than 0

2019-02-05 09:34:33 GMT <alfresco-discord> <drazen04> but when i try with getProperty(jsonObject, "size") gives me null

2019-02-05 09:35:13 GMT <alfresco-discord> <drazen04> but in the properties of jsonObject exist "size" and has his value

2019-02-05 09:35:19 GMT <alfresco-discord> <drazen04> any suggests?

2019-02-05 09:35:57 GMT <alfresco-discord> <drazen04> * I create an evaluator where i want to assign an aspect if the size of the FILE that comes...

2019-02-05 09:36:15 GMT <alfresco-discord> <bhagyas> an evaluator can't perform any ops on any object

2019-02-05 09:36:20 GMT <alfresco-discord> <bhagyas> it's supposed to be read only

2019-02-05 09:37:19 GMT <alfresco-discord> <drazen04> I already did with other properties, but somehow the field "size" gives me problem

2019-02-05 09:40:45 GMT <alfresco-discord> <drazen04> @bhagyas JSONObject is required parameter of the "evaluate(JSONObject)", it's not a random object that i use

2019-02-05 10:25:19 GMT <angelborroy> @drazeb04 probably a behaviour is better for that feature

2019-02-05 10:25:31 GMT <angelborroy> @drazen04 probably a behaviour is better for that feature

2019-02-05 10:30:48 GMT <alfresco-discord> <drazen04> I did in the evaluator because i would to assign an aspect and a button/action reffering to document size

2019-02-05 10:33:34 GMT <alfresco-discord> <drazen04> If can be useful for someone i found out where problem were. Method getProperty return node.properties{ ... } and size is out of properties, so i went from node.size and it works

2019-02-05 10:34:11 GMT <angelborroy> If i get you right… you are building a Share evaluator

2019-02-05 10:34:31 GMT <angelborroy> And you are using a REST API to repo part to update a node from this code

2019-02-05 10:34:33 GMT <angelborroy> right?

2019-02-05 10:39:37 GMT <alfresco-discord> <drazen04> Yes, i've build a share evaluator but i do not use rest api for update nodes repo side

2019-02-05 10:41:34 GMT <angelborroy> so how are you updating the node to assign the aspect?

2019-02-05 10:44:39 GMT <alfresco-discord> <drazen04> I didn't get the questio at first

2019-02-05 10:44:50 GMT <alfresco-discord> <drazen04> yes, i use api

2019-02-05 10:45:06 GMT <angelborroy> ok, it doesn’t matter

2019-02-05 10:45:12 GMT <angelborroy> If you got it, no problem

2019-02-05 10:45:24 GMT <angelborroy> just tyring to understand the whole thing

2019-02-05 10:48:19 GMT <alfresco-discord> <drazen04> Thank you. That's problem, like i said before, was that i didn't get that in the JSONObject that come to evaluate"size" field was out of the json "properties", so it was always null. Now i can not assign an aspect if size == 0

2019-02-05 10:49:00 GMT <angelborroy> So you detect the “size == 0” condition inside a Share Evaluator

2019-02-05 10:49:17 GMT <angelborroy> And then you use Repository REST API to set the aspect

2019-02-05 10:54:50 GMT <alfresco-discord> <drazen04> Yes, i use a custom webscript

2019-02-05 10:55:22 GMT <angelborroy> @drazenn04 you can perform all the operation in repository part

2019-02-05 10:55:30 GMT <angelborroy> Using a behaviour (in Java)

2019-02-05 10:58:28 GMT <alfresco-discord> <drazen04> You're right

2019-02-05 10:59:41 GMT <alfresco-discord> <drazen04> Operating on evaluator was the first thing that comes in my mind.

2019-02-05 11:00:00 GMT <alfresco-discord> <drazen04> Effectively it would be better with evaluator

2019-02-05 11:00:06 GMT <alfresco-discord> <drazen04> sorry

2019-02-05 11:00:13 GMT <alfresco-discord> <drazen04> with behaviour

2019-02-05 11:00:22 GMT <angelborroy> I think so

2019-02-05 11:00:57 GMT <angelborroy> Share Evaluator is evaluated everytime the item is part of a page

2019-02-05 11:01:20 GMT <angelborroy> While behaviour is only fired when “size” changes effectively

2019-02-05 11:03:59 GMT <alfresco-discord> <drazen04> Very good advice

2019-02-05 11:04:08 GMT <alfresco-discord> <drazen04> Thank you👌

2019-02-05 11:04:24 GMT <angelborroy> you’re welcome

2019-02-05 15:00:12 GMT <alfresco-discord> <douglascrp> hello guys

2019-02-05 15:00:18 GMT <alfresco-discord> <douglascrp> I have just posted this: https://community.alfresco.com/docs/DOC-8102-alfresco-community-edition-201901-ga-release-notes?commentID=7339&et=watches.email.document_comment#comment-7357

2019-02-05 15:00:20 GMT <alfbot> Title:Alfresco Community Edition 201901 GA Release Notes | Alfresco Community (at community.alfresco.com)

2019-02-05 15:00:32 GMT <alfresco-discord> <douglascrp> does anyone know details about this?

2019-02-05 15:00:42 GMT <angelborroy> Yes

2019-02-05 15:00:53 GMT <angelborroy> It’s not going to be available for Community

2019-02-05 15:01:14 GMT <angelborroy> https://www.slideshare.net/jvonka/alfresco-transform-service-devcon-2019

2019-02-05 15:01:15 GMT <alfbot> Title:Alfresco Transform Service DevCon 2019 (at www.slideshare.net)

2019-02-05 15:01:40 GMT <angelborroy> They realised during this presentation that previous feature (current one) must be preserved for Community Users

2019-02-05 15:01:54 GMT <angelborroy> So probably they’ll change this “removal” in the future

2019-02-05 15:04:09 GMT <alfresco-discord> <douglascrp> I hope so

2019-02-05 15:04:43 GMT <angelborroy> The new one relies in ActiveMQ queue

2019-02-05 15:04:55 GMT <angelborroy> And it does not support Office Transformation Server (yet)

2019-02-05 15:05:12 GMT <angelborroy> One of the questions of the session was: how about Community?

2019-02-05 15:05:45 GMT <angelborroy> And Jan Vonka started to think in that moment that they've missed something

2019-02-05 15:06:08 GMT <angelborroy> So probably 6.1 CE is without Transformer support and 6.2 CE is (again) with Transformer support

2019-02-05 15:06:45 GMT <angelborroy> I’m going to update your question with this information

2019-02-05 15:08:33 GMT <alfresco-discord> <sbennett> 👋 Hey folks. The out-of-process Transform Service we've built (the one referred to in the release notes) is Enterprise only at this time. I'm following up on this internally here at Alfresco, to understand what the plans are for the community edition. Will post here as soon as I find out, and get an answer on the release notes as well.

2019-02-05 15:09:29 GMT <alfresco-discord> <douglascrp> Thanks for both of you

2019-02-05 15:09:44 GMT <angelborroy> btw, amazing session by Jan Vonka

2019-02-05 15:09:58 GMT <angelborroy> @douglascrp watch the recording when available!

2019-02-05 15:12:31 GMT <alfresco-discord> <Loftux> For a cleanup job we have I manage to "stress" it so that the node I need to delete fails for nodeService.deleteNode(nodeRef); This is due to the node while found in nodebrowser, I can navigate to parent, but parent doesn't have a childAssociation to this node. How do I get rid of it?

2019-02-05 15:12:53 GMT <alfresco-discord> <Loftux> ConcurrencyFailureException: Child association not found: 4173. A concurrency violation is likely. This can also occur if code reacts to 'beforeDelete' callbacks and pre-emptively deletes associations that are about to be cascade-deleted. The 'onDelete' phase then fails to delete the association. See links on issue ALF-12358.

2019-02-05 15:13:06 GMT <alfresco-discord> <Loftux> The linked issue did not really help

2019-02-05 15:20:42 GMT <alfresco-discord> <yreg> @Loftux I think I had something like that once, and I managed to nuke the nodes by disabling all behaviours in jsconsole

2019-02-05 15:21:14 GMT <alfresco-discord> <yreg> https://gist.github.com/yregaieg/e9420508ea24b2cbc165212783e27f24#file-nuke-files-js

2019-02-05 15:21:15 GMT <alfbot> Title:Alfresco Javascript Console Recipes · GitHub (at gist.github.com)

2019-02-05 15:23:44 GMT <alfresco-discord> <Loftux> In this case it is just on my test instance, but since I can trigger the error it can theoretically happen in production. The delete job we have already disables behaviours, has sys:temporary on the node. Even the force_delete in node browser fails

2019-02-05 15:24:38 GMT <alfresco-discord> <Loftux> I see in alfresco code that there is lost_found handling, can you mark a node "lost_found"?

2019-02-05 15:30:26 GMT <alfresco-discord> <yreg> IMHO what you are describing should never happen, it looks like a violation to DB integrity

2019-02-05 15:31:59 GMT <alfresco-discord> <yreg> onBeforeDelete should still happen in the transaction and should also be rolled back if the transaction fails, so I don't see how you could end up in that inconsistent state

2019-02-05 15:32:27 GMT <alfresco-discord> <yreg> unless if you are creating new transactions in your behaviours which do commit before the parent transaction is completed

2019-02-05 15:33:14 GMT <alfresco-discord> <yreg> but even then still, it looks like integrity violation and DB constraints should not allow it

2019-02-05 15:33:41 GMT <alfresco-discord> <yreg> can you share a mini project reproducing it ?

2019-02-05 15:37:05 GMT <alfresco-discord> <mbui> Anyone have the link to the github repo from AFaust presentation "Not-so-smart Folders made smarter" ?

2019-02-05 15:38:23 GMT <angelborroy> @mbui

2019-02-05 15:38:24 GMT <angelborroy> https://www.slideshare.net/AFaust

2019-02-05 15:38:25 GMT <alfbot> Title:Axel Faust, It consultant / software architect at Acosix gmbh (at www.slideshare.net)

2019-02-05 15:38:36 GMT <angelborroy> https://www.slideshare.net/AFaust/alfresco-devcon-2019-lightning-talk-notsosmart-folders-made-smarer

2019-02-05 15:38:37 GMT <alfbot> Title:Alfresco Devcon 2019 - Lightning Talk - Not-so-smart folders made sma… (at www.slideshare.net)

2019-02-05 15:40:54 GMT <alfresco-discord> <mbui> Thanks

2019-02-05 15:59:25 GMT *** angelborroy_ is now known as angelborroy

2019-02-05 18:07:05 GMT <alfresco-discord> <LuisColorado> Hello everyone, it was great to meet you at DevCon

2019-02-05 18:07:24 GMT <alfresco-discord> <LuisColorado> Is discord replacing IRC?

2019-02-05 18:07:40 GMT <alfresco-discord> <LuisColorado> I never used IRC until this morning, and I found a message suggesting to log into discord.

2019-02-05 18:08:33 GMT <angelborroy> Some people is moving to Discord

2019-02-05 18:08:58 GMT <angelborroy> But I’m still using IRC because it’s easier and less resources consuming

2019-02-05 18:09:21 GMT <angelborroy> Probably IRC will die when no one uses it

2019-02-05 18:09:36 GMT <angelborroy> But it’s not “officially” discouraged by Alfresco

2019-02-05 18:10:11 GMT <alfresco-discord> <LuisColorado> Interestingly, I see my messages here showing up on IRC

2019-02-05 18:11:03 GMT <alfresco-discord> <LuisColorado> By the way, hi Angel! It was nice to meet you in person a Edinburgh.

2019-02-05 18:11:12 GMT <angelborroy> the same!

End of Daily Log

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