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-11-16 04:10:43 GMT <alfbot> resplin: Sent 18 hours and 15 minutes ago: <AFaust> Any chance Alfresco 6.0 will see upgrade of Log4J to 2.x or switch to Logback? I'd like to use asynchronous logging to improve performance and stabilise the application, e.g. if target of logging (i.e. Splunk) is temporarily overloaded / unavailable

2017-11-16 07:29:41 GMT <twen> hello

2017-11-16 08:23:26 GMT <yreg> Morning

2017-11-16 09:33:12 GMT <Sandy_> Deleting files using RESTful API From Alfresco can anyone help me please

2017-11-16 09:34:31 GMT <DarkStar1> Morning everyone

2017-11-16 09:36:47 GMT <yreg> Morning DarkStar1 !

2017-11-16 09:38:00 GMT <DarkStar1> Sandy_: All you can browse the rest API of your alfresco installation at <host_url>:port/alfresco/service/index/uri/

2017-11-16 09:38:15 GMT <DarkStar1> yreg: howdy

2017-11-16 09:40:34 GMT <yreg> Sandy_, if you are on an alfresco version prior to 5.2 then what DarkStar1 said is the way to go

2017-11-16 09:41:08 GMT <yreg> if you are on 5.2+ then you should check out this https://api-explorer.alfresco.com/api-explorer/#!/nodes/deleteNode

2017-11-16 09:41:10 GMT <alfbot> Title: Alfresco Content Services REST API Explorer (at api-explorer.alfresco.com)

2017-11-16 09:41:12 GMT <DarkStar1> Aah yes, I forgot there's swagger for the newer stuff right?

2017-11-16 09:41:26 GMT <yreg> DarkStar1, Things are going smoothly over here !

2017-11-16 09:41:35 GMT <yreg> How about you ?

2017-11-16 09:43:02 GMT <DarkStar1> yreg: That's good to hear. I'm in wrapping up mode with quite a few tasks here so super busy. Baby's already 4 days late and doesn't look like she'll be budging anytime soon.

2017-11-16 09:43:07 GMT <yreg> DarkStar1, FYI the "no longer new" REST API does not show up in the list of webscripts there

2017-11-16 09:43:18 GMT <DarkStar1> yreg: Figure she hates the cold so will leave it to the last second

2017-11-16 09:43:20 GMT <DarkStar1> :)

2017-11-16 09:43:32 GMT <yreg> hehe

2017-11-16 09:44:44 GMT <DarkStar1> yreg: Yes I completely forgot about the REST API explorer since I only do troubleshooting tasks on Alfresco these days, and most installations I work on are pre 5.2

2017-11-16 09:46:18 GMT <DarkStar1> though my current task is quite interesting. Collaborative lock for the libreOffice online module. I might take this time to sneak in auditing right afterwards

2017-11-16 09:48:22 GMT <DarkStar1> Has anyone here worked with C++ in the very recent past or is working on a C++ project?

2017-11-16 09:49:17 GMT <DarkStar1> Want to hear first hand experience of the IDE environment you're using, how easy it is to configure, integrate with an existing project, etc

2017-11-16 09:49:29 GMT <yreg> DarkStar1, not recently but I know a trick or two

2017-11-16 09:49:31 GMT <yreg> shoot

2017-11-16 09:50:21 GMT *** angelborroy_ is now known as angelborroy

2017-11-16 09:50:39 GMT <DarkStar1> yreg: Just looking for an IDE to use. I've searched online but nothing conclusive to help me decide on what to use.

2017-11-16 09:51:11 GMT <DarkStar1> I've been wanting to get back to C++ dev for a bit now

2017-11-16 09:51:25 GMT <yreg> DarkStar1, depends on the type of project, but most people are using either Visual Studio (there is a free express version with a less powerful compiler) or something from JetBrains

2017-11-16 09:51:48 GMT <yreg> https://www.jetbrains.com/resharper-cpp/?fromMenu

