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-12-11 05:15:53 GMT <bhuvana> hi good morning all

2017-12-11 06:50:48 GMT <bhuvana> hi all

2017-12-11 06:51:34 GMT <bhuvana> how to call the rest apis in folder rule

2017-12-11 07:45:48 GMT <bhuvana> how to call the rest api in folder rule. If I am calling it this way, I am getting error like Alfresco is not defined.

2017-12-11 07:47:07 GMT <bhuvana> I imported alfresco js also in my js eventhough it's not recognized

2017-12-11 07:55:26 GMT <Tichodroma> bhuvana: What did you configure your folder rule to do? Does it execute a repository script?

2017-12-11 07:58:56 GMT <bhuvana> folder rule i called one js which is existed in scripts folder

2017-12-11 08:00:52 GMT <bhuvana> Tichodroma execution script we return items are entered on this folder in that js we called rest api

2017-12-11 08:04:17 GMT <bhuvana> https://pastebin.com/8H7AqnyD

2017-12-11 08:04:18 GMT <alfbot> Title: Possible Spam Detected (at pastebin.com)

2017-12-11 08:12:02 GMT <Tichodroma> bhuvana: a JS in the Scripts folder is a repository script. It makes no sense to call a repository web script from a respository script.

2017-12-11 08:12:27 GMT <Tichodroma> Instead you should execute the logic that the web script executes.

2017-12-11 08:12:34 GMT <Tichodroma> Which WS do you want to call?

2017-12-11 08:19:21 GMT <yreg> Morning

2017-12-11 08:19:25 GMT <yreg> ~since

2017-12-11 08:19:25 GMT <alfbot> yreg: <Tichodroma> bhuvana: What did you configure your folder rule to do? Does it execute a repository script?, <bhuvana> folder rule i called one js which is existed in scripts folder, <bhuvana> Tichodroma execution script we return items are entered on this folder in that js we called rest api, and <bhuvana> https://pastebin.com/8H7AqnyD

2017-12-11 08:39:28 GMT <bhuvana> Tichodroma:i want to call pdfstamp api from repository script

2017-12-11 08:53:50 GMT <bhuvana> alfbot:hi

2017-12-11 08:54:57 GMT <bhuvana> i am unable call pdftoolkit actions through api calls on attached document of alfresco workflow

2017-12-11 08:55:14 GMT <bhuvana> getting 408 read timeout exception

2017-12-11 09:29:37 GMT <ayushi> I have created a user named mohan.negi on 12Sep 2017 and modified its details on 11Dec 2017

2017-12-11 09:30:17 GMT <ayushi> Now,when I am trying to login for this user,I am not able to login

2017-12-11 09:31:45 GMT <ayushi> So,I have created a test user and when I am trying to login for the test user,I am able to login

2017-12-11 09:32:55 GMT <ayushi> Then,I changed the password for the tester user and then tried to login,then I can login for the tester user

2017-12-11 09:33:21 GMT <ayushi> but,I am not able to login for mohan.negi user

2017-12-11 09:33:46 GMT <ayushi> and I am not getting any exception also

2017-12-11 09:34:13 GMT <ayushi> I am not able to figure out why I am not able to login for mohan.negi only

2017-12-11 09:35:00 GMT <ayushi> can anyone give me any idea about this

2017-12-11 09:37:05 GMT <lufana> @ ayushi: check if the password is correct.

2017-12-11 09:37:57 GMT <bhuvana_> hi all

2017-12-11 09:38:10 GMT <ayushi> yes I have even tried to change the password and then login for mohan.negi

2017-12-11 09:38:23 GMT <ayushi> but,not able to login

2017-12-11 09:38:50 GMT <ayushi> while able to login for tester user even after changing the password

2017-12-11 09:41:09 GMT <DarkStar1> Morning guys

2017-12-11 09:42:20 GMT <lufana> I have created a java back end webscript and want to call on folder rule. I have followed this https://stackoverflow.com/questions/20969903/calling-an-external-rest-service-from-alfresco-share-page but I am getting Alfresco not define error.

2017-12-11 09:42:21 GMT <alfbot> Title: javascript - Calling an external rest service from Alfresco Share page - Stack Overflow (at stackoverflow.com)

2017-12-11 09:42:58 GMT <lufana> Is it possible to call a java backend webscript on folder rule?

2017-12-11 11:05:44 GMT <lufana> Hi, I have created a java back end webscript and want to call on folder rule. I have followed this https://stackoverflow.com/questions/20969903/calling-an-external-rest-service-from-alfresco-share-page but I am getting Alfresco not define error.

2017-12-11 11:05:45 GMT <alfbot> Title: javascript - Calling an external rest service from Alfresco Share page - Stack Overflow (at stackoverflow.com)

2017-12-11 11:06:19 GMT <angelborroy> lufana why don’t you use an action?

2017-12-11 11:06:34 GMT <angelborroy> lufana an action is directly invocable from rules

2017-12-11 11:14:22 GMT <lufana> angelborroy: Is my approach not correct? Can we call custom rest api in rule script? I tried to call it this way but I am getting alfresco is not define error.

2017-12-11 11:14:53 GMT <angelborroy> You can call a Web Script from a Rule

2017-12-11 11:15:03 GMT <angelborroy> but it’s not as easier as to invoke an action

2017-12-11 11:15:44 GMT <angelborroy> Probably the best approach to call a custom REST API form a rule is to use an Script and to write some invokation code in JavaScript

2017-12-11 11:18:26 GMT <lufana> angelborroy: I think I have done it the way you suggest, but still I am getting error. please have a look https://pastebin.com/tmUUqC5L

