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-03-09 07:15:23 GMT <yreg> Good morning

2018-03-09 08:21:00 GMT <Loftux> Customer reporting that AOS when creating a folder from Windows Explorer in "My files" it fails, but it works in site document library. Anyone seen this issue?

2018-03-09 08:33:02 GMT <CptLuxx> another stupid question where can i configure the default site dashboard when someone is creating a new site?

2018-03-09 08:33:40 GMT <angelborroy> CptLuxx you can use site-presets.xml

2018-03-09 08:34:08 GMT <angelborroy> https://docs.alfresco.com/community/concepts/dev-extensions-share-site-presets.html

2018-03-09 08:34:09 GMT <alfbot> Title: Site presets | Alfresco Documentation (at docs.alfresco.com)

2018-03-09 08:34:28 GMT <CptLuxx> thanks i look at it

2018-03-09 08:34:45 GMT <CptLuxx> has this changed since 4.2 ?

2018-03-09 08:35:33 GMT <CptLuxx> if no i could just copy paste it from 4.2 :3

2018-03-09 08:36:26 GMT <angelborroy> I think that it’s the same

2018-03-09 08:39:24 GMT <CptLuxx> good good next thing

2018-03-09 08:39:41 GMT <CptLuxx> i have an horribel looking giant site.get.js script that creates folders and mindmaps under a share

2018-03-09 08:39:54 GMT <CptLuxx> but well.. at the moment i write that im pretty sure nobody can help with that

2018-03-09 08:40:05 GMT <CptLuxx> this script fails to create a directory in a site..

2018-03-09 08:40:29 GMT <CptLuxx> if someone wants it.. https://paste.ee/p/MFY6B :3

2018-03-09 08:40:30 GMT <alfbot> Title: Paste.ee - View paste MFY6B (at paste.ee)

2018-03-09 09:02:32 GMT *** angelborroy_ is now known as angelborroy

2018-03-09 09:27:21 GMT *** kpatticha is now known as kpatticha|wfh

2018-03-09 09:28:47 GMT <manisha> hi all

2018-03-09 09:28:55 GMT <manisha> I am exploring the addon GitHub - fegorama/alfviral: Alfresco Virus Alert

2018-03-09 09:29:04 GMT <manisha> I am using the COMMAND mode to scan the files for virus.I have the following configuration in alfviral.properties file.

2018-03-09 09:29:12 GMT <manisha> alfviral.mode=COMMAND

2018-03-09 09:29:22 GMT <manisha> alfviral.command.exec=/usr/bin/clamscan

2018-03-09 09:29:29 GMT <manisha> When the following code is executed

2018-03-09 09:29:38 GMT <manisha> ProcessBuilder pb = new ProcessBuilder(this.command);

2018-03-09 09:29:48 GMT <manisha> Process process = pb.start();

2018-03-09 09:29:56 GMT <manisha> res = process.waitFor();

2018-03-09 09:30:08 GMT <manisha> logger.debug("the result is"+res);

2018-03-09 09:30:23 GMT <manisha> and uploaded a file of mimetype application/x-dosexec,I got the following logs

2018-03-09 09:33:03 GMT <manisha> https://pastebin.com/GTusS24p

2018-03-09 09:33:04 GMT <alfbot> Title: 2018-03-07 19:12:38,753 DEBUG com.fegor.alfresco.services.AntivirusServiceImpl: - Pastebin.com (at pastebin.com)

2018-03-09 09:33:30 GMT <manisha> So,when I have done a little bit of googling,I have understood that 127 is a special exit code which means that the command is not found.

2018-03-09 09:33:46 GMT <manisha> I am surprised that logs are showing that the command is not found because when I have directly run the clamscan

2018-03-09 09:33:58 GMT <manisha> on a file,it is working perfectly and showing that the file is infected if the file is infected and clean if the file is not infected.

2018-03-09 09:34:12 GMT <manisha> ayushi@ayushi-GA-78LMT-S2PT:~$ clamscan ~/Downloads/stepup.exe

2018-03-09 09:34:33 GMT <manisha> ----------- SCAN SUMMARY -----------

2018-03-09 09:34:40 GMT <manisha> Known viruses: 6431792

2018-03-09 09:34:50 GMT <manisha> Engine version: 0.99.2

2018-03-09 09:34:56 GMT <manisha> Scanned directories: 0

2018-03-09 09:35:03 GMT <manisha> Scanned files: 1

2018-03-09 09:35:11 GMT <manisha> Infected files: 0

2018-03-09 09:35:18 GMT <manisha> Data scanned: 9.14 MB

2018-03-09 09:35:25 GMT <manisha> Data read: 2.46 MB (ratio 3.72:1)

2018-03-09 09:35:31 GMT <manisha> Time: 13.816 sec (0 m 13 s)

2018-03-09 09:38:36 GMT <manisha> can anyone help why it is not able to call the clamscan command from within the java program and why it is giving the exit code 127

2018-03-09 09:48:25 GMT <Tichodroma> Getting versions over the Cloud REST API: https://api.alfresco.com/example.com/public/alfresco/versions/1/nodes/590b692a-5588-405f-858e-a73041d5002e/versions should return the versions JSON for a node, correct?