2017-11-16 09:51:49 GMT <alfbot> Title: ReSharper C++ : Visual Studio Extension for C++ Development (at www.jetbrains.com)

2017-11-16 09:52:40 GMT <DarkStar1> yreg: I just shelled out for the latest IntelliJ a couple of days back. I'm a bit hesitant to pour more money in that direction again. :)

2017-11-16 09:53:01 GMT <yreg> https://www.jetbrains.com/clion/

2017-11-16 09:53:02 GMT <alfbot> Title: CLion: A Cross-Platform IDE for C and C++ by JetBrains (at www.jetbrains.com)

2017-11-16 09:53:12 GMT <yreg> hehe

2017-11-16 09:53:13 GMT <yreg> ok

2017-11-16 09:54:26 GMT <yreg> DarkStar1, FYI it's 150Eur difference between IntelliJ Ultimate and the All Products pack ;-)

2017-11-16 09:55:26 GMT <yreg> in any case, if it is a small project, Code blocks is decent

2017-11-16 09:56:01 GMT <yreg> http://www.cyberprogrammers.net/2015/11/top-9-best-cc-ides-for-windowsmac-os.html

2017-11-16 09:56:02 GMT <alfbot> Title: Top 9 Best C/C++ IDEs For Windows/Mac OS X/Linux/Unix | Cyber Programmers (at www.cyberprogrammers.net)

2017-11-16 09:59:21 GMT <bhuvana_> Hi Tichodroma, Thanks a ton for the help. I am now able to send email with attachments through javascript. Next, I am trying to add an action button in the "selected items" tab and call my script which should then popup a form asking for the receiver email address and all the selected items must be emailed. Kindly guide me how to achieve this.

2017-11-16 10:00:58 GMT <DarkStar1> yreg: NAh I'm good, but if you're feeling generous....... >:))

2017-11-16 10:01:51 GMT <bhuvana_> Tichodroma_:

2017-11-16 10:05:24 GMT <mbui> In the admin console you can setup to send a mail on server startup, anyone know if it's possible to have it send to several email addresses?

2017-11-16 10:18:26 GMT <MasterYin> Hello Everyone, I have a short question. And yes I googled it before. I'm looking for a way to send Mails to my UserGroups in Alfresco Community 5. I'm using the Alfresco as intranet in our organization with different sites, so I sometimes want to send them mails. Is there any way? I don't think my requirement is so exotic...

2017-11-16 10:20:13 GMT *** hamed is now known as Guest41513

2017-11-16 10:33:01 GMT <Tichodroma> bhuvana_: I am not the best Share developer. Your idea sounds like a lot of work.

2017-11-16 10:33:29 GMT <Tichodroma> MasterYin: what do you mean by UserGroup? A group in Alfresco?

2017-11-16 10:52:04 GMT <DarkStar1> MasterYin: I also did a short google on your behalf and it seems the way to go is to make a workflow for this.

2017-11-16 11:07:06 GMT <douglascrp> morning

2017-11-16 11:27:41 GMT <tushar> hi douglas i wanted to ask if https://github.com/douglascrp/versions-difference-alfresco-plug-in workd for you ?

2017-11-16 11:27:42 GMT <alfbot> Title: GitHub - douglascrp/versions-difference-alfresco-plug-in: Automatically exported from code.google.com/p/versions-difference-alfresco-plug-in (at github.com)

2017-11-16 11:28:08 GMT <tushar> i tried to make it run in 5.2 but page reloads

2017-11-16 11:28:13 GMT <douglascrp> tushar, I have never tried it actually

2017-11-16 11:28:23 GMT <tushar> output was in 3.2 css type

2017-11-16 11:28:45 GMT <tushar> and when i configured some ftl for it

2017-11-16 11:28:47 GMT <douglascrp> as you can see by the "Automatically exported from code.google", I did that just to preserve the code when google annouced they were going to suspend the website

2017-11-16 11:28:54 GMT <tushar> output is blank

2017-11-16 11:29:07 GMT <tushar> okay

