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-24 08:16:45 GMT <twen> hello

2018-01-24 08:52:30 GMT <Hiten> Hi Guys

2018-01-24 08:52:57 GMT <Hiten> I am trying to get all the usr:user type node using https://www.open4dev.com/journal/2010/6/8/how-to-enable-and-disable-users-in-alfresco.html

2018-01-24 08:52:58 GMT <alfbot> Title: How to enable and disable users in Alfresco — Open4Dev (at www.open4dev.com)

2018-01-24 08:53:23 GMT <Hiten> but I am getting this exception while running the code on SDK 3

2018-01-24 08:53:34 GMT <Hiten> No solr query support for store user://alfrescoUserStore

2018-01-24 08:53:52 GMT <Hiten> but the same approach seems to be working on SDK 2.2.0

2018-01-24 08:55:27 GMT <Hiten> as the post is almost 7 years old I believe that some implementation related to SOLR has changed but not sure what. Please help

2018-01-24 09:06:18 GMT <angelborroy> Hiten you are right, users are not stored in that way anymore

2018-01-24 09:07:56 GMT <Hiten> Thanks for the confirmation @angelborroy

2018-01-24 09:08:33 GMT <angelborroy> You can use People Service in JavaScript for that

2018-01-24 09:08:34 GMT <angelborroy> https://docs.alfresco.com/5.1/references/API-JS-isAccountEnabled.html

2018-01-24 09:08:35 GMT <alfbot> Title: isAccountEnabled | Alfresco Documentation (at docs.alfresco.com)

2018-01-24 09:13:32 GMT <Hiten> Thanks angelborroy

2018-01-24 09:15:31 GMT <Hiten> as there are two nodes for the user, one that stores user login info and one that store user profile info, I just want to clarify that people api works on usr type node and person api works on cm types of the user

2018-01-24 09:15:38 GMT <Hiten> correct ??

2018-01-24 09:50:51 GMT <MorganP> Morning

2018-01-24 09:57:42 GMT <qwebirc71220> Good morning @all. I've a question related to APS 1.7 and the "Generate document task". I want to include some parameter from the audit-log of the process instance (https://docs.alfresco.com/process-services1.7/topics/process_instance_audit_log_as_json.html). How do I pass the audit-logs to the document to use it like <<[audit.startTime]>>?

2018-01-24 09:57:43 GMT <alfbot> Title: Process Instance Audit Log As JSON | Alfresco Documentation (at docs.alfresco.com)

2018-01-24 10:24:55 GMT <AFaust> qwebirc71220: We had to replace the implementation of that service task delegate bean in order to pass additional information (including data from the audit log) into our documents...

2018-01-24 10:29:45 GMT <qwebirc71220> AFaust: Thank you. But what does it mean exactly? Am I not able to get it at all?

2018-01-24 11:04:10 GMT <aviriel> Any ideas how to return the binary content to the user as file from the browser in Aikau? I sent request to repo via POST, repo returned me a stream with correct content-disposition and content-type. So now I have successcallback function with the binary data as response. What should I do with it to allow user to download it as file? Tried to open a new page with this content and create iframe, doesn't help. Default services use GET re

2018-01-24 11:04:10 GMT <aviriel> quests and opening the response in new window... Any ideas?

2018-01-24 11:06:36 GMT <Younes> oksana check https://stackoverflow.com/a/18197341/2307988

2018-01-24 11:06:37 GMT <alfbot> Title: javascript - Create a file in memory for user to download, not through server - Stack Overflow (at stackoverflow.com)

2018-01-24 11:06:42 GMT <Younes> aviriel **

2018-01-24 11:07:03 GMT <aviriel> Younes: thanks

2018-01-24 11:07:39 GMT <Younes> aviriel, note that only works on browsers suppporting html5

2018-01-24 11:08:25 GMT <aviriel> doesn't matter, it's better than nothing

2018-01-24 11:08:54 GMT <Younes> aviriel you might also want to use different content type and encode your binary data in bas64

2018-01-24 11:08:59 GMT <Younes> *base64

