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-01-11 01:35:08 GMT <douglascrp> DarkStar1, you, online now?

2018-01-11 04:01:29 GMT * xkahn sighs

2018-01-11 04:01:43 GMT <xkahn> Anyone have an example of an extension that tracks asset licenses?

2018-01-11 04:02:01 GMT <xkahn> For example, some content will be licensed under a creative commons license.

2018-01-11 04:02:05 GMT <xkahn> I need to track which ones.

2018-01-11 04:02:12 GMT <xkahn> And display usage rights information

2018-01-11 04:03:22 GMT <xkahn> I can just make a text field to hold this, I guess. But I imagine that I'm not thinking about some interesting use-cases.

2018-01-11 04:06:44 GMT <xkahn> I guess this is DAM-stuff

2018-01-11 04:06:46 GMT <xkahn> <copyrightHolder>

2018-01-11 04:06:46 GMT <xkahn> <Person rdf:about="https://www.flickr.com/people/archbob/">

2018-01-11 04:06:46 GMT <xkahn> <name>Yinan Chen</name>

2018-01-11 04:06:46 GMT <xkahn> </Person>

2018-01-11 04:06:46 GMT <xkahn> </copyrightHolder>

2018-01-11 04:06:47 GMT <xkahn> <copyrightYear>2014</copyrightYear>

2018-01-11 04:06:49 GMT <xkahn> <license>https://creativecommons.org/licenses/by/2.0/</license>

2018-01-11 04:06:51 GMT <xkahn> <provider>

2018-01-11 04:06:53 GMT <xkahn> <Organization rdf:about="https://www.flickr.com/">

2018-01-11 04:06:55 GMT <xkahn> <name>Flickr</name>

2018-01-11 04:06:57 GMT <xkahn> </Organization>

2018-01-11 04:06:59 GMT <xkahn> errr.

2018-01-11 04:07:01 GMT <xkahn> https://www.strehle.de/tim/weblog/archives/2015/12/04/1577

2018-01-11 04:07:03 GMT <alfbot> Title: Tim Strehle’s Blog » schema.org markup for a DAM system photo record (at www.strehle.de)

2018-01-11 08:11:57 GMT <yreg> xkahn, would this do : http://www.mojohaus.org/license-maven-plugin/examples/example-thirdparty.html

2018-01-11 08:11:58 GMT <alfbot> Title: License Maven Plugin – Thirdparty Licenses Examples (at www.mojohaus.org)

2018-01-11 08:48:04 GMT <qwebirc6072> Hi

2018-01-11 08:48:14 GMT <qwebirc6072> the alfresco analytics https://docs.alfresco.com/analytics/concepts/analytics-prereqs.html

2018-01-11 08:48:15 GMT <alfbot> Title: Prerequisites for using Alfresco Analytics | Alfresco Documentation (at docs.alfresco.com)

2018-01-11 08:48:22 GMT <qwebirc6072> is this only for enterprise edition ?

2018-01-11 08:48:31 GMT <angelborroy> yes

2018-01-11 08:48:49 GMT <angelborroy> something similar for Community is Alflytics

2018-01-11 08:49:03 GMT <qwebirc6072> okay thanks

2018-01-11 08:49:08 GMT <angelborroy> https://github.com/fcorti/Alflytics

2018-01-11 08:49:09 GMT <alfbot> Title: GitHub - fcorti/Alflytics: The Open Source Business Intelligence solution over the Alfresco platform. (at github.com)

2018-01-11 08:51:16 GMT <qwebirc6072> in order to use Alflytics do we need to install any amps to share.war or alfresco.war ?

2018-01-11 08:53:22 GMT <angelborroy> You need to install AMPS to both share and alfresco WARS

2018-01-11 08:53:29 GMT <angelborroy> And you also need to install a Pentaho server

2018-01-11 08:56:29 GMT <fcorti> Thnak you angelborroy for pointing qwebirc6072 on Alflytics.

2018-01-11 08:56:40 GMT <qwebirc6072> thanks angelborroy I'll try it out

2018-01-11 08:56:49 GMT <fcorti> With AAAR (the previous versions) you needed to install the AMP on Alfresco side.

2018-01-11 08:57:00 GMT <fcorti> With Alflytics, you don't need to install nothing on Alfresco side.

2018-01-11 08:57:08 GMT <angelborroy> fcorti, really?

2018-01-11 08:57:13 GMT <fcorti> yep

2018-01-11 08:57:19 GMT <fcorti> all is done using the standard APIs