2017-11-16 11:29:19 GMT <douglascrp> I had the idea to play with it at the time, but I never really needed that feature

2017-11-16 11:29:20 GMT <tushar> but thanks anyway

2017-11-16 11:29:29 GMT <tushar> but wold you wanna have a look ?

2017-11-16 11:29:38 GMT <douglascrp> right now, I can't

2017-11-16 11:29:39 GMT <tushar> can i share some screen shots fo it ?

2017-11-16 11:29:50 GMT <douglascrp> you can share, but I can not promiss I will work on it

2017-11-16 11:29:55 GMT <tushar> no i mean just screen shots

2017-11-16 11:30:00 GMT <douglascrp> as I have not even an idea on how it was coded

2017-11-16 11:30:20 GMT <douglascrp> if you share that, plus the changes you have made, maybe I can try to help you

2017-11-16 11:32:09 GMT <tushar> http://picpaste.com/Screenshot_from_2017-11-10_12-05-58-PKxSkJqD.png

2017-11-16 11:32:11 GMT <alfbot> Title: PicPaste - Screenshot_from_2017-11-10_12-05-58-PKxSkJqD.png (at picpaste.com)

2017-11-16 11:33:15 GMT <douglascrp> so it seems it creates a new page

2017-11-16 11:33:23 GMT <douglascrp> it does not use the existing ones

2017-11-16 11:33:42 GMT <tushar> nothing much i just changes the file name to overide the file http://picpaste.com/Screenshot_from_2017-11-16_17-03-10-08ZPhLp8.png

2017-11-16 11:33:43 GMT <alfbot> Title: PicPaste - Screenshot_from_2017-11-16_17-03-10-08ZPhLp8.png (at picpaste.com)

2017-11-16 11:34:14 GMT <tushar> yes

2017-11-16 11:35:11 GMT <tushar> do you have any link where i can create a page in alfresco

2017-11-16 11:37:18 GMT <douglascrp> tushar, you can find some guides at http://docs.alfresco.com/5.2/concepts/dev-extensions-share-tutorials-pages.html

2017-11-16 11:37:19 GMT <alfbot> Title: Pages | Alfresco Documentation (at docs.alfresco.com)

2017-11-16 11:41:46 GMT <tushar> thanks a ton douglas

2017-11-16 11:42:18 GMT <tushar> but if ever you wanna see this for fun

2017-11-16 11:42:23 GMT <tushar> you can look at https://github.com/tusharkhanka/version-difference-alfresco

2017-11-16 11:42:24 GMT <alfbot> Title: GitHub - tusharkhanka/version-difference-alfresco (at github.com)

2017-11-16 11:42:36 GMT <tushar> my attempt on 5.2

2017-11-16 11:43:00 GMT <douglascrp> ah, you have already converted it to sdk

2017-11-16 11:43:01 GMT <douglascrp> nice

2017-11-16 11:43:04 GMT <douglascrp> better than ant

2017-11-16 11:43:15 GMT <douglascrp> that is already something I had in the wish list

2017-11-16 11:45:15 GMT <tushar> cool i hope it works soon

2017-11-16 11:45:37 GMT <douglascrp> tell me, does the comparison work?

2017-11-16 11:45:48 GMT <douglascrp> I mean, did you get the right response from the repo side?

2017-11-16 11:45:58 GMT <douglascrp> what I want to know is if the problem is just UI

2017-11-16 11:46:16 GMT <fwu> hi all!

2017-11-16 11:47:50 GMT <douglascrp> tushar, ^

2017-11-16 11:47:53 GMT <douglascrp> fwu, hi

2017-11-16 11:49:27 GMT <tushar> yeah i did get the response from repo but documents were not formated and it didn't support docx

2017-11-16 11:49:49 GMT <tushar> yeah i guess problem is with ui

2017-11-16 11:49:58 GMT <douglascrp> that must be because docx needs libreoffice to transform the content into text before the comparison

2017-11-16 11:50:08 GMT <douglascrp> that probably has to do with your environment

2017-11-16 11:50:15 GMT <tushar> okay

