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

2016-11-14 07:49:44 GMT <yreg> Good morning everyone !

2016-11-14 08:15:15 GMT <bmejias> ~later tell fcorti ping me when you are around.

2016-11-14 08:15:15 GMT <alfbot> bmejias: The operation succeeded.

2016-11-14 08:24:15 GMT <qwebirc18375> Hello All, I need to configure storage on the NAS server. For accessing NAS I have the username, password and storage path. I know that I can provide path in the alfresco-global.properties file but how should I provide authentication for this? where I need to configure username and password to authenticate in order to enter in the NAS server.

2016-11-14 08:26:03 GMT <bmejias> hi qwebirc18375

2016-11-14 08:26:12 GMT <bmejias> that should be transparent to Alfresco

2016-11-14 08:26:27 GMT <bmejias> IIUC, it's your OS that needs to mount the NAS

2016-11-14 08:26:57 GMT <bmejias> and to alfresco, it should just look like a local folder.

2016-11-14 08:27:04 GMT <qwebirc18375> I have my OS on cloud and NAS is my private

2016-11-14 08:27:06 GMT <bmejias> alfresco doesn't have to know it's a mount point.

2016-11-14 08:27:30 GMT <qwebirc18375> Public cloud

2016-11-14 08:28:27 GMT <bmejias> qwebirc18375, I'm a bit confused. where is you Alfresco server going to run?

2016-11-14 08:29:00 GMT <qwebirc18375> Public cloud, Alfresco will run

2016-11-14 08:29:24 GMT <qwebirc18375> and from my private NAS have to be storage

2016-11-14 08:30:01 GMT <qwebirc18375> so from accessing public cloud, I need to store data in my private NAS

2016-11-14 08:31:32 GMT <qwebirc18375> Alfresco server is running on public cloud

2016-11-14 08:31:38 GMT <bmejias> OK... I'm not sure if this is possible, but can you mount your NAS from the public cloud instance?

2016-11-14 08:35:20 GMT <qwebirc18375> Network team is telling, the can't mount

2016-11-14 08:43:16 GMT <bmejias> OK, then I don't know if it is possible to use it as your storage.

2016-11-14 09:13:55 GMT <AFaust> qwebirc183745: Is the private NAS reachable via some other APIs / a VPN tunnel?

2016-11-14 09:14:05 GMT <AFaust> qwebirc18375: Is the private NAS reachable via some other APIs / a VPN tunnel?

2016-11-14 09:15:42 GMT <AFaust> If not the you are out of luck. If it is available via a VPN then you might be able to set something up using a custom content store. Technically if a VPN can be provided you might be able to mount if after all - otherwise if it supports some specific remote APIs those could be consumed by a custom content store implementation class.

2016-11-14 09:15:59 GMT <alfbot> fcorti: Sent 1 hour ago: <bmejias> ping me when you are around.

2016-11-14 09:37:10 GMT * DarkStar1 bids everyone a good morning

2016-11-14 09:38:48 GMT *** praisethemoon_ is now known as praisethemoon

2016-11-14 09:56:09 GMT <qwebirc23596> hello

2016-11-14 09:57:58 GMT <lenovoPRO> someone heko

2016-11-14 10:03:44 GMT <AFaust> Can someone explain to me why a SDK 2.2 project is not executing my non-remote unit tests? (Note: I have not remote unit tests so I don't even know if they'd work)

2016-11-14 10:08:20 GMT <yreg> are you using run/amp-to-war profiles ?

2016-11-14 10:09:08 GMT <AFaust> yreg: No - I am talking about "normal" unit tests here, not the abomination that requires a local server / full Spring context to be run.

2016-11-14 10:09:24 GMT <AFaust> No requirement for H2 etc.

2016-11-14 10:09:41 GMT <AFaust> no RAD, no need for AMP merging

2016-11-14 10:10:21 GMT <AFaust> I don't even have a src/test/properties/alfresco-global.properties (which for some reason ended up in the result AMP anyway, which messed up the WAR build + deployment)

2016-11-14 10:11:01 GMT <AFaust> Neither do I have a src/test/properties/local/alfresco-global.properties

2016-11-14 10:12:00 GMT <AFaust> Minor correction: The WAR src/main/properties/local/alfresco-global.properties ended up in the WAR which made no sense since it should only have been used for local runner

2016-11-14 10:14:32 GMT <bhagyas> fcorti: Do you have any updates on the last weeks q?

2016-11-14 10:14:57 GMT <bhagyas> AFaust: You're in the same situation I was in last two weeks :p

2016-11-14 10:15:00 GMT <bhagyas> How can I help?

2016-11-14 10:16:25 GMT <AFaust> bhagyas: Point me to the broken default SDK config that I need to override...

2016-11-14 10:17:05 GMT <AFaust> Since this is for a customer that wants to be "close to the standard" I "have" to use SDK instead of my own Maven setup *sigh*

2016-11-14 10:17:24 GMT <bhagyas> What are the 'annotations' you have on the Tsts?

