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-06 05:27:34 GMT <mtsiak1> hi all. in order to avoid the renaming when new version of document is being uploaded, loftux suggested changes on upload.post.js https://github.com/loftuxab/alfresco-community-loftux/blob/e501ccd6e38df00a573e49d858bb7e7eebabc8d3/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/repository/upload/upload.post.js

2017-10-06 05:27:35 GMT <alfbot> Title: alfresco-community-loftux/upload.post.js at e501ccd6e38df00a573e49d858bb7e7eebabc8d3 · loftuxab/alfresco-community-loftux · GitHub (at github.com)

2017-10-06 05:28:55 GMT <mtsiak1> how can i apply this file to overide the alfresco's core file?

2017-10-06 05:29:41 GMT <mtsiak1> or is there any other way to avoid it? cause i have not found any solution creating custom behaviours.

2017-10-06 06:22:56 GMT *** marsv024_ is now known as marsv024

2017-10-06 06:32:16 GMT <yreg> mtsiak1, put that file in $TOMCAT_HOME/shared/classes/alfresco/extensions/templates/webscripts/org/alfresco/repository/upload/ and restart alfresco

2017-10-06 06:34:22 GMT <cesarcapi> i know another option mtsiak1 --> https://github.com/keensoft/alfresco-version-by-name

2017-10-06 06:34:23 GMT <alfbot> Title: GitHub - keensoft/alfresco-version-by-name: Alfresco addon (auto-version files having the same name) (at github.com)

2017-10-06 07:09:25 GMT <mtsiak1> yreg: thanks, will do that.

2017-10-06 07:11:28 GMT <yreg> mtsiak1, or look at the option from cesarcapi

2017-10-06 07:23:40 GMT <mtsiak1> cesarcapi: it is not clear to me when behaviours occur in general. e.g. onCreateNode will run either when uploading a new version, or when creating a new doc, or when reverting to a previous version. .. every time.

2017-10-06 07:24:35 GMT <mtsiak1> also code contains "nodeService.addAspect", "nodeService.deleteNode" so i guess it will triger and other behaviours.

2017-10-06 07:25:39 GMT <mtsiak1> (sorry again, i have not been working with behaviours for a long time)

2017-10-06 07:32:02 GMT <mtsiak1> also on baseName.indexOf("-"), i am not sure if it ok for filenames with - that the user added. (sorry again if i am not correct here)

2017-10-06 07:32:28 GMT <cesarcapi> Well, the logic for this module will be a little bit more complicated (it may involve renaming documents or deleting them), and some behaviours are surely applied for taking care of activities events for example (I comment this from a functional point of view - I did not check the source).

2017-10-06 07:32:53 GMT <angelborroy> ~HtmlLogger flushlog

2017-10-06 07:32:53 GMT <alfbot> angelborroy: Woooosh, your log has been flushed...

2017-10-06 07:33:35 GMT <yreg> hello angelborroy !

2017-10-06 07:33:43 GMT <angelborroy> morning

2017-10-06 07:34:40 GMT <angelborroy> mtsiak1 for your use case, probably is better to apply Loftux approach

2017-10-06 07:34:58 GMT <angelborroy> mtsiak1 why do you discarded that option?

2017-10-06 07:35:34 GMT <angelborroy> you can include also a folder inside your AMP / JAR module from “extensions” folder in the same way yreg suggested you

2017-10-06 07:38:23 GMT <mtsiak1> angelborroy: yreg and loftlux suggested me this solution. but we do not in general override alfresco's core functionalities. So looked for other solutions, and not found .. I am adding this file to shared as yreg suggested.

2017-10-06 07:39:16 GMT <mtsiak1> thank tou again for your time and anwers.

2017-10-06 07:39:26 GMT <angelborroy> mtsiak1 ok, I understand you are looking for an alternative path

2017-10-06 07:39:28 GMT <mtsiak1> (answers)

2017-10-06 07:39:44 GMT <angelborroy> mtsiak how about hooking onChangeProperties policy?