2018-01-11 08:57:19 GMT <angelborroy> I didn’t know that!

2018-01-11 08:57:39 GMT <fcorti> ;-)

2018-01-11 08:57:42 GMT <qwebirc6072> thanks for the information @fcorti

2018-01-11 08:57:56 GMT <fcorti> more than welcome

2018-01-11 08:58:18 GMT <angelborroy> so you cannot access to stats/reports from Alfresco

2018-01-11 08:58:25 GMT <angelborroy> they are only available from Pentaho

2018-01-11 08:58:34 GMT <angelborroy> Does Pentaho support SSO?

2018-01-11 08:59:10 GMT <fcorti> This is my latest community project

2018-01-11 08:59:11 GMT <fcorti> https://github.com/fcorti/pentaho-dashboard-project

2018-01-11 08:59:12 GMT <alfbot> Title: GitHub - fcorti/pentaho-dashboard-project: Angular project developing the pentaho-dashboard npm package. (at github.com)

2018-01-11 08:59:19 GMT <fcorti> Yes, Pentaho supports SSO

2018-01-11 08:59:40 GMT <angelborroy> nice

2018-01-11 09:00:00 GMT <fcorti> http://devcon.alfresco.com/speaker/pedro-vale/

2018-01-11 09:00:01 GMT <alfbot> Title: Pedro Vale – Alfresco Developer Conference (at devcon.alfresco.com)

2018-01-11 09:00:01 GMT <fcorti> ;-)

2018-01-11 09:00:08 GMT <fcorti> Look who Pedro is!

2018-01-11 09:00:54 GMT <qwebirc6072> @fcorti do we need to copy postgresql jar file under data-integration/lib before running extraction in Alflytics ?

2018-01-11 09:00:57 GMT <angelborroy> I’m not able to understand a position with more than 10 words on it :D

2018-01-11 09:01:07 GMT <fcorti> :-D

2018-01-11 09:01:43 GMT <fcorti> He is the VP of two of the most used module in Pentaho... Pentaho is made by modules, differently from Alfresco.

2018-01-11 09:01:50 GMT <fcorti> VP of Engineering

2018-01-11 09:02:04 GMT <fcorti> He is from Lisbon... this is why he can join :-P

2018-01-11 09:02:30 GMT <angelborroy> Ok, so he knows very nice places to have a dinner!

2018-01-11 09:02:38 GMT <angelborroy> Now he is nicer to me :D

2018-01-11 09:02:40 GMT <fcorti> eeeexactly!

2018-01-11 09:03:04 GMT <fcorti> Pentaho has one of the main Companies there

2018-01-11 09:03:21 GMT <fcorti> qwebirc6072: it should be already there but you can run it and see the error

2018-01-11 09:03:35 GMT <qwebirc6072> okay

2018-01-11 09:37:48 GMT *** angelborroy_ is now known as angelborroy

2018-01-11 10:13:12 GMT <owerfelli> Hi all, is there an example of a webscript that return an image, we want to simulate the conent.get web script to return an image saved as node

2018-01-11 10:26:25 GMT <owerfelli> I mean parse image

2018-01-11 10:43:25 GMT <MTielemans> Anyone know why there is an enterprise and a community GetPeople webscript? And why it returns different results..

2018-01-11 10:43:31 GMT <MTielemans> Or what the difference is

2018-01-11 10:44:02 GMT <angelborroy> probably it could be related with license stuff

2018-01-11 10:44:15 GMT <angelborroy> the sell you enterprise for 1,000 users or so

2018-01-11 10:54:13 GMT <yreg> MTielemans, I struggled with that for a while a while back

2018-01-11 10:54:22 GMT <yreg> still does not make sense to me

2018-01-11 10:59:49 GMT <douglascrp> morning

2018-01-11 11:11:31 GMT <douglascrp_> guys, do you have any idea about what I can check to get an idea about how to implement a "good enough" processing queue?

2018-01-11 11:12:10 GMT <douglascrp_> I have a big number of folders that I have to process, and I need to include those in this queue using the after commit inside behaviours

2018-01-11 11:12:27 GMT <angelborroy> JMS?

2018-01-11 11:12:56 GMT <angelborroy> https://examples.javacodegeeks.com/enterprise-java/jms/jms-queue-example/

2018-01-11 11:12:57 GMT <alfbot> Title: JMS Queue Example | Examples Java Code Geeks - 2018 (at examples.javacodegeeks.com)