2016-11-14 10:17:38 GMT <AFaust> Just @Test (which should be all I need)

2016-11-14 10:17:39 GMT <bhagyas> Also you need the amp-to-war profile enabled in the IDE/SDK run

2016-11-14 10:17:52 GMT <bhagyas> Otherwise, the files will not be available on the classpath

2016-11-14 10:18:16 GMT <AFaust> I do *not* want amp-to-war test - I *only* want to execute my (proper) unit tests.

2016-11-14 10:18:23 GMT <bhagyas> yeah, but you will need that

2016-11-14 10:18:45 GMT <bhagyas> I think the SDK has some overrides that prevent the IDEs from loading the default Spring configuration available

2016-11-14 10:19:01 GMT <AFaust> Then can you point me to the config I may need to override to disable this bullshit default?

2016-11-14 10:19:04 GMT <bhagyas> you don't have to run it, just have it enabled

2016-11-14 10:19:18 GMT <AFaust> Also - not talking about IDE here. Just plain Maven

2016-11-14 10:20:11 GMT <bhagyas> Then you might need to manually specify the classpath to the config/classes you're running tests on

2016-11-14 10:20:39 GMT <AFaust> Ah - the amp-to-war profile has skipTests hard-coded to true....

2016-11-14 10:20:47 GMT <AFaust> What the frak?

2016-11-14 10:20:55 GMT <bhagyas> ikr

2016-11-14 10:21:02 GMT <bhagyas> xD

2016-11-14 10:21:54 GMT <bhagyas> one of the many fascinating things about Maven SDK and Unit tests

2016-11-14 10:21:56 GMT <bhagyas> ;)

2016-11-14 10:22:49 GMT <AFaust> But wait - I don't have that profile "enabled" so the hard-coding should not take effect... hmm?

2016-11-14 10:23:32 GMT <bhagyas> yeah

2016-11-14 10:24:09 GMT <bhagyas> I usually run the tests from the IDE, since it automatically sets the classpath from the current working space

2016-11-14 10:24:25 GMT <bhagyas> running from command line using integration-test/test almost never works

2016-11-14 10:24:59 GMT <bhagyas> if you have more than one test suite, it will flop, since the RemoteRunner will attempt to stop the server, and the other RemoteRunner will expect the server to be running

2016-11-14 10:25:11 GMT <AFaust> You mean "as far as the SDK is concerned".... Otherise I have never seen any project have issues with running tests.

2016-11-14 10:25:36 GMT <bhagyas> AFaust: Keep in mind the SDK is the OFFICIALLY SUPPORTED way of developing applications

2016-11-14 10:25:52 GMT <bhagyas> and they even moved the freaking documentation to docs.alfresco.com

2016-11-14 10:25:54 GMT <bhagyas> xD

2016-11-14 10:25:58 GMT <AFaust> not applications => customizations

2016-11-14 10:26:02 GMT <bhagyas> (Still not over it)

2016-11-14 10:26:30 GMT <bhagyas> yeah

2016-11-14 10:26:58 GMT <AFaust> There is a difference in the meaning which is very important to my central message: You *can* use the SDK to build simple / standard customizations, but if you build anything more elaborate, it may not be / likely is not for you.

2016-11-14 10:27:28 GMT <bhagyas> yup, and the design of an SDK should be open minded and collaborative

2016-11-14 10:27:50 GMT <bhagyas> right now, no one knows what goes in the minds of the people 'in charge' of the SDK

2016-11-14 10:28:32 GMT <AFaust> I wouldn't necessarily say that. They are quite open and communicative about what they want to do with the SDK.

2016-11-14 10:28:45 GMT <AFaust> It just happens that I don't agree with most of it....

2016-11-14 10:29:13 GMT <bhagyas> they don't even have the technical design published

2016-11-14 10:29:35 GMT <bhagyas> and no discussion is being held in the open about how they would want to achieve whatever without breaking or losing existing functionalities

2016-11-14 10:29:38 GMT <AFaust> Nothing too unusual for Alfresco...

2016-11-14 10:29:40 GMT <bhagyas> yup

2016-11-14 10:29:50 GMT <bhagyas> yet still here we are :p

2016-11-14 10:30:07 GMT <AFaust> Disussions are held in the open *when* you constructively engage with them here or via GitHub issues...

2016-11-14 10:30:28 GMT <AFaust> Or in 1-on-1 calls / chats

2016-11-14 10:31:04 GMT <AFaust> *when* => *if*

2016-11-14 10:33:18 GMT <bhagyas> :)