2017-10-06 07:40:04 GMT <angelborroy> it looks like it should be enough

2017-10-06 07:40:36 GMT <angelborroy> NodeServicePolicies.onUpdateProperties

2017-10-06 07:41:22 GMT <angelborroy> the hardest at this point is to decide is the “cm:name” changing is produced by Alfresco itself or by the real user

2017-10-06 07:42:04 GMT <angelborroy> imo this is the main reason to override that upload.post.js core Web Script

2017-10-06 07:42:26 GMT <angelborroy> AFaust suggested some years ago to include a few lines in Alfresco repo to allow Web Scripts extensions also in core

2017-10-06 07:42:43 GMT <angelborroy> You know that currently is possible to extend Share Web Scripts

2017-10-06 07:43:02 GMT <angelborroy> Anyway, for this use case, my guess is that overwritting is the right path

2017-10-06 07:43:19 GMT <AFaust> re what angelborroy mentioned: https://github.com/Acosix/alfresco-utility/blob/master/repository/src/main/java/de/acosix/alfresco/utility/repo/web/scripts/TenantExtensibilityContainer.java

2017-10-06 07:43:20 GMT <alfbot> Title: alfresco-utility/TenantExtensibilityContainer.java at master · Acosix/alfresco-utility · GitHub (at github.com)

2017-10-06 09:55:47 GMT <DarkStar1> Hi everyone

2017-10-06 10:00:17 GMT <bmejias> Hi DarkStar1

2017-10-06 10:00:20 GMT <bmejias> long time!

2017-10-06 10:01:07 GMT <DarkStar1> bmejias: Could say the same to you.

2017-10-06 10:01:16 GMT <DarkStar1> bmejias: Been busy preparing. :)

2017-10-06 10:01:48 GMT <bmejias> exactly... I haven't been that much on the channel this whole year.

2017-10-06 10:02:01 GMT <bmejias> DarkStar1, preparing what? demo for the Hackathon?

2017-10-06 10:02:33 GMT <yreg> bmejias, well DarkStar1 is preparing for a very different thing !

2017-10-06 10:02:35 GMT <DarkStar1> bmejias: baby arrives in 5 weeks time

2017-10-06 10:02:41 GMT <yreg> a lifechanging event <grin>

2017-10-06 10:03:07 GMT <bmejias> DarkStar1 wow.... that's awesome... and indeed... life changing event!

2017-10-06 10:04:51 GMT <DarkStar1> First I have to survive this tomorrow: http://www.toughest.se/en/events/gothenburg/

2017-10-06 10:04:53 GMT <alfbot> Title: Gothenburg | Toughest OCR - The leading Nordic OCR. More and bigger obstacles than most OCR (at www.toughest.se)

2017-10-06 10:08:57 GMT <mtsiak1> i had not choosen to install alfresco as a service, when installing. How can i change that now?

2017-10-06 10:10:23 GMT <DarkStar1> mtsiak1: If you're installing on ubuntu 16.04+ just create a systemd service file for the installation

2017-10-06 10:10:34 GMT <DarkStar1> you installed*

2017-10-06 10:11:05 GMT <mtsiak1> (ubuntu 16.04)

2017-10-06 10:11:39 GMT <DarkStar1> https://gist.github.com/fmaul/b05d9b8d8b5ff8ff0a0657f2c25d7d8d is an example systemd file

2017-10-06 10:11:40 GMT <alfbot> Title: Alfresco systemd service sample configuration file /etc/systemd/system/alfresco.service · GitHub (at gist.github.com)

2017-10-06 10:12:19 GMT <DarkStar1> mtsiak1: create it in: /etc/systemd/system/ or symlink it to that path

2017-10-06 10:12:31 GMT <mtsiak1> DarkStar1 ok thanks

2017-10-06 10:12:48 GMT <DarkStar1> mtsiak1: Then afterwards: https://paste.fedoraproject.org/paste/3dI0QMhZR2TZV-IOHbcl9A

2017-10-06 10:12:49 GMT <alfbot> Title: Untitled - Modern Paste (at paste.fedoraproject.org)

