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-05-11 07:31:42 GMT <bhagyas> For anyone who needs a quick reference to design patterns: http://www.mcdonaldland.info/files/designpatterns/designpatternscard.pdf

2017-05-11 07:33:09 GMT <bhagyas> and also design patterns implemented with Java: https://github.com/iluwatar/java-design-patterns

2017-05-11 07:33:10 GMT <alfbot> Title: GitHub - iluwatar/java-design-patterns: Design patterns implemented in Java (at github.com)

2017-05-11 07:35:25 GMT <bmejias> thanks bhagyas

2017-05-11 07:36:28 GMT <bmejias> interesting that many of these patterns are specific to class-based object-oriented programming languages, and that solution to those problems look very differently with JavaScript

2017-05-11 07:36:45 GMT <bmejias> basically because there are no classes, so, some of the problems simply don't exist.

2017-05-11 07:37:05 GMT <bmejias> but very handy to have all those patterns in 2 pages.

2017-05-11 07:37:22 GMT <bhagyas> bmejias: Javascript does have classes with ES6

2017-05-11 07:38:03 GMT <bhagyas> I wouldn't call them problems actually, they make object abstraction easier

2017-05-11 07:38:13 GMT <bmejias> I see... never felt the need for them, so I didn't know they add them

2017-05-11 07:39:00 GMT <bmejias> bhagyas, sometimes easier....

2017-05-11 07:39:13 GMT <bhagyas> bmejias: I was porting a java based library to Javascript for fun during the last few weeks and it was really interesting how Javascript has evolved/continues to evolve

2017-05-11 07:39:52 GMT <bhagyas> -= THIS MESSAGE NOT LOGGED =-

2017-05-11 07:40:18 GMT <bhagyas> bmejias: There are even MP3 audio decoding libraries built with JS

2017-05-11 07:40:19 GMT <bhagyas> :D

2017-05-11 07:43:29 GMT <bmejias> wow... interesting.

2017-05-11 07:43:46 GMT <bhagyas> yeah..have a look at https://github.com/audiocogs/aurora.js

2017-05-11 07:43:47 GMT <alfbot> Title: GitHub - audiocogs/aurora.js: JavaScript audio decoding framework (at github.com)

2017-05-11 07:43:58 GMT <bhagyas> its a little old - written 3 years ago with coffee, but there was a new one too

2017-05-11 07:44:20 GMT <bhagyas> found it: https://github.com/audiojs/audio

2017-05-11 07:44:21 GMT <alfbot> Title: GitHub - audiojs/audio: Class for high-level audio manipulations (at github.com)

2017-05-11 07:45:38 GMT <bhagyas> I've been digging around for 'enterprise' libraries, like kerberos, WebDAV, CIFS and found them as well

2017-05-11 07:45:43 GMT <bhagyas> :)

2017-05-11 07:45:55 GMT <bmejias> I feel JavaScript is a fun language to program with.... I understand it's too chaotic for structured minds... but I'm more into entropy. =P

2017-05-11 07:46:19 GMT <bhagyas> bmejias: Check this one out: https://github.com/adobe/node-smb-server

2017-05-11 07:46:20 GMT <bmejias> I still love a lot more Python than JavaScript, but I can have fun with JavaScript.

2017-05-11 07:46:20 GMT <alfbot> Title: GitHub - adobe/node-smb-server: A 100% JavaScript implementation of the SMB file sharing protocol. (at github.com)

2017-05-11 07:46:24 GMT <bhagyas> It's under active development

2017-05-11 07:46:44 GMT <bhagyas> They have work in progress for SMBv2

2017-05-11 07:46:48 GMT <bmejias> wow... that's impressive.

2017-05-11 07:47:43 GMT <___Dave> bhagyas: bmejias: The JavaScript class thing is quite interesting, although there is a "class" keyword in ES6, it's not really the same thing as a class in Java

2017-05-11 07:47:52 GMT <___Dave> Have a read of https://medium.com/javascript-scene/common-misconceptions-about-inheritance-in-javascript-d5d9bab29b0a

2017-05-11 07:47:53 GMT <alfbot> Title: Common Misconceptions About Inheritance in JavaScript (at medium.com)

2017-05-11 07:48:20 GMT <___Dave> so on the surface, yes... it is the same thing, but it's not entirely the same thing

2017-05-11 07:48:27 GMT <bhagyas> ___Dave: Agree