2017-11-16 11:51:30 GMT <tushar> and its java test files didnt work well

2017-11-16 11:51:55 GMT <douglascrp> that code is old, from 2012 if I am not wrong

2017-11-16 11:52:04 GMT <tushar> yes

2017-11-16 11:52:13 GMT <douglascrp> the author let that pretty clear, the idea was to improve both the project's and the tests' code

2017-11-16 11:52:24 GMT <douglascrp> it as an academic work only

2017-11-16 11:52:48 GMT <tushar> okay

2017-11-16 11:53:55 GMT <tushar> and i tried reaching him but could't to know if he had done some advancements

2017-11-16 11:54:04 GMT <douglascrp> I doubt it

2017-11-16 12:11:36 GMT <Sumit> Hi everyone, can someone help me how to debug oob source code in eclipse?

2017-11-16 12:12:40 GMT <Sumit> like if i want to step by step dubug a login service. how to do that?

2017-11-16 12:18:06 GMT <douglascrp> tushar, I have tried it

2017-11-16 12:18:24 GMT <douglascrp> what I saw is that the new page is shown, but it goes back to the document-details

2017-11-16 12:18:40 GMT <douglascrp> tushar, and because of that, you can not see the comparison, right?

2017-11-16 12:20:11 GMT <Sumit> Hi everyone, can someone help me how to debug oob source code in eclipse?

2017-11-16 12:21:04 GMT <douglascrp> Sumit, start your tomcat instance enabling jpda, and then use your IDE to execute the Alfresco's project as a remote application

2017-11-16 12:21:36 GMT <douglascrp> that is a java/tomcat kind of question, and you will find lots of "recipes" out there

2017-11-16 12:22:51 GMT <Sumit> Ok douglascrp

2017-11-16 12:24:58 GMT <Sumit> Thanks, I will try this.

2017-11-16 12:25:15 GMT <douglascrp> if you are using maven, you can even use it to start the project in debug mode, than you do the same thing to conect your alfresco project into it as a remote desktop

2017-11-16 12:25:43 GMT <Sumit> ok

2017-11-16 12:25:53 GMT <Sumit> Yes I am using maven

2017-11-16 12:26:09 GMT <douglascrp> alfresco sdk?

2017-11-16 12:27:00 GMT <Sumit> it's 2.x

2017-11-16 12:27:35 GMT <Sumit> and I want to go through with login service and understand this properly.

2017-11-16 12:27:53 GMT <douglascrp> Sumit, http://douglascrp.blogspot.com.br/2015/05/how-to-remote-debug-with-alfresco-sdk-21.html?q=debug

2017-11-16 12:27:54 GMT <alfbot> Title: IT Tips: How to remote debug Java code using Alfresco SDK 2.1 (at douglascrp.blogspot.com.br)

2017-11-16 12:28:05 GMT <douglascrp> old, but I guess it can give you some ideas

2017-11-16 12:28:13 GMT <Sumit> I want to understand this because to add google sign in feature in my community version 5.2

2017-11-16 12:28:24 GMT <douglascrp> 5.2?

2017-11-16 12:28:33 GMT <douglascrp> it would be better if you use the SDK 3.0.1 for that

2017-11-16 12:29:13 GMT <Sumit> I I have tryed https://github.com/gdepourtales/share-oauth-sso. but this solution is not working with 5.2 community

2017-11-16 12:30:14 GMT <douglascrp> I saw your issue there

2017-11-16 12:30:22 GMT <douglascrp> is the problems just with the button not being shown?

2017-11-16 12:30:32 GMT <Sumit> Yes yes

2017-11-16 12:30:48 GMT <douglascrp> ah, but that is because the login form has changed in the latest versions

2017-11-16 12:31:08 GMT <douglascrp> I guess you should, first of all, check the login form structure, and try to add the button there

2017-11-16 12:31:17 GMT <Sumit> I am not seeing any google sign in button there

2017-11-16 12:31:27 GMT <Sumit> ok

