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-06-07 04:58:38 GMT <bhuvana> hi all

2017-06-07 04:58:44 GMT <bhuvana> good morning

2017-06-07 04:59:24 GMT <bhuvana> how to configure retention policies in alfresco community

2017-06-07 06:00:44 GMT <twen> hello

2017-06-07 08:23:10 GMT <yreg> Good morning every one

2017-06-07 08:24:04 GMT <yreg> AFaust, that issue I had yesterday with action forms only happens in 5.1+, it is due to +/- recent change from alfresco

2017-06-07 08:24:23 GMT <AFaust> I know

2017-06-07 08:24:56 GMT <AFaust> Remember the training from January and the issue with action I18n there?

2017-06-07 08:25:00 GMT <yreg> I will see if I can get around it by discovering server version and use the right method accordingly or use reflection or something

2017-06-07 08:25:02 GMT <AFaust> Same changes...

2017-06-07 08:25:31 GMT <yreg> right

2017-06-07 08:26:17 GMT <AFaust> This is a kind of bug/issue that is destined for bytecode instrumentation to fix for all actions (not just your Dynamic Extension ones)

2017-06-07 08:27:02 GMT <AFaust> ... or by putting a fixed *.class file in WEB-INF/classes

2017-06-07 08:28:22 GMT *** angelborroy_ is now known as angelborroy

2017-06-07 08:33:54 GMT <jebla> Hi, the alf_prop_link table on our Alfresco 5 instance has 345.000.000+ rows with a 80G index. Inserts on that table is taking a very long time, causing the db server to max out cpu wise. We have never ran the propTableCleanup job that is supposed to remove unused values. Anybody have experienced what I describe?

2017-06-07 08:43:19 GMT <AFaust> jebla: Yes - if you have never run the cleanup job then that is to be expected. With such a large table, running the cleanup job now may also be very problematic since it is a one-shot operation and will take a long time to run, blocking the associated tables in the meantime

2017-06-07 08:44:38 GMT <tushar_> hey there

2017-06-07 08:44:40 GMT <AFaust> For a customer I recently had to develop an incremental version of that cleanup job to iteratively clean up the DB during off-hours. Unfortunately that code is not available under an open source license...

2017-06-07 08:45:36 GMT <tushar_> @AFaust sir i did he config. for the send email action

2017-06-07 08:46:15 GMT <tushar_> i wanted to know if i want to relay the inbound emails, from where shall i start ?

2017-06-07 08:47:08 GMT <AFaust> You mean you want to relay the emails that are sent "to" Alfresco? Why would you want to do that?

2017-06-07 08:47:12 GMT <jebla> AFause: Thank you for your answer. Yes, the job takes 15mins on our small dev instances. Yes I guess we could do a custom ScriptExecutorImpl enabling us to control for how long it should execute

2017-06-07 08:52:01 GMT <tushar_> @AFaust how can i manage inbound emails ?

2017-06-07 08:52:17 GMT <AFaust> It depends on what you want to do with them...

2017-06-07 08:53:38 GMT <AFaust> I assume you have checked http://docs.alfresco.com/5.2/concepts/email-inboundsmtp-props.html

2017-06-07 08:53:39 GMT <alfbot> Title: Inbound SMTP configuration properties | Alfresco Documentation (at docs.alfresco.com)

2017-06-07 08:53:56 GMT <AFaust> http://docs.alfresco.com/5.2/concepts/email-target-node.html

2017-06-07 08:53:57 GMT <alfbot> Title: Handling messages by target node type | Alfresco Documentation (at docs.alfresco.com)

2017-06-07 08:54:58 GMT <AFaust> ... and know that you have to assign the cm:aliasable aspect to folders / nodes you want to be addressed by a named email address

2017-06-07 08:55:58 GMT <yreg> tushar_, not to mention an mx record pointing to alfresco server on your domain dns

2017-06-07 08:56:12 GMT <yreg> AFaust, can you elaborate on that approach of yours

2017-06-07 08:56:24 GMT <yreg> I was working on a fix using reflection

2017-06-07 08:57:00 GMT <alfbot> fcorti: Sent 16 hours and 35 minutes ago: <douglascrp> now it is working

2017-06-07 08:57:32 GMT <yreg> detecting if the setLocalized... method exists, and call it setting the parameters for Locale.ROOT (the fallback locale when accessing params list)

2017-06-07 08:57:38 GMT <tushar_> I want to somehow configure and setup a meathod for the inbound emails

2017-06-07 08:57:46 GMT <yreg> fcorti, any update on that deleted artifact ?

