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-08-15 07:38:29 GMT <Tichodroma> I vaguely remember that in a policy implementation it matters which NotificationFrequency is used in the Behaviour. Is NotificationFrequency.TRANSACTION_COMMIT fine or does it cause problems?

2018-08-15 07:40:30 GMT <Tichodroma> Problems I encouter are Access Denied errors to the user executing an action that triggers onCreateChildAssociation and onDeleteChildAssociation, both currently with NotificationFrequency.TRANSACTION_COMMIT

2018-08-15 07:41:17 GMT <Tichodroma> Inside the behaviour implementation NodeService.removeAspect is denied

2018-08-15 07:43:23 GMT <Tichodroma> AFaust: does your advise stil apply? http://alfresco.blog.redpill-linpro.com/2014/10/14/specialize-type-upon-content-creation-within-behaviour-can-result-in-invalid-version-history/#comment-27593

2018-08-15 07:43:24 GMT <alfbot> Title:Specialize type upon content creation within behaviour can result in invalid version history | Redpill Linpro Alfresco Team (at alfresco.blog.redpill-linpro.com)

2018-08-15 07:44:15 GMT <AFaust> I still stand by my strong discouragement of anything TRANSACTION_COMMIT

2018-08-15 07:46:59 GMT <Tichodroma> OK, thanks. I try to change the code to EVERY_EVENT, maybe it solve the problem.

2018-08-15 07:47:14 GMT <AFaust> Though invocation order is generally ordered from base type > sub-type > aspects, this is only looking at a single policy invocation. There is no guarantee that - in a transaction - another, previous event may not already have triggered the versionable policy and scheduled it before your custom one in the TRANSACTION_COMMIT chain...

2018-08-15 07:50:32 GMT <AFaust> In the case of the blog post of redpill-linpro, they are reacting to OnCreateNode, and the versionable policy has already triggered on OnAddAspect and/or OnUpdateProperties before

2018-08-15 07:51:40 GMT <AFaust> Correction, in createNode case, the OnUpdateProperties is actually delayed until after the OnCreateNode, but OnAddAspect is still triggered before OnCreateNode

2018-08-15 07:53:21 GMT <AFaust> And since OnAddAspect is only ever bound to the aspect, there is no way to inject yourself using a base type in the order before the versionable policy is called (if using the same TRANSACTION_COMMIT notification frequency)

2018-08-15 08:42:53 GMT <Tichodroma> AFaust: Using EVERY_EVENT solves the problem, thanks!

2018-08-15 08:43:10 GMT <Tichodroma> This information should be more prominent than a comment to a blog from 2014 :)

2018-08-15 08:43:36 GMT <AFaust> It is also in a couple of forums post replies of mine

2018-08-15 08:43:51 GMT <AFaust> I am not really reluctant to share my opinions on TRANSACTION_COMMIT

2018-08-15 08:45:26 GMT <Tichodroma> and rightly so

2018-08-15 08:46:42 GMT <AFaust> latest one I could find on short notice where I also did more than just say "I hate them": https://community.alfresco.com/message/804797-re-create-new-version-with-behaviourspolicies

2018-08-15 08:46:44 GMT <alfbot> Title:Create new version with Behaviours/Policies | Alfresco Community (at community.alfresco.com)

2018-08-15 16:08:29 GMT <alfresco-discord> <Shibak Tensai> Will this tutorial work for modifying the login page background? I'm wanting to change the logo, background, and take a couple of items off of the login page. I'm on 5.2.

2018-08-15 16:08:30 GMT <alfresco-discord> <Shibak Tensai> http://fcorti.com/2013/08/12/customize-alfresco-share-login-light-theme/

2018-08-15 16:08:31 GMT <alfbot> Title:How to customize the Alfresco Share login page without writing code for the lightweight theme - Francesco Corti (at fcorti.com)

2018-08-15 16:20:37 GMT <alfresco-discord> <Shibak Tensai> So I ended up modifying /tomcat/webapps/share/components/guest/login.css and hide the product-name and product-community classes. I know this isn't the approach that alfresco likes, but if I wanted to modify this file what other way do I do it?

2018-08-15 18:00:41 GMT <alfresco-discord> <douglascrp> @Shibak Tensai Creating an extension module, extending the login component and then including your custom css after the ootb one

2018-08-15 18:02:23 GMT <alfresco-discord> <douglascrp> the content of this custom component would be something like this: <@Markup id="dgloud-extension-css" target="css" action="after" > <#-- CSS Dependencies --> <@link href="${url.context}/res/dgcloud/components/guest/login.css" group="login"/> </@>

2018-08-15 18:02:43 GMT <alfresco-discord> <douglascrp> and of course, your login.css would contain your custom css definitions

2018-08-15 18:39:34 GMT *** Thargoid is now known as Guest98145

2018-08-15 21:08:30 GMT <alfresco-discord> <Shibak Tensai> ah ok thank you douglas.

End of Daily Log

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