2017-11-16 12:33:25 GMT <Sumit> Yes, I have append a google signin button on current login page via file login.get.html.ftl

2017-11-16 12:33:26 GMT <douglascrp> I can not see how the button is added

2017-11-16 12:34:29 GMT <Sumit> I also able to authenticate by google by this button. but then how can I configure this button with above solution

2017-11-16 12:35:29 GMT <Sumit> tryed https://developers.google.com/identity/sign-in/web/sign-in to add sign in button

2017-11-16 12:35:30 GMT <alfbot> Title: Integrating Google Sign-In into your web app  |  Google Sign-In for Websites  |  Google Developers (at developers.google.com)

2017-11-16 12:39:30 GMT <IanW2> Understanding the login service is a nightmare - I suggest a filter setting the value of getRemoteUser()

2017-11-16 12:40:00 GMT <douglascrp> Sumit, IanW2 knows the login secrets

2017-11-16 12:41:26 GMT <Sumit> ok douglascrp

2017-11-16 12:41:47 GMT <Sumit> Thanks

2017-11-16 12:41:53 GMT <tushar> @douglas yes exactly it goes to document details of the previous version

2017-11-16 12:43:50 GMT <Sumit> @IanW2 : can I have something to follow for this. any doc?

2017-11-16 12:45:17 GMT <Sumit> I think entering a user as google sign in not getting treated as a actual user. and can be authorize as a guest by some service as u r saying getRemoteUser()

2017-11-16 12:45:44 GMT <Sumit> Need bit more explainations?

2017-11-16 12:46:59 GMT <douglascrp> tushar, I will try something when I find the time

2017-11-16 12:49:05 GMT <tushar> sure douglas thanks a ton

2017-11-16 12:57:38 GMT <yreg> http://lmgtfy.com/?q=Remote+debug+tomcat first result

2017-11-16 12:57:39 GMT <alfbot> Title: LMGTFY (at lmgtfy.com)

2017-11-16 13:03:08 GMT <bhuvana_> Hi all, I am trying to execute 2 functions in js. I want second function must execute after a delay of 5 sec. how can I do that in js console?

2017-11-16 13:03:43 GMT <yreg> bhuvana_, why would you want to do that ?

2017-11-16 13:04:01 GMT <yreg> why not simply execute the first, wait 5 seconds then execute the second ?

2017-11-16 13:07:59 GMT <bhuvana_> I have a requirement of emailing document as zip. I have created a .acp file for the documents present in the folder and trying to get the noderef of the .acp file but could not get it immediately after the create function.

2017-11-16 13:08:25 GMT <douglascrp> bhuvana_, that probably is because of the eventual consistency behaviour

2017-11-16 13:08:46 GMT <douglascrp> just waiting 5 seconds can not work either

2017-11-16 13:09:07 GMT <douglascrp> by default, solr waits 15 seconds to process a new batch of transactions

2017-11-16 13:09:43 GMT <bhuvana_> But it returns only the previously present files

2017-11-16 13:10:07 GMT <douglascrp> that is because, for solr, it is not there yet

2017-11-16 13:10:16 GMT <douglascrp> that is the eventual consistency

2017-11-16 13:10:37 GMT <douglascrp> bhuvana_, http://docs.alfresco.com/5.2/concepts/solr-event-consistency.html

2017-11-16 13:10:38 GMT <alfbot> Title: Eventual consistency | Alfresco Documentation (at docs.alfresco.com)

2017-11-16 13:24:13 GMT <bhuvana_> douglascrp_: Thanks.

2017-11-16 14:43:15 GMT *** mmccarthy1 is now known as mmccarthy

2017-11-16 15:35:39 GMT *** hamed is now known as Guest3288

2017-11-16 17:44:17 GMT *** hamed is now known as Guest36994

2017-11-16 18:19:14 GMT <douglascrp> does anyone know about any project adding new custom site roles?

2017-11-16 18:19:29 GMT <douglascrp> I was thinking about a new one, with less permissions than the consumer