2017-06-07 08:57:58 GMT <AFaust> yreg: The bytecode approach? Will be easier just to include a patched *.class file for ParameterizedItemAbstractBase (and e.g. for base action executor)

2017-06-07 08:58:44 GMT <yreg> AFaust, wouldn't that be considered dirty ?

2017-06-07 08:58:48 GMT <AFaust> Approach would simply be to check if the specific locale already has a localized list of parameters and lazily generate one if not.

2017-06-07 08:59:57 GMT <AFaust> Sure it would be dirty, but we are talking about fixing a bug here without any other option unless you wanted to subclass+replace every action class individually

2017-06-07 09:00:30 GMT <AFaust> Maybe Alfresco will get their I18n act together before 2020, but I doubt it...

2017-06-07 09:03:48 GMT <yreg> hehe

2017-06-07 09:08:48 GMT <fcorti> hi yreg, Samuel is working on it and I opnened a ticket her https://issues.alfresco.com/jira/browse/ALF-21906

2017-06-07 09:08:55 GMT <fcorti> You can follow this

2017-06-07 09:15:52 GMT <yreg> thanks Francesco !

2017-06-07 09:21:17 GMT <fcorti> you are welcome yreg

2017-06-07 09:40:46 GMT *** angelborroy_ is now known as angelborroy

2017-06-07 10:08:05 GMT *** angelborroy_ is now known as angelborroy

2017-06-07 10:13:51 GMT <tushar_> @ <AFaust> can you please tell me if i want to recive an email in alfresco from gmail or any other how can i do that

2017-06-07 10:17:05 GMT <AFaust> tushar_: I believe I already linked some pages from the documentation. 1) You need to enable inbound SMTP subsystem, 2) you need to forward port 25 to Alfresco (on Linux you typically use iptable for that to avoid a privileged bind), 3) you need an MX domain record to define your Alfresco server as a mail server for a specific domain, 4) you need to configure Alfresco to allow specific senders (identified by email) to actually send emails to Alfresco, 5)

2017-06-07 10:17:05 GMT <AFaust> you need to address specific target nodes / folders, 6) you need to assign at least Contributor permissions for senders on the target (or use a generic inbound user for all senders)

2017-06-07 10:24:17 GMT <tushar_> thank you so much @AFaust

2017-06-07 11:28:08 GMT <iblanco> Good morning everyone

2017-06-07 11:31:41 GMT <iblanco> Has anyone had any success overriding properties in cm:versionable? I have defined an aspect whose parent is cm:versionable and overriden a couple of properties but even if I add the aspect as a mandatory aspect to my custom types the properties do not appear in the node.

2017-06-07 11:31:55 GMT <iblanco> Here is the relevant piece of model: https://pastebin.com/RT3PbGwn

2017-06-07 11:31:56 GMT <alfbot> Title: <aspect name="my:versionable"> <parent>cm:versionable</pare - Pastebin.com (at pastebin.com)

2017-06-07 11:34:12 GMT <iblanco> The node does have the aspect, but not the properties.

2017-06-07 12:46:28 GMT *** angelborroy_ is now known as angelborroy

2017-06-07 13:31:12 GMT <mtsiak> in a workflow, can i run a task everytime before a user task ? I want to update a property, before the task form is loaded.

2017-06-07 13:31:48 GMT <mtsiak> e.g. event="start" will run only for one time.

2017-06-07 13:33:05 GMT <mtsiak> sorry, event="create"

2017-06-07 13:33:15 GMT <iblanco> you can add an event listener to be executed on entering the task

2017-06-07 13:34:02 GMT <iblanco> and I think (not sure) that there are some global events that might be suitable for you.

2017-06-07 13:34:15 GMT <yreg> mtsiak, if the idea is to provide default value for a property, I think there is way to do it using workflow form filter

2017-06-07 13:34:54 GMT <iblanco> https://www.activiti.org/userguide/#eventDispatcher

2017-06-07 13:34:56 GMT <alfbot> Title: Activiti User Guide (at www.activiti.org)

2017-06-07 13:35:18 GMT <mtsiak> no, the idea is to check a document property before.

2017-06-07 13:35:25 GMT <yreg> mtsiak, check this http://docs.alfresco.com/5.0/concepts/dev-extensions-share-form-filters.html for reference

2017-06-07 13:35:26 GMT <alfbot> Title: Form Filters | Alfresco Documentation (at docs.alfresco.com)

2017-06-07 13:35:43 GMT <yreg> ah then go for what iblanco suggested

2017-06-07 13:36:10 GMT <mtsiak> yes. that's it.

2017-06-07 13:36:22 GMT <mtsiak> thanks iblanco, yreg

End of Daily Log

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