2017-10-06 10:31:26 GMT <mtsiak1> for now i am using catalina.sh start, having our tomcat/bin/setenv.sh

2017-10-06 10:32:11 GMT <mtsiak1> i guess /opt/alfresco/alfresco.sh start is not the same, as is starts all related services if any.

2017-10-06 10:33:45 GMT <mtsiak1> but, if the corresponding files are not found, i quess, it is the same result (only e.g. libbreoffice will start)

2017-10-06 10:36:30 GMT <mtsiak1> two questions: (a) should i create an 'alfresco' user? and with what permitions? (b) our /opt/alfresco/tomcat/bin/setenv.sh should be also copied to /opt/alfresco/scripts/setenv.sh ?

2017-10-06 10:47:34 GMT <cesarcapi> a) yes, it is recommended a user with no privileges

2017-10-06 10:48:00 GMT <cesarcapi> b) no

2017-10-06 10:49:04 GMT <cesarcapi> c) I recommend to use alfresco.sh script for startup and $TOMCAT/bin/setenv.sh for JVM settings

2017-10-06 10:55:50 GMT <bmejias> +1 to what cesarcapi said

2017-10-06 10:59:03 GMT <mtsiak1> i think $TOMCAT/bin/setenv.sh is not called on /opt/alfresco/alfresco.sh start

2017-10-06 11:00:22 GMT <mtsiak1> so how do i get jvm setttings to be started up?

2017-10-06 11:01:08 GMT <cesarcapi> it is

2017-10-06 11:01:54 GMT <mtsiak1> alfresco.sh start -- calls ---> tomcat/scripts/ctl.sh start

2017-10-06 11:02:04 GMT <mtsiak1> (on alfresco 5.2)

2017-10-06 11:02:25 GMT <mtsiak1> ok then.

2017-10-06 11:02:28 GMT <cesarcapi> alfresco.sh script (calls to) --> tomcat/scripts/ctl.sh --> tomcat/bin/startup.sh --> tomcat/bin/catalina.sh (that calls to setenv.sh)

2017-10-06 11:03:00 GMT <mtsiak1> ok then. missed all that.

2017-10-06 11:03:16 GMT <mtsiak1> thank you ceasar.

2017-10-06 11:09:32 GMT <cesarcapi> An additional note, in last CE (201707GA) I saw that some JVM options are (again) included in tomcat/scripts/ctl.sh, so take care when setting in setenv.sh JVM properties (for example for -Xmx and _Xms) if some JAVA_OPTS are set in ctl.sh for example

2017-10-06 11:14:39 GMT <mtsiak1> i am using 07 version.! so JAVA_OPTS that we set in setenv.sh will be overriden?

2017-10-06 11:15:39 GMT <DarkStar1> Sorry mtsiak1 I was on a vpn and have not been able to follow the conversation

2017-10-06 11:16:01 GMT <cesarcapi> not exactly, but you may see some other properties concatenated if you "ps aux | grep alfresco"

2017-10-06 11:17:52 GMT <mtsiak1> that is ok DarkStar1, thank you for concern.

2017-10-06 11:20:05 GMT <DarkStar1> Qq, has anyone had to allow for clickable link in document preview?

2017-10-06 11:29:26 GMT <mtsiak1> ok cesar. I will give it a try, and in the end with ps aux, i will get to test what jvm options have prevailed..

2017-10-06 11:30:27 GMT <cesarcapi> my option was to clean JVM options of ctl.sh (if any) and set them in setenv.sh

2017-10-06 11:37:25 GMT <yreg> DarkStar1, I did

2017-10-06 11:38:22 GMT <yreg> DarkStar1, https://github.com/Alfresco/share-old/pull/2

2017-10-06 11:38:23 GMT <alfbot> Title: MNT-17527 Add support for annotation layer by yregaieg · Pull Request #2 · Alfresco/share-old · GitHub (at github.com)

2017-10-06 11:39:17 GMT <yreg> https://github.com/Alfresco/share-old/pull/2/commits/9b89fdbe72f0d6ba7ae24d396fa246ce9c2c498c