2017-11-16 18:20:10 GMT <douglascrp> something like, the user is a member of the site, but he can not see any content, unless I say so, "per document"

2017-11-16 18:22:27 GMT <douglascrp> or even "per folder"

2017-11-16 20:07:38 GMT <fwu> back

2017-11-16 20:08:24 GMT <fwu> ppl, im atill struggling to add an attachment to the mail action in javascript. Anyone ever did this?

2017-11-16 20:13:20 GMT *** xkahn_ is now known as xkahn

2017-11-16 20:13:32 GMT * xkahn didn't think it was possible to add an attachment to the mail system in Javascript

2017-11-16 20:16:58 GMT <fwu> im trying this: https://community.alfresco.com/docs/DOC-6574-send-html-mail-with-attachments

2017-11-16 20:17:00 GMT <alfbot> Title: Send HTML Mail With Attachments | Alfresco Community (at community.alfresco.com)

2017-11-16 20:17:14 GMT <fwu> but It seems the class is not being called

2017-11-16 20:17:51 GMT <fwu> this repo solution only have a xml file (action context) with a registered bean and a java class that implements it.

2017-11-16 20:18:24 GMT <fwu> I beleive this bean is overwriting the main "mail" action, but I dont have sure if this is all it takes to do that

2017-11-16 20:18:46 GMT <fwu> so, basically I dont have sure if Im using it right

2017-11-16 20:18:57 GMT <fwu> As I never developed an Alfresco action before

2017-11-16 20:24:03 GMT <xkahn> fwu: Looks like it is defining a new action called fg-mail

2017-11-16 20:25:13 GMT <xkahn> So

2017-11-16 20:25:19 GMT <xkahn> fwu: var mail = actions.create("fg-mail");

2017-11-16 20:29:46 GMT <fwu> ok, I thought the action name was inside the java class and it still was "mail"

2017-11-16 20:29:54 GMT <fwu> so the bean name becomes the action name?

2017-11-16 20:34:06 GMT <xkahn> fwu: That's my reading of it. I'm not an expert by any means.

2017-11-16 20:35:47 GMT <fwu> I say this because inside the java class there is an action bean created with the name "mail". So my reading is that the bean is overwriting the default mail bean. On the class there is a "super" reference so that all the code from the default is used on this class plus the !attachment thing!

2017-11-16 20:36:20 GMT <fwu> but, if this works like -im aying then I dont know why I cant reach the class. I may try your suggestion.

2017-11-16 20:51:15 GMT <douglascrp> https://community.alfresco.com/message/824069-custom-site-role-allowing-users-to-read-only-specific-documents-inside-the-site

2017-11-16 20:51:16 GMT <alfbot> Title: Custom site role allowing users to read only sp... | Alfresco Community (at community.alfresco.com)

2017-11-16 20:53:07 GMT <fwu> xkahn, you were right. the action has that name.

2017-11-16 20:53:43 GMT <xkahn> douglascrp: we just use document permissions.

2017-11-16 20:54:05 GMT <xkahn> douglascrp: so we toggle inherit permissions on and off for folders and individual files.

2017-11-16 20:54:12 GMT <xkahn> fwu: \o/

2017-11-16 20:54:39 GMT <douglascrp> xkahn, that is how we do also, but I would like to change that

2017-11-16 20:54:43 GMT <fwu> douglascrp, the same here

2017-11-16 20:55:02 GMT <fwu> thank you xkahn.

2017-11-16 20:55:10 GMT <xkahn> douglascrp: we use scripts to run all of it. But there are race conditions on the inherit permissions toggle

2017-11-16 20:55:17 GMT <fwu> altough it still not working... null pointer

2017-11-16 20:55:18 GMT <douglascrp> because we are going to deliver alfreco to the customer, and I am sure he is not going to use the permission management right

2017-11-16 20:55:23 GMT <xkahn> douglascrp: so sometimes a node's permission gets corrupted.

2017-11-16 21:04:33 GMT <douglascrp> ok, got to go now

End of Daily Log

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