2018-01-11 11:13:29 GMT <angelborroy> I think Alfreso is using something like this to handle requests from Desktop Client

2018-01-11 11:16:55 GMT <douglascrp_> angelborroy, is that already inside alfresco, I mean, the JMS dependency?

2018-01-11 11:17:02 GMT <angelborroy> nope

2018-01-11 11:17:05 GMT <angelborroy> only for Enterprise

2018-01-11 11:17:09 GMT <douglascrp_> ah, ok

2018-01-11 11:17:13 GMT <douglascrp_> let me check the link

2018-01-11 11:17:15 GMT <douglascrp_> tks

2018-01-11 11:35:06 GMT <AFaust> douglascrp, angelborroy: If your content already is inside Alfresco, why not use an aspect / metadata to mark/identify relevant nodes, then use a job that processes a sub-set of these and job locking to ensure only one job runs at any time... that way you'll have sequential processing without any external dependency

2018-01-11 11:36:12 GMT <douglascrp> AFaust, even better if that is something already inside Alfresco

2018-01-11 11:36:19 GMT <douglascrp> any reference?

2018-01-11 11:36:26 GMT <angelborroy> douglascrp AFaust +1

2018-01-11 11:36:32 GMT <douglascrp> and another question, this time about Java errors

2018-01-11 11:36:49 GMT <douglascrp> I have been seeing this error several times in the past few days

2018-01-11 11:36:49 GMT <douglascrp> https://pastebin.com/Lf31jQri

2018-01-11 11:36:50 GMT <alfbot> Title: # # A fatal error has been detected by the Java Runtime Environment: # # SIG - Pastebin.com (at pastebin.com)

2018-01-11 11:37:04 GMT <douglascrp> it usually happens when I start my repo project, based on SDK 3.0.1

2018-01-11 11:37:33 GMT <douglascrp> it freezes my computer, and the only way to get back to work is by restarting it by pressing the power button

2018-01-11 11:37:49 GMT <douglascrp> I was trying to understand it, but I have no idea

2018-01-11 11:39:49 GMT <AFaust> douglascrp: Reference for which part? The full specific use case, or any of the individual components?

2018-01-11 11:40:23 GMT <douglascrp> any code inside already already using that idea

2018-01-11 11:40:28 GMT <douglascrp> AFaust, ^

2018-01-11 11:40:47 GMT <douglascrp> do you know about any ootb job working that way? any addon I can check?

2018-01-11 11:41:33 GMT <douglascrp> my code is working, logically speaking, but it is not performing well, as I have no control about how many objects are being dealt with at the same time

2018-01-11 11:41:59 GMT <douglascrp> I have a behaviour attached to the update properties, and in the after commit I process the object

2018-01-11 11:42:18 GMT <AFaust> Well - the trashcan cleaner comes to mind as a job that should do this. But of course it is implemented horribly...

2018-01-11 11:42:34 GMT <douglascrp> AFaust, not a good example, I guess :D

2018-01-11 11:42:41 GMT <AFaust> It does most of what I mentioned without the job locking...

2018-01-11 11:43:06 GMT <AFaust> douglascrp: You expect a good example within Alfresco for an intelligent use case pattern?

2018-01-11 11:43:07 GMT <douglascrp> AFaust, ok, so I can take a look at that, but how about the job locking? any example on this?

2018-01-11 11:43:49 GMT <AFaust> A consolidation job in my alfresco-audit module does a proper "job with locking"

2018-01-11 11:43:51 GMT <AFaust> see https://github.com/Acosix/alfresco-audit/blob/master/src/main/java/de/acosix/alfresco/audit/repo/job/ConsolidateActiveUsersAuditJob.java

2018-01-11 11:43:52 GMT <alfbot> Title: alfresco-audit/ConsolidateActiveUsersAuditJob.java at master · Acosix/alfresco-audit · GitHub (at github.com)

2018-01-11 11:43:59 GMT <douglascrp> perfect... tks

2018-01-11 11:44:25 GMT <AFaust> Uses a utility for jobs: https://github.com/Acosix/alfresco-utility/blob/master/repository/src/main/java/de/acosix/alfresco/utility/repo/job/JobUtilities.java

2018-01-11 11:44:26 GMT <alfbot> Title: alfresco-utility/JobUtilities.java at master · Acosix/alfresco-utility · GitHub (at github.com)

2018-01-11 11:58:18 GMT <douglascrp> about the java error I linked before, I am trying to replace the oracle jdk with the openjdk