2017-12-11 11:18:27 GMT <alfbot> Title: Alfresco.util.Ajax.jsonGet( { url: - Pastebin.com (at pastebin.com)

2017-12-11 11:18:44 GMT <angelborroy> Nope

2017-12-11 11:18:55 GMT <angelborroy> You’re using client JavaScript on a Script

2017-12-11 11:19:05 GMT <angelborroy> You should use server JavaScript on it

2017-12-11 11:19:30 GMT <angelborroy> but again, it should be easier to implement an action at repo part

2017-12-11 11:35:52 GMT <lufana> angelborroy: I agree, but can we pass my document metadata properties to action attributes?

2017-12-11 11:36:07 GMT <lufana> dynamically

2017-12-11 11:37:13 GMT <angelborroy> lufana Probably I’m missing something… your document metadata properties are stored in database, so you just only need the noderef, right?

2017-12-11 11:39:03 GMT <lufana> angelborroy: When ever any document is entered into the folder it should pass its metadata properties to the rule attributes.

2017-12-11 11:39:22 GMT <angelborroy> I don’t think so

2017-12-11 11:39:38 GMT <angelborroy> metadata is extracted at repository

2017-12-11 11:39:51 GMT <angelborroy> probably you need a behaviour

2017-12-11 11:39:58 GMT <angelborroy> What are you trying to do?

2017-12-11 11:40:03 GMT <angelborroy> What is you feature for?

2017-12-11 11:42:10 GMT <lufana> I trying to apply the watermark text stamp on document using pdf tool kit. The properties of the text stamp are my document metadata properties, llike approved by, date and approved category

2017-12-11 11:43:16 GMT <angelborroy> but this properties are not set during upload, right?

2017-12-11 11:43:43 GMT <angelborroy> or are you using uploader plus to upload the document?

2017-12-11 11:46:11 GMT <lufana> We are uploading the files with its properties through rest api and adding custom aspect at the time of upload.

2017-12-11 11:47:35 GMT <angelborroy> and after that you want to make pdf watermark?

2017-12-11 11:48:03 GMT <angelborroy> why don’t you invoke by REST API this feature after adding your custom aspect?

2017-12-11 11:55:23 GMT <raksha> Hello

2017-12-11 11:55:38 GMT <raksha> We are facing login issue with one of our user

2017-12-11 11:55:59 GMT <raksha> other user are able to login perfectly but this for this user the login is not accepted

2017-12-11 11:56:15 GMT <raksha> there is no exception in the catalina logs

2017-12-11 11:58:00 GMT <raksha> [11/Dec/2017:17:06:51 +0530] 10.0.2.2 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "POST /share/page/dologin HTTP/1.1" - [11/Dec/2017:17:06:51 +0530] 10.0.2.2 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /share/page/?error=true HTTP/1.1" 7877

2017-12-11 11:58:14 GMT <raksha> This is what I get in the apache logs

2017-12-11 11:58:28 GMT <raksha> except this there is nothing for me to look for

2017-12-11 11:58:51 GMT <raksha> I am running out of options as to where to look into

2017-12-11 11:58:53 GMT <raksha> please help

2017-12-11 11:59:23 GMT <MorganP> Which OS the user is using?

2017-12-11 11:59:39 GMT <raksha> Ubuntu

2017-12-11 11:59:45 GMT <raksha> Server Edition

2017-12-11 12:00:00 GMT <MorganP> the user?

2017-12-11 12:00:22 GMT <raksha> We have tried changing the password for the user but that didnt worked

2017-12-11 12:00:24 GMT <raksha> Sorry

2017-12-11 12:00:29 GMT <raksha> it is windows

2017-12-11 12:01:45 GMT <raksha> we have also tried logging in the user while accessing the DMS using local IP address but the issue remains

2017-12-11 12:02:48 GMT <MorganP> Which Windows? The user can see the login screen?

2017-12-11 12:03:00 GMT <MorganP> Is there an error upon login?

2017-12-11 12:03:24 GMT <MorganP> Windows before 10 doesn't support TLS1.2 by default

2017-12-11 12:03:32 GMT <MorganP> you need to force it to work with it

2017-12-11 12:03:42 GMT *** angelborroy_ is now known as angelborroy

2017-12-11 12:05:25 GMT <raksha> Yes the user can see the login screen and was able to login earlier

2017-12-11 12:06:10 GMT <raksha> and other users in the organisation are on the same Windows version and they are able to login

2017-12-11 12:06:36 GMT <raksha> we also created a test user and it also seems to be working perfectly

2017-12-11 12:07:51 GMT <raksha> and even stranger thing happened - the user logged in while trying several time but the user logged out the issue started again

2017-12-11 12:08:15 GMT <raksha> we cleared cache

2017-12-11 12:08:20 GMT <raksha> tried different browser

2017-12-11 12:08:35 GMT <raksha> and system but nothing seems to work

2017-12-11 18:31:58 GMT <marcoaltieri> I am doing some experiments with ADF 2.0 and I am having a couple of issues with the documentlibrary component

2017-12-11 18:32:12 GMT <marcoaltieri> If I enable the flag

2017-12-11 18:32:27 GMT <marcoaltieri> showViewer: Boolean = true;

2017-12-11 18:32:40 GMT <marcoaltieri> in documentlist.component.ts

2017-12-11 18:33:05 GMT <marcoaltieri> what other components do I need to add ?

2017-12-11 18:33:26 GMT <marcoaltieri> if I just set the flag to true, the page does not load

2017-12-11 21:51:07 GMT *** CptLuxx_ is now known as CptLuxx

2017-12-11 23:06:23 GMT *** robl^laptop is now known as robl^

End of Daily Log

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