2017-05-11 07:48:47 GMT <___Dave> a lot of people in the JS community aren't keen on ES6 classes... personally I quite like them for the convenience that they provide

2017-05-11 07:48:56 GMT <___Dave> but don't believe that they should be used in all cases

2017-05-11 07:48:58 GMT <bhagyas> But I find the level of abstraction and optional type checking with stuff like flow, really refreshing

2017-05-11 07:49:06 GMT <bhagyas> yeah

2017-05-11 07:49:58 GMT <___Dave> the drive towards pure functional JS coding at the moment is really interesting though and something that I've been doing quite a bit of

2017-05-11 07:50:56 GMT <bhagyas> ___Dave: Are you using TypeScript or just sticking with ES6?

2017-05-11 07:51:03 GMT <___Dave> me personally?

2017-05-11 07:51:13 GMT <___Dave> or is that "you" as in Alfresco?

2017-05-11 07:51:14 GMT <bhagyas> I love what they are doing with TS, but like ES6 as a standard

2017-05-11 07:51:19 GMT <bhagyas> you personally

2017-05-11 07:51:20 GMT <bhagyas> :D

2017-05-11 07:51:54 GMT <___Dave> personally I prefer plain JavaScript... although I understand the potential benefits of TS I find it very constrictive when writing in it

2017-05-11 07:52:09 GMT <___Dave> I can see that if you were switching from Java you would probably love it

2017-05-11 07:52:19 GMT <bhagyas> I noted IntelliJ uses TS libraries for JS auto completion

2017-05-11 07:52:55 GMT <___Dave> yes, this is true... but actually VS Code does a pretty good job of code completion with basic ES6

2017-05-11 07:53:03 GMT <___Dave> obviously it can't do validation

2017-05-11 07:53:32 GMT <___Dave> and the benefits of code completion are often down to the quality of the JSDoc associated with the functions being called

2017-05-11 07:53:40 GMT <bhagyas> If you used Jasmine, then you'd basically have validation on the go

2017-05-11 07:53:48 GMT <bhagyas> yes

2017-05-11 07:54:20 GMT <___Dave> exactly, if you're doing proper TDD you won't hit a lot of the issues anyway

2017-05-11 07:54:43 GMT <bhagyas> Most of the JS library maintainers are nuts about TDD

2017-05-11 07:54:47 GMT <bhagyas> :D

2017-05-11 07:55:02 GMT <bhagyas> It's nearly impossible to get a commit merged without having a test

2017-05-11 07:55:17 GMT <bhagyas> (which is a good thing)

2017-05-11 07:55:24 GMT <___Dave> the interesting thing to me about TS and even ES6 is that the transpiled code is not necessarily more efficient than the results you'd get using ES3 or ES5

2017-05-11 07:55:40 GMT <___Dave> frequently it's more verbose meaning it takes longer to download over the wire, etc

2017-05-11 07:56:03 GMT <___Dave> again, I personally love ES6 features but it's a developer benefit rather than an end-user benefit to a degree

2017-05-11 07:56:17 GMT <bhagyas> yeah, but there was a optimiser released last week, that addressed the exact problem

2017-05-11 07:56:20 GMT <___Dave> again, it's just a really interesting time for JS development

2017-05-11 07:56:56 GMT <yreg> bmejias, happy birthday !

2017-05-11 07:57:33 GMT <bhagyas> ___Dave: https://prepack.io/

2017-05-11 07:57:34 GMT <alfbot> Title: Prepack · Partial evaluator for JavaScript (at prepack.io)

2017-05-11 07:57:58 GMT <___Dave> yeah, I keep seeing it mentioned on twitter, medium, etc but haven't had a chance to dig into it

2017-05-11 07:57:59 GMT <bhagyas> yreg: Didn't know it was his bday, if (true) > Happy Birthday bmejias :D

2017-05-11 07:58:21 GMT <bmejias> thanks yreg!

2017-05-11 07:58:35 GMT <bmejias> thanks bhagyas! nice greeting :D

2017-05-11 08:01:19 GMT <bhagyas> ___Dave: It looks like it just works from the command line

2017-05-11 08:01:30 GMT <bhagyas> so probably you can use it within the JS build toolchain

2017-05-11 08:04:06 GMT <___Dave> bhagyas: thanks, I'll take a closer look as soon as I get some time

2017-05-11 08:04:14 GMT <___Dave> it's on my "to-do" list