2018-01-24 11:09:18 GMT <Younes> as suggested in other anwsers from the same thread

2018-01-24 11:09:23 GMT <aviriel> let me try

2018-01-24 11:10:57 GMT <AFaust> qwebirc71220: It means you'd have to patch APS by providing a new Java bean as an override to an existing one. At least that is what we had to do.

2018-01-24 11:11:41 GMT <AFaust> aviriel: We have download capability via Aikau in our OOTBee Support Tools addon for downloading a log file as ZIP

2018-01-24 11:11:53 GMT <AFaust> Might be relevant for your case...

2018-01-24 11:12:18 GMT <Younes> aviriel, this library seems cool : http://danml.com/download.html

2018-01-24 11:12:19 GMT <alfbot> Title: download.js (at danml.com)

2018-01-24 11:12:24 GMT <Younes> look for Binary

2018-01-24 11:12:47 GMT <AFaust> Handled via invisible form -> https://github.com/OrderOfTheBee/ootbee-support-tools/blob/master/share/src/main/amp/web/ootbee-support-tools/service/LogFileService.js#L46

2018-01-24 11:12:48 GMT <alfbot> Title: ootbee-support-tools/LogFileService.js at master · OrderOfTheBee/ootbee-support-tools · GitHub (at github.com)

2018-01-24 11:14:48 GMT <aviriel> AFaust: yeh, it's a hell. Do you know how to send json data with POST request from the form? I tried to do it this way, but was lost.

2018-01-24 11:15:58 GMT <AFaust> aviriel: Well, I would simply add an input field to the form to capture my JSON data as text

2018-01-24 11:16:47 GMT <AFaust> Or try to work with enctype application/json (don't know about browser support) and create multiple fields (one for every JSON property)

2018-01-24 11:17:23 GMT <aviriel> Ok, I will try Younes's advice, and if it doesn't work after 2 attempts, I'll return to forms )

2018-01-24 11:18:16 GMT <AFaust> One problem I potentially see with creating files in memory is that you might be limiting the size of file that can be processed based on the clients resources...

2018-01-24 11:19:29 GMT <aviriel> I only try to export metadata of nodes in the folder to xls, so it should not be big

2018-01-24 11:20:45 GMT <aviriel> Usually we saved created XLS to the repo, so then it was easy to download it, but today my colleagues told me that it's better not to save anything to the repo, because we forget to delete them later, so I try to receive a binary stream in the browser %)

2018-01-24 11:57:15 GMT <douglascrp_> morning guys

2018-01-24 12:42:04 GMT <AFaust> ~later tell angelborroy: For some reason I missed your blog post summary of DevCon 2018 - just had a customer employee come up to me and telling me "Well, your talk must have been amazing given what people say", and I was completely dumbfounded...

2018-01-24 12:42:04 GMT <alfbot> AFaust: The operation succeeded.

2018-01-24 12:47:04 GMT <AFaust> ~later tell angelborroy: And they didn't know where they found it, so I had to do a self-indulgent google query for "best axel faust talks"

2018-01-24 12:47:04 GMT <alfbot> AFaust: The operation succeeded.

2018-01-24 15:38:38 GMT <aviriel> Younes: it works https://github.com/ITDSystems/alvex-registers/commit/183fbd2ab5c8221e082375423ac2dc026714218b#diff-f948e73a08a2af1269d89ca182b2e7c3R1271 :)

2018-01-24 15:38:40 GMT <alfbot> Title: Export to XLS front · ITDSystems/alvex-registers@183fbd2 · GitHub (at github.com)

2018-01-24 15:38:52 GMT <aviriel> crazy chain of 3 functions

2018-01-24 16:55:34 GMT *** ChanServ sets mode: +o fcorti

2018-01-24 16:56:18 GMT *** fcorti changes topic to "Alfresco discussion and collaboration. Stick around a few hours after asking a question. Logs: http://chat.alfresco.com Channel help: https://community.alfresco.com/ Official support for Enterprise subscribers: http://support.alfresco.com. Next event is Tech Talk Live #113, the 14th of February about Scaling Solr with Alfresco on AWS."

End of Daily Log

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