2016-11-14 10:36:24 GMT <AFaust> ok - turns out the surefire plugin needed a config for <includes>. Strangely in my Maven setup I do not need it. It must get a default from somewhere in the SDK parent, but I cannot find it. Explicitly setting an include to **/* was enough to fix my issue

2016-11-14 10:37:46 GMT <fwu> hi all!

2016-11-14 10:38:59 GMT <fcorti> morning all

2016-11-14 10:39:02 GMT <fcorti> hi bhagyas

2016-11-14 10:39:04 GMT <fcorti> not really

2016-11-14 10:39:08 GMT <fcorti> to less time...

2016-11-14 10:39:09 GMT <fcorti> :-)

2016-11-14 10:39:49 GMT <AFaust> fcorti: "too little" </smartyPantsMode>

2016-11-14 10:41:30 GMT <bhagyas> ah okay

2016-11-14 10:45:03 GMT <fwu> ppl, Im trying to use the yui calendar in a custom ftl file. I can show the calendar when a button is clicked but then when a day is selected in the calendar nothing happens... it seems the selectEvent.subscribe event is not being registered. The same code in a html file outside Alfresco is working fine. So it seems something in Alfresco framework is breaking my code.

2016-11-14 10:45:24 GMT <fwu> this is the code: https://jpst.it/PpcZ

2016-11-14 10:45:37 GMT <fwu> anyone haver used the custom calendar in a custom ftl?

2016-11-14 10:47:50 GMT <fwu> or is there an ftl file in Alfresco that uses the calendar so I can look at?

2016-11-14 10:48:29 GMT <AFaust> You will not find FTL files that use the Calendar in the way you do. Alfresco try their best to NOT use inline JavaScript tags

2016-11-14 10:48:55 GMT <AFaust> Use of calendar will most likely always be found in proper JS files

2016-11-14 10:49:37 GMT <AFaust> e.g. JS files included in the standard Forms engine web scripts (since calendar is used for the date picker control)

2016-11-14 10:55:12 GMT <fwu> AFaust, but if I place the javascript in a js file, do you think it will fix my problem? Because even if Im not following the best approach, the js should work, right?

2016-11-14 10:56:38 GMT <AFaust> fwu: No - that will probably not fix your problem right away. I was just saying that you will not find a FTL file that includes the calendar the way you do.

2016-11-14 10:57:01 GMT <fwu> ok!

2016-11-14 10:57:05 GMT <AFaust> And also that your way of including that kind of JavaScript code in the FTL is not the ideal way to develop

2016-11-14 10:57:16 GMT <fwu> yes, I understand that.

2016-11-14 10:58:09 GMT <AFaust> And I was also telling you of an Alfresco feature that includes the calendar which you may want to check for its use of the component

2016-11-14 11:06:05 GMT <fwu> Afaust, so in my ftl I believe I can reference the date picker control right, that in turns uses the calendar object. Is this right?

2016-11-14 11:06:42 GMT <AFaust> that was not at all what I was trying to say or suggest

2016-11-14 11:07:15 GMT <AFaust> You wanted to know a component that uses the calendar so you can check what they do differently in order to pinpoint/fix the problem you are having.

2016-11-14 11:08:08 GMT <AFaust> By no means do I suggest you simply include the date picker control in your FTL - I don't understand enough of your use case to think that this might be the correct way to go...

2016-11-14 11:12:13 GMT <fwu> AFaust, I just need the calendar control to show near a text field, and when the user selects a date in the calendar, the calendar must close and the date be set in the text field.

2016-11-14 12:56:09 GMT <fwu> not lucky with the calendar argh

2016-11-14 13:06:30 GMT <bhagyas> Has anyone attempted to build a custom DSL to create folder hierarchies in Alfresoc?

2016-11-14 13:06:32 GMT <bhagyas> Alfresco?

2016-11-14 13:41:45 GMT <Tichodroma> in a control (.ftl), how can I get the NodeRef of the node to be edited? The Freemarker variable context.properties.itemId is not set.

2016-11-14 14:00:04 GMT <AFaust> Tichodroma: form.arguments.itemId should be set

2016-11-14 14:00:21 GMT <AFaust> In a regular Forms Engine control FTL

2016-11-14 14:16:51 GMT <AFaust> Hrmpf - 5.1.g Share doclib does not work on IE11 + Win10. And I didn't know that Win10 by default bundles both Edge AND IE11...

2016-11-14 14:48:25 GMT <fwu> argh! finally it worked!

2016-11-14 17:09:45 GMT <fwu> ppl, in a ftl file I have this:

2016-11-14 17:09:55 GMT <fwu> id="${el}-customfield"

2016-11-14 17:10:07 GMT <fwu> this id will ge generated automatically.

2016-11-14 17:10:58 GMT <fwu> how can I het the html object by id? If I do this: var myfield = document.getElementById("${el}-customfield") I will get an error.

2016-11-14 17:11:04 GMT <fwu> het=get

2016-11-14 18:12:11 GMT <xkahn> fwu: What is the error you get?

2016-11-14 18:26:45 GMT <fwu> xkahn, I solved it, thank you. I was using my script before the set of the el variable!

2016-11-14 22:25:55 GMT <eswbitto> NickServ identify

2016-11-14 22:25:59 GMT <eswbitto> oO

2016-11-14 22:27:31 GMT <eswbitto> Question for you peeps, besides the ARRR for auditing. Has anyone used a paid software for auditing alfresco? Any good ones?

End of Daily Log

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