2017-05-11 08:04:37 GMT <___Dave> (which given how everything is demonstrated in JS probably involved building a "to-do" list!)

2017-05-11 08:04:45 GMT <bhagyas> :D

2017-05-11 08:16:32 GMT <yreg> interesting discussion

2017-05-11 11:50:15 GMT <hiten> Hi Guys

2017-05-11 11:51:00 GMT <hiten> Is there a way to preserve the username after moving a document as System

2017-05-11 11:52:41 GMT <hiten> the issue I am facing is this, the folder in which I am moving a doc has a rule applied to start a workflow when a doc is entered and send a mail in which I am getting the username through person.properties.firstName

2017-05-11 11:54:00 GMT <hiten> bt when I move the doc as System, as there is some permission applied to the folder, the username is not preserved and in turn person.properties.firstName appears null in the mail template

2017-05-11 11:58:48 GMT <yreg> hiten, use ACPs

2017-05-11 12:01:55 GMT <hiten> @yreg: Sorry, what do you mean by ACPs

2017-05-11 12:04:54 GMT <yreg> hiten, misread your questions

2017-05-11 12:05:09 GMT <yreg> you need to disable auditable policy during the operation

2017-05-11 12:05:52 GMT <yreg> so for example you can use js-console to 1) disable auditable policie 2) move docuiments 3 re-enable auditable policies*

2017-05-11 12:10:01 GMT <cesarcapi> yreg, this is very interesting, how can I disable auditable policy from JS Console ?

2017-05-11 12:11:20 GMT <yreg> google it, don't have a code snippet at hands

2017-05-11 12:11:31 GMT <cesarcapi> hiten, from JS Console you can do a "run as" too

2017-05-11 12:19:23 GMT <douglascrp> bhagyas, nice links... tks

2017-05-11 12:27:53 GMT <bhagyas> douglascrp: you're welcome :)

2017-05-11 12:29:08 GMT <douglascrp> cesarcapi, something like this https://gist.github.com/douglascrp/3a66190e2120ff572277103bd66857ed#file-how-to-disable-alfresco-policy-using-javascript

2017-05-11 12:29:09 GMT <alfbot> Title: Disable alfresco policy in Javascript.js · GitHub (at gist.github.com)

2017-05-11 12:29:26 GMT <douglascrp> not sure if the code will work as it is, as I simply grab some pieces from a script I used before

2017-05-11 12:29:29 GMT <douglascrp> but that is the idea

2017-05-11 12:29:36 GMT <douglascrp> it will only work in js-console

2017-05-11 12:29:40 GMT <douglascrp> cesarcapi, ^

2017-05-11 12:30:28 GMT <douglascrp> yreg, I am trying to deploy the jodconverter without docker here

2017-05-11 12:30:41 GMT <douglascrp> and I am using the scripts inside the docker image you shared with me

2017-05-11 12:33:38 GMT <yreg> douglascrp, that's a good example indeed, I need to bookmark it :P

2017-05-11 12:34:02 GMT <yreg> keep me posted as you go through with that

2017-05-11 12:34:02 GMT <douglascrp> I have just created it

2017-05-11 12:34:11 GMT <douglascrp> yreg, ok, sure

2017-05-11 12:34:36 GMT <yreg> you should've added .js to the filename to have coloring though :P

2017-05-11 12:35:06 GMT <yreg> line 2 is completely useless

2017-05-11 12:35:10 GMT <douglascrp> I though I did that

2017-05-11 12:35:18 GMT <douglascrp> *thought

2017-05-11 12:35:20 GMT <douglascrp> going to fix

2017-05-11 12:36:21 GMT <yreg> oh, you were disabling behaviours for an other type not aspect auditable

2017-05-11 12:37:09 GMT <douglascrp> yreg, yes, that is a generic sample, using a custom type

2017-05-11 12:37:30 GMT <douglascrp> but that can be easily adapted to use an aspect, in the cesarcapi case, the auditing

2017-05-11 12:38:24 GMT <douglascrp> yreg, ok, I have just added the .js suffix

2017-05-11 13:05:21 GMT <douglascrp> yreg, jodconverter seems to be a dead project now

2017-05-11 13:05:30 GMT <douglascrp> there is not even a project's page

2017-05-11 13:05:43 GMT <douglascrp> I couldn't find it

2017-05-11 13:06:08 GMT <douglascrp> yreg, do you know where the project has been officially mantained?

2017-05-11 13:11:43 GMT <yreg> douglascrp, there is no officialy maintained repo by the original dev