2017-10-06 11:39:18 GMT <alfbot> Title: MNT-17527 Add support for annotation layer by yregaieg · Pull Request #2 · Alfresco/share-old · GitHub (at github.com)

2017-10-06 11:48:11 GMT <DarkStar1> yreg: Cool!! Thanks. I'll look into the issue now

2017-10-06 11:58:41 GMT <mtsiak1> and one more question. I want to boostrap some files under /share/page/repository#filter=path%7C%2FData%2520Dictionary%2FScripts%7C&page=1 (Repository> Data Dictionary> Scripts).

2017-10-06 11:58:41 GMT <mtsiak1> In my GenericBootstrapPatch bean, what should be the property "path" in "bootstrapView" set to?

2017-10-06 12:04:27 GMT <mtsiak1> i have notices some variables like ${spaces.company_home.childname}, ${system.system_container.childname}, ${alfresco_user_store.system_container.childname}, ${spaces.company_home.childname}, but where are they set?

2017-10-06 12:04:43 GMT <mtsiak1> .. noticed*

2017-10-06 12:05:13 GMT <yreg> mtsiak1, https://github.com/Alfresco/community-edition-old/blob/2c1eff9953d3105e738f7b06ba9ba8a079ca4c24/projects/repository/config/alfresco/patch/patch-services-context.xml#L176

2017-10-06 12:05:14 GMT <alfbot> Title: community-edition-old/patch-services-context.xml at 2c1eff9953d3105e738f7b06ba9ba8a079ca4c24 · Alfresco/community-edition-old · GitHub (at github.com)

2017-10-06 12:08:15 GMT <mtsiak1> ok, yreg, thanks. I will copy the corresponding paths.

2017-10-06 12:11:15 GMT <douglascrp> morning everybody

2017-10-06 12:13:32 GMT <AFaust> mtsiak1 yreg: I strongly recommend using the import module component approach over any "XYPatch" ones. A "Patch" is meant to deal with bootstraps/migrations between different Alfresco DB schema versions, whereas a "MduleComponent" is specifically meant for bootstrap / migration when a specific module is being setup / upgraded

2017-10-06 12:21:41 GMT <mtsiak1> afaust for example http://docs.alfresco.com/5.2/concepts/dev-extensions-modules-importing-module-data.html ?

2017-10-06 12:21:42 GMT <alfbot> Title: Importing Module Data | Alfresco Documentation (at docs.alfresco.com)

2017-10-06 12:22:09 GMT <yreg> mtsiak1, exactly

2017-10-06 12:22:51 GMT <yreg> or http://docs.alfresco.com/5.2/concepts/dev-extensions-modules-bootstrapping-files-spaces-xml.html

2017-10-06 12:22:52 GMT <alfbot> Title: Bootstrapping Files/Spaces using XML | Alfresco Documentation (at docs.alfresco.com)

2017-10-06 12:26:30 GMT <fcorti> Today at 4pm CEST (in one hour and a half) the Alfresco Virtual Global Hackathon Showcase. Join us!

2017-10-06 12:26:31 GMT <fcorti> https://youtu.be/TZdIdTk6D3U

2017-10-06 13:54:54 GMT <douglascrp> has the showcase url changed?

2017-10-06 13:56:35 GMT <MTielemans> fcorti_ this page says the event has already passed: https://www.alfresco.com/events/webinars/office-hours-global-hackathon-demo

2017-10-06 13:56:38 GMT <alfbot> Title: Office Hours: Global Hackathon Demo | Alfresco (at www.alfresco.com)

2017-10-06 13:57:00 GMT <douglascrp> is anyone watching it?

2017-10-06 13:57:06 GMT <douglascrp> I see there are 20 awaiting

2017-10-06 13:57:50 GMT <douglascrp> I guess it is not being broadcasted yet

2017-10-06 13:58:54 GMT <fcorti_> Hi guys

2017-10-06 13:59:07 GMT <douglascrp> fcorti_, hi