2018-01-11 12:00:36 GMT <douglascrp_> I have replaced oracle jdk with openjdk

2018-01-11 12:00:44 GMT <douglascrp_> when I started the project, another freeze

2018-01-11 12:16:43 GMT <AFaust> douglascrp_: Quite a nasty error you have there. Just out of interest: are you using SDK with the hot reload agent / JVM hack or without?

2018-01-11 12:17:19 GMT <douglascrp_> AFaust, without

2018-01-11 12:17:27 GMT <AFaust> Never had any issues like this myself with either Oracle or OpenJDK

2018-01-11 12:17:33 GMT <douglascrp_> I have not even installed the agent

2018-01-11 12:17:41 GMT <douglascrp_> the weird thing is that it happens with both

2018-01-11 12:17:50 GMT <douglascrp_> I am afraid I have a hardware problem

2018-01-11 12:18:37 GMT <AFaust> Hmm, tripped faulty memory area. Could be, but what are the chances that you'd access the same memory area for different runs with different JVMs, I wonder...

2018-01-11 12:19:38 GMT <douglascrp_> AFaust, I have no idea what you are talking about now :D

2018-01-11 12:20:09 GMT <AFaust> You mentioned hardware problem - so I was considering the possible case of you having a defective area in RAM

2018-01-11 12:20:28 GMT <douglascrp_> well, I replaced my RAM module a month ago

2018-01-11 12:20:40 GMT <douglascrp_> but I can not remember if I had that problem before that

2018-01-11 12:20:51 GMT <douglascrp_> a quick test I can do is to put back the original RAM module

2018-01-11 12:21:02 GMT <douglascrp_> I exchanged a 4GB for a 8GB

2018-01-11 12:21:11 GMT <douglascrp_> I am going to do this test right now

2018-01-11 12:21:13 GMT <douglascrp_> brb

2018-01-11 12:22:06 GMT <AFaust> I had an upgrade at a customer fail once because they had a defective memory in one of the cluster's servers. It triggered a segmentation fault when running an SQL patch

2018-01-11 12:22:52 GMT <AFaust> Next day, customer sent me straight home at ~2 pm once they realised I had been there since 9am the day before...

2018-01-11 12:23:39 GMT <AFaust> Took almost all night to try the upgrade 2-3 times, restore the pre-upgrade state and then analyse the issue...

2018-01-11 12:24:13 GMT <AFaust> None of the testing on a replica system can prepare you for that kind of issue, unfortunately

2018-01-11 12:26:04 GMT <douglascrp> ok, back with the original 8 GB RAM (2 4 GB modules)

2018-01-11 12:30:31 GMT <douglascrp> AFaust, my project is up and running

2018-01-11 12:30:48 GMT <douglascrp> I am going to keep using it as it is right now for a few days, just to make sure

2018-01-11 12:31:02 GMT <douglascrp> if the problem does not happen again, then I am going to use the warranty

2018-01-11 12:35:33 GMT <xkahn> yreg: Isn't that source code though? I'm interested in asset licenses.

2018-01-11 13:14:25 GMT <AFaust> MarkTielemans, yreg, angelborroy: Yeah - EnterprisePeople only exists in Enterprise to allow a dirty thread-local hack to show / count people including deleted that still have a license. Could have easily been a separate root scope bean instead of an override...

2018-01-11 13:18:03 GMT <AFaust> The nasty thing: the thread-local is not used in a try-finally construct (within an Admin Console that is the only one to use that added functionality AFAIK), so technically the setting of that could spill over from one request to another

2018-01-11 13:19:06 GMT <AFaust> Oh - and the normal reset logic also looks to be a bit broken in some of the Enterprise versions customer of mine have, in which there is no reset and it always spills over to potential requests from the Share UI

2018-01-11 14:18:14 GMT <yreg> AFaust, yet another reason for you to "like" node <grin> : https://hackernoon.com/im-harvesting-credit-card-numbers-and-passwords-from-your-site-here-s-how-9a8cb347c5b5

2018-01-11 14:18:16 GMT <alfbot> Title: I’m harvesting credit card numbers and passwords from your site. Here’s how. (at hackernoon.com)

2018-01-11 14:18:36 GMT <yreg> I am seriously wondering if ADF has it :D

2018-01-11 15:17:56 GMT <AFaust> yreg: Yeah - I read that when Andreas retweeted the article

2018-01-11 16:41:22 GMT *** DarkSta__ is now known as DarkStar1

End of Daily Log

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