2018-03-09 09:48:44 GMT <Tichodroma> This fails with 404 Not Found and body "errorKey":"Unable to locate resource resource for :nodes versions"

2018-03-09 09:49:17 GMT <Tichodroma> the node does exists, requests like https://api.alfresco.com/example.com/public/alfresco/versions/1/nodes/590b692a-5588-405f-858e-a73041d5002e/content work fine.

2018-03-09 09:49:49 GMT <Tichodroma> Are the versions available using the REST API like this?

2018-03-09 10:25:11 GMT <CptLuxx> man im unable to find the old site preset xml in 4.2 where this dude configured all

2018-03-09 10:25:20 GMT <CptLuxx> even a grep over everything did not find it

2018-03-09 13:14:46 GMT <douglascrp> morning

2018-03-09 13:15:02 GMT <douglascrp> is anyone here using hotswap with the 3.0 SDK?

2018-03-09 13:15:17 GMT <yreg> douglascrp, I do that from time to time

2018-03-09 13:15:20 GMT <douglascrp> I am using it, but it is causing some problems with Java

2018-03-09 13:15:21 GMT <yreg> (but rarely)

2018-03-09 13:15:32 GMT <douglascrp> I find it useful, but not for constant use

2018-03-09 13:15:46 GMT <douglascrp> it breaks Java too constantly

2018-03-09 13:16:19 GMT <yreg> haven't experienced that at all

2018-03-09 13:16:31 GMT <yreg> but as you know we rarely use SDK around here

2018-03-09 13:16:56 GMT <yreg> so I haven't had much chance to come across it :P

2018-03-09 13:17:18 GMT <douglascrp> I see

2018-03-09 14:12:15 GMT <popochon2> byebye

2018-03-09 14:38:55 GMT <twen> hello

2018-03-09 15:13:53 GMT <yreg> Hey twen !

2018-03-09 15:14:06 GMT <twen> hey yreg :)

2018-03-09 21:09:45 GMT <douglascrp> AFaust, hey

2018-03-09 21:10:08 GMT <douglascrp> I remember you have some custom classes to deal with spring beans changes

2018-03-09 21:10:32 GMT <douglascrp> I was trying to understand if it would be possible to use those utility classes to extend a bean like this one https://github.com/Conexiam/alfresco-acl-templates/blob/master/acl-templates-repo/src/main/resources/alfresco/module/acl-templates-repo/context/service-context.xml#L49

2018-03-09 21:10:33 GMT <alfbot> Title: alfresco-acl-templates/service-context.xml at master · Conexiam/alfresco-acl-templates · GitHub (at github.com)

2018-03-09 21:10:53 GMT <douglascrp> what I want to do is to add new elements into the map https://github.com/Conexiam/alfresco-acl-templates/blob/master/acl-templates-repo/src/main/resources/alfresco/module/acl-templates-repo/context/service-context.xml#L65

2018-03-09 21:10:54 GMT <alfbot> Title: alfresco-acl-templates/service-context.xml at master · Conexiam/alfresco-acl-templates · GitHub (at github.com)

2018-03-09 21:26:31 GMT <AFaust> hi

2018-03-09 21:27:07 GMT <AFaust> Yes, it would be possible...

2018-03-09 21:27:59 GMT <AFaust> i.e. with this class: https://github.com/Acosix/alfresco-utility/blob/master/common/src/main/java/de/acosix/alfresco/utility/common/spring/PropertyAlteringBeanFactoryPostProcessor.java

2018-03-09 21:28:00 GMT <alfbot> Title: alfresco-utility/PropertyAlteringBeanFactoryPostProcessor.java at master · Acosix/alfresco-utility · GitHub (at github.com)

2018-03-09 21:29:02 GMT <AFaust> You can configure a value map / bean reference map, target a specific bean (like the acl-template-service) and specify the post processor to merge your custom map with the default map

2018-03-09 21:30:05 GMT <AFaust> If you only need to modify a single property, then that class would be the easiest to use

2018-03-09 21:30:20 GMT <AFaust> If you have to modify multiple properties, potentially on multiple beans, then there is also https://github.com/Acosix/alfresco-utility/blob/master/common/src/main/java/de/acosix/alfresco/utility/common/spring/BeanDefinitionFromPropertiesPostProcessor.java

2018-03-09 21:30:21 GMT <alfbot> Title: alfresco-utility/BeanDefinitionFromPropertiesPostProcessor.java at master · Acosix/alfresco-utility · GitHub (at github.com)

2018-03-09 21:30:49 GMT <AFaust> This allows override / additional configuration of existing / new beans via alfresco-global.properties....

2018-03-09 21:45:44 GMT <douglascrp> AFaust, thank you... I will take a look at that

2018-03-09 21:46:15 GMT <douglascrp> in this case, the only thing I want to change is the map, to add some new custom resolvers

2018-03-09 21:46:44 GMT <douglascrp> so far, what I am doing is to re-declare the bean inside the dev-context.xml file

2018-03-09 21:46:53 GMT <douglascrp> I know it is ugly, and hacky, but it did the trick

2018-03-09 21:47:45 GMT <douglascrp> I need a break now

2018-03-09 21:47:51 GMT <douglascrp> have a good weeekend

2018-03-09 21:47:57 GMT <douglascrp> *weekend

End of Daily Log

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