2017-10-06 13:59:21 GMT <fcorti_> yes, youtube is broken

2017-10-06 13:59:33 GMT <fcorti_> The correct link is confirmed

2017-10-06 13:59:34 GMT <fcorti_> https://youtu.be/TZdIdTk6D3U

2017-10-06 13:59:40 GMT <fcorti_> You can join now!

2017-10-06 13:59:51 GMT <douglascrp> fcorti_, tks

2017-10-06 14:00:34 GMT <fcorti_> Starting now!

2017-10-06 14:00:43 GMT <alfbot> resplin: Sent 1 day, 5 hours, and 58 minutes ago: <digcat> you guys do plenty with US Gov, does Oracles letter deserve a response, or is it better just to ignore?

2017-10-06 14:00:44 GMT <alfbot> resplin: Sent 1 day, 5 hours, and 57 minutes ago: <digcat> heres their letter https://assets.documentcloud.org/documents/4064079/ATC-Response-1.pdf

2017-10-06 14:05:30 GMT <fcorti_> You can find the order of the projects here

2017-10-06 14:05:31 GMT <fcorti_> https://community.alfresco.com/docs/DOC-7046-projects-and-teams-global-virtual-hack-a-thon-2017

2017-10-06 14:05:33 GMT <alfbot> Title: Projects and Teams Global Virtual Hack-a-thon 2017 | Alfresco Community (at community.alfresco.com)

2017-10-06 14:14:18 GMT <douglascrp> :D

2017-10-06 14:14:20 GMT <douglascrp> good one

2017-10-06 14:14:31 GMT <douglascrp> the tests are green

2017-10-06 14:17:32 GMT <douglascrp> is David the one working on the extract metadata from pdf files?

2017-10-06 14:18:55 GMT <fcorti_> nope, he should be about Image Face Analyzer

2017-10-06 14:19:01 GMT <douglascrp> fcorti_, tks

2017-10-06 14:19:29 GMT <fcorti_> douglascrp you are welcome... hope to have you here next time :-)

2017-10-06 14:19:35 GMT <fcorti_> showing your project, I mean

2017-10-06 14:21:11 GMT <douglascrp> fcorti_, I am just watching today

2017-10-06 14:21:12 GMT <douglascrp> :D

2017-10-06 14:21:32 GMT <resplin> MarkTielemans: Nice add-on.

2017-10-06 14:21:41 GMT <fcorti_> +1 MarkTielemans

2017-10-06 14:24:38 GMT <douglascrp> nice

2017-10-06 14:25:01 GMT <fcorti_> yes, definitely

2017-10-06 14:25:25 GMT <bmejias> indeed.... really cool

2017-10-06 14:25:33 GMT <bmejias> I don't want to present now

2017-10-06 14:25:50 GMT <douglascrp> bmejias, :D

2017-10-06 14:32:17 GMT <resplin> It would be great to integrate this healthy repo check with the OOTBee Support Tools.

2017-10-06 14:32:38 GMT <douglascrp> resplin, good idea

2017-10-06 14:37:48 GMT <resplin> I have to ask fewer questions. We are already running out of time!

2017-10-06 14:38:02 GMT <fcorti_> not a problem, we can extend

2017-10-06 14:39:15 GMT <bmejias> very interesting stuff

2017-10-06 14:39:22 GMT <bmejias> thanks mikael and Angel

2017-10-06 14:43:10 GMT <resplin> Indeed. Thank you.

2017-10-06 14:49:26 GMT <douglascrp> too much echo

2017-10-06 14:51:33 GMT <bmejias> for some reason the camara is no working?

2017-10-06 14:51:38 GMT <fcorti_> yes, now solved

2017-10-06 14:51:42 GMT <bmejias> he's probably at a pub or something

2017-10-06 14:51:50 GMT <bmejias> he doesn't want to show

2017-10-06 14:51:52 GMT <bmejias> :D

2017-10-06 14:51:54 GMT <fcorti_> eh... lucky guy