2017-05-11 13:12:06 GMT <yreg> but I discovered recently that there is quite a few actively maintained forks

2017-05-11 13:13:22 GMT <yreg> douglascrp, check this conversation for reference : https://github.com/mirkonasato/jodconverter/pull/12

2017-05-11 13:13:23 GMT <alfbot> Title: support for Java 8 and LibreOffice 5 by EyadA · Pull Request #12 · mirkonasato/jodconverter · GitHub (at github.com)

2017-05-11 13:14:16 GMT <douglascrp> yreg, ok... tks

2017-05-11 13:14:24 GMT <yreg> douglascrp, this is maybe one of the most active one : https://github.com/sbraconnier/jodconverter

2017-05-11 13:14:25 GMT <alfbot> Title: GitHub - sbraconnier/jodconverter: JODConverter automates document conversions using LibreOffice/OpenOffice.org (at github.com)

2017-05-11 13:14:45 GMT <yreg> we are thinking about switching to it soon anyway

2017-05-11 13:15:27 GMT <douglascrp> interesting

2017-05-11 13:16:12 GMT <douglascrp> yreg, wow, version 4.0

2017-05-11 13:16:18 GMT <douglascrp> we are using 2.2

2017-05-11 13:17:09 GMT <douglascrp> yreg, this seems wrong https://bitbucket.org/xenit/docker-jodconverter-ws/src/89064ac3c94514cd467e9f6adc1f49cbae9a2c4c/Dockerfile?at=master&fileviewer=file-view-default#Dockerfile-19

2017-05-11 13:17:10 GMT <alfbot> Title: xenit / docker-jodconverter-ws / source / Dockerfile — Bitbucket (at bitbucket.org)

2017-05-11 13:17:25 GMT <douglascrp> as the link is created like this https://bitbucket.org/xenit/docker-jodconverter-ws/src/89064ac3c94514cd467e9f6adc1f49cbae9a2c4c/Dockerfile?at=master&fileviewer=file-view-default#Dockerfile-16

2017-05-11 13:17:26 GMT <alfbot> Title: xenit / docker-jodconverter-ws / source / Dockerfile — Bitbucket (at bitbucket.org)

2017-05-11 13:17:29 GMT <douglascrp> so, jod, not start-jod

2017-05-11 13:23:45 GMT <yreg> start-jod is the entry script it does cal jod

2017-05-11 13:23:59 GMT <yreg> and open open office in headless mode

2017-05-11 13:24:47 GMT <douglascrp> yreg, but I cannot see where that one really is, as there seems not to be inside the project

2017-05-11 13:25:02 GMT <yreg> regarding us using v2.2, it was the latest official release and we did not have any issue with it, now we want to support more conversions, we will be switching to a newer one

2017-05-11 13:25:03 GMT <douglascrp> ok, I am trying to understand this and convert it to a step-by-step install process

2017-05-11 13:25:13 GMT <douglascrp> yreg, got it

2017-05-11 13:25:25 GMT <yreg> ithttps://bitbucket.org/xenit/docker-jodconverter-ws/src/89064ac3c94514cd467e9f6adc1f49cbae9a2c4c/start?at=master&fileviewer=file-view-default

2017-05-11 13:25:26 GMT <alfbot> Title: xenit / docker-jodconverter-ws / source / start — Bitbucket (at bitbucket.org)

2017-05-11 13:25:39 GMT <douglascrp> officially, there werea 3.0-snapshot, if I am not wrong

2017-05-11 13:26:25 GMT <douglascrp> yreg, I saw that file, but it is called start, not jod or start-jod

2017-05-11 13:26:59 GMT <douglascrp> but I got the idea

2017-05-11 13:27:07 GMT <douglascrp> I am going to download the file and rename it

2017-05-11 13:38:36 GMT <douglascrp> yreg, this is what I have so far https://gist.github.com/douglascrp/9de344222edacdb7d8b8aa52fc4b99d1

2017-05-11 13:38:37 GMT <alfbot> Title: Installing jod on Ubuntu · GitHub (at gist.github.com)

2017-05-11 13:41:12 GMT <yreg> remove lines 10-11 and

2017-05-11 13:41:36 GMT <yreg> I assume you already do have open office pre installed right ?

2017-05-11 13:41:45 GMT <douglascrp> yreg, yes, I have

2017-05-11 13:41:52 GMT <yreg> alright

