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-26 07:28:01 GMT <yreg> Morning

2018-01-26 07:55:09 GMT <twen> 'morning

2018-01-26 07:55:46 GMT <bhagyas> Good morning :)

2018-01-26 08:09:17 GMT <yreg> Morning

2018-01-26 09:18:09 GMT <Loftux> Is there a way to extend the user object in surf to also return custom user properties? I try to use this in an evaluator

2018-01-26 09:18:13 GMT <Loftux> RequestContext requestContext = ThreadLocalRequestContext.getRequestContext();

2018-01-26 09:18:13 GMT <Loftux> User user = requestContext.getUser();

2018-01-26 10:09:30 GMT <AFaust> Loftux: You'd need a custom user factory bean

2018-01-26 10:10:46 GMT <AFaust> With that custom user factory, you could override both the buildUserMetadataRestUrl (to get better data from backend) and buildAlfrescoUser to actually construct the user object

2018-01-26 10:10:59 GMT <AFaust> and/or constructAlfrescoUser

2018-01-26 10:16:59 GMT <Loftux> AFaust: Trying with a session object to store the values I need. Trying to avoid repeated calls for the user properties in a document listing.

2018-01-26 13:35:17 GMT <bhagyas> who is excited for angular 5?

2018-01-26 13:50:49 GMT * AFaust enjoys listening to silence...

2018-01-26 13:53:27 GMT <dgradecak> Loftux: I used to have something like this ThreadLocalRequestContext.getRequestContext().getUser().setProperty("...", new HashMap<>(...))

2018-01-26 13:56:16 GMT <Loftux> dgradecak: Similar to what I ended up doing, just storing it in session object, it the value is not there just fetch it and store it.

2018-01-26 13:56:35 GMT <dgradecak> yep

2018-01-26 13:56:51 GMT <dgradecak> sorry that I did not read it earlier ;)

2018-01-26 13:57:59 GMT <Loftux> dgradecak: Still interesting input, always many ways to solve things in our business

2018-01-26 13:58:55 GMT <dgradecak> at the end it ends up in the session, just depends which API you will use

2018-01-26 14:00:26 GMT <dgradecak> fcorti: I read your input for search services and alf. community. Thank you

2018-01-26 14:07:24 GMT <fcorti> hi dgradecak, feel free to ask.

2018-01-26 15:36:22 GMT <bhagyas> …angular is probably the only place a button component is called a module :p

2018-01-26 15:45:40 GMT <dgradecak> you do not sound excited by ADF either ;)

2018-01-26 15:46:22 GMT <bhagyas> once its customisable, it might be worth having a look.. until then…better not to waste time

2018-01-26 15:46:44 GMT <bhagyas> bindus proposal seems to be pretty good

2018-01-26 15:46:53 GMT <dgradecak> customizable? probably you could change some css ;)

2018-01-26 15:47:12 GMT <dgradecak> which one? on twitter?

2018-01-26 15:47:39 GMT <bhagyas> yeah, and then he posted a page on community detailing the preferred extension points

2018-01-26 16:00:17 GMT <Ermanno> Before Bindu's post didn't realize there are no extension points at the moment! What's the point of it then?

2018-01-26 16:20:45 GMT <yreg> Ermanno, it wasn't madefor general applicatios at first, it was more intended for building virtual solutions bottom up

2018-01-26 16:31:38 GMT <apus> hi, will 201707GA be the last release of the 5.2 series? if one had to rebuild the alfresco installation, would that be the version to use or is there something better/more stable coming in the next months?

2018-01-26 16:32:13 GMT <resplin> 201707GA is the last release of 5.2

2018-01-26 16:32:26 GMT <resplin> apus: We're focused on the 6.0 family of the Repository.

2018-01-26 16:33:02 GMT <apus> okay, so it will take some time for the 6.0 family to become "stable" correct?

2018-01-26 16:33:48 GMT <resplin> We haven't disrupted stability as much this round as in previous EA releases. We are shooting for a GA in March, but that's a stretch.

2018-01-26 16:35:04 GMT <apus> okay, then i'll stay with the 201707GA release for now. or is there something vital coming in 6.0 that would make waiting a few months worth it?

2018-01-26 16:37:20 GMT <resplin> The focus in 6.0 is containerized deployment, but there have been a number of bugfixes that might be useful. I still consider 201707 GA to be a relevant release.

2018-01-26 16:38:10 GMT <apus> resplin: thank you for all the explanations and your recommendation!

2018-01-26 16:38:38 GMT <apus> will take 201707GA for now and see about 6.0 near the end of the year.

2018-01-26 17:07:27 GMT <alfbot> jpotts: Sent 4 weeks, 1 day, 16 hours, and 20 minutes ago: <AFaust> I did that by way of a Surf extension back in 5.0, not sure if that still applies to 5.2. Managing custom non-property filters via the Search Manager is a pain and not worth the effort. The tool was designed with deliberate short-sightedness (i.e. agile deliver first - make remotely usable sometime later mentality)

2018-01-26 17:33:43 GMT <jpotts> Anyone know how well Uploader Plus works with 5.2?

2018-01-26 18:15:10 GMT <qwebirc95597> for a path search Alfresco uses xpath

2018-01-26 18:15:42 GMT <qwebirc95597> with some xpath implementation it would be possible to use

2018-01-26 18:15:51 GMT <qwebirc95597> wildcards

2018-01-26 18:15:58 GMT <qwebirc95597> for example

2018-01-26 18:16:38 GMT <qwebirc95597> PATH:"/app:company_home/st:sites/*[name='cm:site-id-1']//*"

2018-01-26 18:16:47 GMT <qwebirc95597> actually

2018-01-26 18:17:23 GMT <qwebirc95597> PATH:"/app:company_home/st:sites/*[substring(name(),0, 3)='something']//*"

2018-01-26 18:17:49 GMT <qwebirc95597> the idea is to find all the sites that have a name that starts with a string

2018-01-26 18:18:10 GMT <qwebirc95597> this does not work in Alfresco

2018-01-26 18:18:16 GMT <qwebirc95597> is there another way to do it ?

2018-01-26 18:29:28 GMT <AFaust> qwebirc95597: What kind of XPath search API are you using in Alfresco? There are multiple ways to do XPath search and most of them don't support attribute selectors...

2018-01-26 18:30:48 GMT <AFaust> Only SearchService.selectNodes() will perform a proper XPath search (not using an index-based search), and work with attribute selectors. Various functions are supported as well, though I do not know if substring is among them...

2018-01-26 18:31:54 GMT <qwebirc95597> Ok. Thanks. I need to modify a webscript that is written in javascript

2018-01-26 18:33:32 GMT <AFaust> But looking at the implementation (NodeServiceXPath), I see that there is support for starts-with, substring-after, substring-before and substring functions (among others)

2018-01-26 18:34:32 GMT <AFaust> No problem with regards to JavaScript. The "search" root scope object exposes the selectNodes operation to JavaScript

2018-01-26 18:35:14 GMT <AFaust> Just do not use the xpathSearch function because that is an index-based path search and only supports the child-axis selectors, not attribute-axis selectors

2018-01-26 18:35:28 GMT <AFaust> ....and no functions at all

2018-01-26 18:37:07 GMT <qwebirc95597> Thanks!

End of Daily Log

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