2017-10-06 14:58:01 GMT <bmejias> go mikael!

2017-10-06 14:59:45 GMT <douglascrp> ok guys... I will have to leave now

2017-10-06 14:59:59 GMT <douglascrp> and I will watch the last part later

2017-10-06 15:00:01 GMT <douglascrp> see ya

2017-10-06 15:00:02 GMT <fcorti_> thank you for attending here douglascrp

2017-10-06 15:04:23 GMT <bmejias> cheers douglascrp

2017-10-06 15:20:33 GMT <resplin> So the next Brussels hack room will have representatives from three companies.

2017-10-06 15:48:48 GMT <resplin> @AFaust Sorry I disappeared for a week.

2017-10-06 15:49:06 GMT <resplin> Staying up all night at the hack-a-thon, then flying back to the States, left me rather ill.

2017-10-06 15:49:10 GMT <resplin> I'm finally doing better today.

2017-10-06 15:49:31 GMT <resplin> AFaust: You wanted to discuss AWS/cloud strategy.

2017-10-06 15:49:34 GMT <AFaust> No problem - I was quite busy as well, as evidenced by the time it took me between DM and the mail to you

2017-10-06 15:49:52 GMT <resplin> You mailed me?

2017-10-06 15:49:54 GMT <resplin> Oh, I see it now.

2017-10-06 15:49:56 GMT <AFaust> Today, yes

2017-10-06 15:49:58 GMT <resplin> I haven't checked my mail yet today.

2017-10-06 15:50:13 GMT <resplin> digcat: Thanks for the link to the Oracle letter. I hadn't seen that.

2017-10-06 16:51:23 GMT <yreg> Why would making a none mandatory property mandatory be a none incremental change

2017-10-06 16:51:24 GMT <yreg> ?

2017-10-06 17:04:50 GMT <yreg> How can I force this non incremental change ? I couldn't find that info back by googling !

2017-10-06 17:12:17 GMT <AFaust> yreg: Delete the old model in SOLR and restart...

2017-10-06 17:12:27 GMT <AFaust> Then it does not have anything to validate the change against...

2017-10-06 17:24:07 GMT <resplin> yreg: You are adding an optional property?

2017-10-06 17:24:18 GMT <resplin> I would have thought that would be an incremental change.

2017-10-06 17:24:56 GMT <AFaust> No, he is altering an existing property...

2017-10-06 17:25:07 GMT <resplin> Oh, I misread.

2017-10-06 17:25:10 GMT <resplin> That does make sense.

2017-10-06 17:25:33 GMT <AFaust> Right....

2017-10-06 17:25:59 GMT <AFaust> yreg: The reason why it is non-incremental is that existing nodes may be incomplete but lacking the sys:incomplete aspect marker

2017-10-06 17:26:59 GMT <fwu> hi all!

2017-10-06 17:31:13 GMT <resplin> Hey fwu

2017-10-06 17:31:30 GMT <fwu> resplin hello

2017-10-06 18:21:27 GMT <alfbot> eswbitto: Sent 1 week, 1 day, 11 hours, and 25 minutes ago: <yreg> thanks for the pointer, I will let the team know of that fork we will probably rebase our docker image on it

2017-10-06 18:22:53 GMT <eswbitto> I can't find any docs on how to search a user and what access they have for folder permissions on all of my sites. I have a user who's role in the company has changed and so their access also changes.

2017-10-06 18:23:09 GMT <eswbitto> Is it even possible to do something like that? Node browser maybe?

2017-10-06 19:57:00 GMT <mbui> I remember an addon which was showcased on beecon 2017 where you could edit nodes directly in the share node browser. Anyone know where I can find that?

2017-10-06 19:57:18 GMT <douglascrp> mbui, I believe it is the care4alf

2017-10-06 19:58:09 GMT <mbui> Thanks

2017-10-06 19:58:11 GMT <douglascrp> https://www.youtube.com/watch?v=DHpBzQwQoGg

2017-10-06 19:58:21 GMT <douglascrp> mbui, ^

End of Daily Log

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