2017-05-11 13:41:54 GMT <douglascrp> that`s why I changed the path inside the script

2017-05-11 13:42:05 GMT <douglascrp> and I killed the process started by alfresco, of course

2017-05-11 13:42:08 GMT <yreg> then use start-jod to start it up and that should be all

2017-05-11 13:42:10 GMT <douglascrp> it seems it is up

2017-05-11 13:42:31 GMT <douglascrp> now when I try to access the converter app, it keeps trying to redirect me to https, which I do not have configured

2017-05-11 13:42:42 GMT <douglascrp> I am doing to fix that, but this is a tomcat config only

2017-05-11 13:42:49 GMT <yreg> to test it go http://localhost:8080/converter

2017-05-11 13:43:17 GMT <douglascrp> I changed the port to 9080 because I already have alfresco's tomcat on 8080

2017-05-11 13:43:33 GMT <yreg> alright check if it works

2017-05-11 13:54:13 GMT <douglascrp> yreg, I simply enabled the 9443 (my changed port), but it seems it is not ok

2017-05-11 13:54:24 GMT <douglascrp> I guess I will have to configure a self signed certificate

2017-05-11 13:54:40 GMT <douglascrp> the 9443 connector has no configuration at all

2017-05-11 13:54:41 GMT <cesarcapi> thnx douglascrp for the tip, i will try it asap :)

2017-05-11 13:54:51 GMT <douglascrp> cesarcapi, ok, let me know what you think

2017-05-11 13:57:26 GMT <yreg> douglas you do not need https

2017-05-11 13:57:33 GMT <yreg> 9080 should work

2017-05-11 13:57:38 GMT <douglascrp> but it is redirecting

2017-05-11 13:57:45 GMT <douglascrp> I guess I cannot simply remove the redirect tag

2017-05-11 13:57:59 GMT <douglascrp> that with the default configuration that comes with the jod-tomcat.zip file

2017-05-11 14:11:25 GMT <douglascrp> yreg, weird, there is no way I can disable this redirect

2017-05-11 14:11:40 GMT <douglascrp> I am going to make a pause so buy some things, then i am going to try again

2017-05-11 14:33:37 GMT <cesarcapi> douglascrp, I find --> Can't find method org.alfresco.repo.policy.BehaviourFilterImpl.enableBehaviour in JS Console

2017-05-11 15:04:06 GMT <douglascrp> cesarcapi, what do you see in the logs?

2017-05-11 15:08:16 GMT <douglascrp> yreg, weird, I keep getting the redirect

2017-05-11 15:21:45 GMT <cesarcapi> douglascrp, I don't have logs in catalina.out or alfresco.log - I got a "500 Internal Error Can't find method org.alfresco.repo.policy.BehaviourFilterImpl.enableBehaviour" in JS output console

2017-05-11 15:24:06 GMT <Suresh> Hello, how to get document path (where it is deleted from the document library) of the deleted document via Javascript API..

2017-05-11 15:25:28 GMT <douglascrp> cesarcapi, weird, I used that code to do a batch operation over all the object of that custom type

2017-05-11 15:26:02 GMT <douglascrp> cesarcapi, what have you used as parameters for od org.alfresco.repo.policy.BehaviourFilterImpl.enableBehaviour

2017-05-11 15:26:04 GMT <douglascrp> ?

2017-05-11 15:26:31 GMT <douglascrp> you should take a look at the BehavriourFilter class javadocs

2017-05-11 15:27:09 GMT <cesarcapi> Mmm.. --> I put policyBehaviourFilter.enableBehaviour(node.nodeRef, "cm:auditable");

2017-05-11 15:27:50 GMT <cesarcapi> Maybe it is not valid "cm:auditable", but the error is can't find method :-(

2017-05-11 15:29:36 GMT <douglascrp> cesarcapi, yes, that is the problem

2017-05-11 15:29:42 GMT <douglascrp> it needs a QName

2017-05-11 15:29:56 GMT <douglascrp> you will have to get the QName as I did before that

2017-05-11 15:30:08 GMT <douglascrp> check the line where I get the type model reference

2017-05-11 15:30:24 GMT <douglascrp> and do the same, using Alfreco`s namespace and the aspect local name

2017-05-11 15:30:37 GMT <douglascrp> yreg, it is working now

2017-05-11 15:30:39 GMT <douglascrp> https://gist.github.com/douglascrp/9de344222edacdb7d8b8aa52fc4b99d1

2017-05-11 15:30:40 GMT <alfbot> Title: Installing jod on Ubuntu · GitHub (at gist.github.com)

2017-05-11 15:31:18 GMT <douglascrp> yreg, next step, install your project and try it

2017-05-11 15:51:40 GMT <bmejias> What an excellent way to end the day after closing three production tickets: listen to The Trooper for an up beat!

2017-05-11 15:52:03 GMT <bmejias> all for me to day.... now to carry on the birthday with the family....

2017-05-11 15:52:06 GMT <bmejias> \m/

2017-05-11 16:14:43 GMT <cesarcapi> douglascrp, I did some progress with the script, I got the qname and free of errors. But now it does not seem to deactivate auditable aspect. So I changed the name of a node for example, but cm:modified is still changed --> https://pastebin.com/5c8sFUsN

2017-05-11 16:14:44 GMT <alfbot> Title: [JavaScript] var node = search.findNode("workspace://SpacesStore/bc936d2a-7d0e-49c1-a85f- - Pastebin.com (at pastebin.com)

2017-05-11 17:32:38 GMT <douglascrp> ~later tell cesarcapi insteresting... I should try it

2017-05-11 17:32:38 GMT <alfbot> douglascrp: The operation succeeded.

2017-05-11 18:11:35 GMT <alfbot> cesarcapi: Sent 38 minutes ago: <douglascrp> insteresting... I should try it

2017-05-11 18:15:25 GMT <douglascrp> yreg, I already have a feedback to you

2017-05-11 18:15:43 GMT <douglascrp> it works

2017-05-11 18:15:52 GMT <douglascrp> and the performance is way better now

2017-05-11 18:16:32 GMT <douglascrp> and I have a significant difference between in the size of the generated pdf

2017-05-11 18:17:02 GMT <douglascrp> in the official server, the file is 82,5 MB

2017-05-11 18:17:17 GMT <douglascrp> in this one, using the jodconverter, it has only 16,2 MB

2017-05-11 18:17:31 GMT <douglascrp> also it is quicker to execute

2017-05-11 18:17:37 GMT <douglascrp> from 8 minutes to 3 now

2017-05-11 18:17:58 GMT <douglascrp> but in the server I am trying jodconverter, libreoffice is 5.1

2017-05-11 18:18:10 GMT <douglascrp> in the other server, it is 5.2

2017-05-11 18:18:14 GMT <douglascrp> sorry... 5.3

2017-05-11 18:19:47 GMT <douglascrp> confusing feedback :D

2017-05-11 18:54:34 GMT <douglascrp> yreg, I tried your jodconverter integration, but this time using libreoffice 5.3 to process the transformation

2017-05-11 18:55:15 GMT <douglascrp> the result is, libreoffice 5.1 is really really better and faster for the file I am working now

2017-05-11 18:55:52 GMT <douglascrp> time: 5.3 = 8 ~ 10 minutes / 5.1 = 3 minutes

2017-05-11 18:56:11 GMT <douglascrp> pdf size: 5.2 = 82,5 MB / 5.1 = 16 MB

2017-05-11 18:56:59 GMT <douglascrp> yreg, so, for me, libreoffice 5.3 right now is a no go

2017-05-11 18:57:17 GMT <douglascrp> I am going to downgrade it

2017-05-11 20:11:58 GMT <Mark___> Hey guys, anyone ever manage to get access to Foundation API services from the Javascript console? Thought it'd be a novel idea to quickly test code that's not in an environment where hot reloading is available.

2017-05-11 20:12:32 GMT <Mark___> I tried accessing the ServiceRegistry through the application context helper in a 201605 Alfresco but it tries (and fails) to reload the entire context.

2017-05-11 20:13:05 GMT <Mark___> var ApplicationContext = new org.springframework.context.support.ClassPathXmlApplicationContext('alfresco/application-context.xml'); var ServiceRegistry = ApplicationContext.getBean(ServiceRegistry.SERVICE_REGISTRY);

2017-05-11 20:50:10 GMT <Mark____> It turns out my earlier usecase has already been nicely covered by Richard Esplin in 2015 here: https://community.alfresco.com/docs/DOC-5378-configuring-the-serviceregistry-as-a-javascript-root-object

2017-05-11 20:50:12 GMT <alfbot> Title: Configuring the ServiceRegistry as a Javascript... | Alfresco Community (at community.alfresco.com)

End of Daily Log

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