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-08-16 02:42:38 GMT <resplin> digcat: I created MNT-18467 for the problem with the Gallery View. If you get the chance to raise the other issues in our ALF project, I'll review them during our next Triage.

2017-08-16 02:43:57 GMT <resplin> Otherwise, I'll ask the Share team to look them over the next opportunity I get.

2017-08-16 06:26:58 GMT <MorganP> Hi guys

2017-08-16 06:27:22 GMT <MorganP> In Alfresco 5.2.e/f, it looks like when I have a folder with a "+" in its name, it's not possible to display its content anymore

2017-08-16 06:29:07 GMT <MorganP> To make it reappear, I have to rename it to remove the "+", then open the direct link to this folder using the nodeRef=workspace://SpacesStore/... URL

2017-08-16 06:29:13 GMT <MorganP> And only after that I can view its content

2017-08-16 06:30:47 GMT <MorganP> Any idea about the reason? These folders were created before we upgrade to 5.2.e/f et they were working properly before

2017-08-16 06:53:22 GMT <MorganP> If I just create a folder "Test+Folder", I cannot open it

2017-08-16 06:53:44 GMT <MorganP> Nothing in the logs, I will have to go deeper...

2017-08-16 06:54:15 GMT <MorganP> If someone has a 5.2.x version available and can do a quick test too, that would be good :)

2017-08-16 07:09:18 GMT <MorganP> One additional info, all other clients seems to be working properly... WebDav, aos, aso... I can open the folder and see the files through these clients but not through Share

2017-08-16 07:40:09 GMT <DarkStar1> Me bids everyone a good morning

2017-08-16 07:45:44 GMT <digcat> morning all,

2017-08-16 08:08:06 GMT <yreg> Morning !

2017-08-16 08:08:40 GMT <yreg> MorganP, Most probably an issue with escaping strings, probably an other regression in 5.2 ?

2017-08-16 08:10:22 GMT <yreg> MorganP, can you check if that works when you update the URL manually to Test_x002B_Folder instead of Test+Folder ?

2017-08-16 08:19:25 GMT <MorganP> yreg: yes I did test already but it doesn't seem to be working either

2017-08-16 08:20:28 GMT <MorganP> Also another issue linked to that, for folders containing an "+" in their name that existed BEFORE the upgrade cannot be dumped anymore

2017-08-16 08:20:52 GMT <MorganP> I get a maxResultSet cannot be 0

2017-08-16 08:21:08 GMT <MorganP> created after the upgrade can be dumped but still cannot see its content

2017-08-16 08:21:55 GMT <mrks_js> what does the cm:name property look like?

2017-08-16 08:22:57 GMT <MorganP> cm:name Test+Folder

2017-08-16 08:23:18 GMT <MorganP> path /{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/application/1.0}shared/{http://www.alfresco.org/model/content/1.0}Test_x002b_Folder

2017-08-16 08:23:51 GMT <mrks_js> i have v5.2.e and i cant reproduce

2017-08-16 08:24:03 GMT <mrks_js> do you have a proxy in front?

2017-08-16 08:25:13 GMT <MorganP> I have an Apache httpd in front-end

2017-08-16 08:25:20 GMT <MorganP> And I know it is coming from there

2017-08-16 08:25:23 GMT <mrks_js> try accessing alf directly

2017-08-16 08:25:33 GMT <MorganP> it is working

2017-08-16 08:52:00 GMT <MorganP> The request that return a 404 is this one: /share/service/components/documentlibrary/data/doclist/all/node/alfresco/user/home/Shared/Test+Folder

2017-08-16 08:52:18 GMT <MorganP> When accessed through the JKMount

2017-08-16 09:12:58 GMT <MorganP> It looks like a bug in the mod_jk which transform the %2B into + while decoding the URL. So it is sending that to Tomcat which cannot then understand it somehow

2017-08-16 09:13:17 GMT <MorganP> Interesting fact is that this only happen with the %2B... For other encoded char, it's working properly

2017-08-16 09:19:01 GMT <MorganP> At least I found a workaround...

2017-08-16 09:34:06 GMT <DarkStar1> ~later tell douglascrp ping

2017-08-16 09:34:06 GMT <alfbot> DarkStar1: The operation succeeded.

2017-08-16 10:07:59 GMT *** angelborroy_ is now known as angelborroy

2017-08-16 11:08:38 GMT <DarkStar1> Anyone know where to find out which version of Aikau came with 5.0.c default?

2017-08-16 11:09:07 GMT <DarkStar1> Tried checking the WEB-Inf/lib dir and checking: https://github.com/Alfresco/community-edition-old/blob/V5.0.c/root/projects/share/pom.xml

2017-08-16 11:09:08 GMT <alfbot> Title: community-edition-old/pom.xml at V5.0.c · Alfresco/community-edition-old · GitHub (at github.com)

2017-08-16 11:13:03 GMT <angelborroy> DarkStart1 http://dl.alfresco.com/release/community/5.0.c-build-00145/alfresco-community-5.0.c.zip

2017-08-16 11:20:00 GMT <yreg> @DarkStar1, /share/page/modules/deploy

2017-08-16 11:21:44 GMT <DarkStar1> back

2017-08-16 11:22:09 GMT <DarkStar1> angelborroy: I am looking at an already deployed 5.0.c there is no Aikau jar present in the lib directory in WEB-INF

2017-08-16 11:22:26 GMT <DarkStar1> yreg: Thanks. I'll look into that.

2017-08-16 11:23:37 GMT <DarkStar1> yreg: That doesn't show it either :)

2017-08-16 11:28:38 GMT <AFaust> DarkStar1: In 5.0.c, Aikau wasn't yet a separate project / JAR

2017-08-16 11:28:48 GMT <AFaust> It started being that in 5.0.d

2017-08-16 11:29:07 GMT <DarkStar1> AFaust: Thanks

2017-08-16 11:29:35 GMT <DarkStar1> thought that was the 5.0 line in general, but thanks for clarifying that

2017-08-16 11:46:46 GMT <yreg> Guys, any one can enlighten me on how clickable links in PDF previews could represent a security issue ?

2017-08-16 11:47:28 GMT <yreg> This was a feature in old swf preview that got removed from latest 5.x share versions

2017-08-16 11:48:01 GMT <yreg> and Alfresco Support insists on saying that the feature is not to be implemented due to some security concerns

2017-08-16 12:22:24 GMT <AFaust> yreg: Some (high-paying) customer must have said so and now it is the standard line of Alfresco Support

2017-08-16 12:23:12 GMT *** angelborroy_ is now known as angelborroy

2017-08-16 12:23:17 GMT <AFaust> Was the same with read-access to workflows / tasks that you were not a part of. Used to be available to all until they added an extremely hard cutoff in 4.1.5 (in a Service Pack instead of a proper release)

2017-08-16 12:24:15 GMT <yreg> AFaust, did not get that last one

2017-08-16 12:24:26 GMT <AFaust> I can understand the general idea of "don't expose links that you don't control in a webapp"...

2017-08-16 12:24:41 GMT <alfbot> douglascrp: Sent 2 hours and 50 minutes ago: <DarkStar1> ping

2017-08-16 12:24:43 GMT <yreg> but how could Links in previews be security breach and not be as such in wiki links / forum topics ?

2017-08-16 12:24:52 GMT <AFaust> Some user could upload a PDF with a prepared, malicous URL link

2017-08-16 12:24:59 GMT <douglascrp> DarkStar1, pong

2017-08-16 12:25:25 GMT <AFaust> e.g. link to some scammers page that looks like a legit one but isn't...

2017-08-16 12:25:33 GMT <yreg> AFaust, but he can use a such a link in wiki / thread ? isn't it true ?

2017-08-16 12:25:39 GMT <douglascrp> good morning everyone

2017-08-16 12:25:41 GMT <AFaust> Yeah...

2017-08-16 12:25:46 GMT <yreg> Morning douglas

2017-08-16 12:25:57 GMT <AFaust> I didn't say that Alfresco was consistent about their party line

2017-08-16 12:26:24 GMT <AFaust> Even in properties like cm:description you can include links that will be rendered clickable

2017-08-16 12:27:04 GMT <AFaust> Did they at least give you a JIRA ticket for reference regarding the conscious choice to remove that ability?

2017-08-16 12:27:48 GMT <AFaust> resplin: Another reason all issues (including internal REPO) should be public - so we can fact-check Support if they are being a PITA

2017-08-16 12:38:55 GMT <DarkStar1> douglascrp: Afternoon :)

2017-08-16 12:43:48 GMT <yreg> +1 AFaust

2017-08-16 12:44:46 GMT <yreg> They gave me a rubbish tickets without any meaningful comments from an inactive user (a user that has lest Alfresco)

2017-08-16 12:45:08 GMT <yreg> so the short answer is no, nothing consistant

2017-08-16 12:46:17 GMT <yreg> AFaust, resplin for reference : https://issues.alfresco.com/jira/browse/MNT-15613

2017-08-16 12:47:12 GMT <yreg> https://issues.alfresco.com/jira/browse/MNT-17482

2017-08-16 12:54:36 GMT <yreg> AFaust, this one seems to have some reason : https://issues.alfresco.com/jira/browse/MNT-17527

2017-08-16 12:55:21 GMT <yreg> It confirms that there is no security risk in making links click-able

2017-08-16 13:03:11 GMT <DarkStar1> I'm extending the out of the box Aikau header logo object like so: https://paste.fedoraproject.org/paste/FHAfGo7tKx298~cj8JIi2A only problem is that it is not rendered.

2017-08-16 13:03:12 GMT <alfbot> Title: Untitled - Modern Paste (at paste.fedoraproject.org)

2017-08-16 13:04:05 GMT <DarkStar1> I'm wondering what I could've been over looking with regards to the extension.

2017-08-16 13:04:50 GMT <Loftux> My first implementation of the pdf.js viewer was to take the pdf.js sample viewer (which is great) and just wrap it in an iframe. Worked quite well, and this way you can easy update to get the latest features from pdf.js.

2017-08-16 13:06:07 GMT <Loftux> As it is right now, it is a bit of pain to update, since the pdf.js project quite frequently change the classes/api to use.

2017-08-16 13:09:32 GMT <Loftux> yreg: this ^ in response to support linking in viewer

2017-08-16 13:11:32 GMT <yreg> Loftux I checked and earlier versions of PDF.js than the one used by alfresco

2017-08-16 13:11:48 GMT <yreg> (dating far before alfresco implemented pdf.js preview)

2017-08-16 13:11:54 GMT <yreg> do have that feature

2017-08-16 13:12:18 GMT <yreg> it is nothing more than adding an extra layer to the canvas and binding it

2017-08-16 13:12:32 GMT <yreg> I can do it myself

2017-08-16 13:12:52 GMT <yreg> but IMHO alfresco MUST do that themselves and MUST support the feature

2017-08-16 13:13:22 GMT <yreg> I do not want to lag behind with PDF.js version, nor to have to maintain it separately

2017-08-16 13:13:46 GMT <angelborroy> yreg how is managed this in the ADF part?

2017-08-16 13:14:21 GMT <angelborroy> yreg probably this is the only interesting point from Alfresco as product

2017-08-16 13:14:25 GMT <yreg> angelborroy, no idea what so ever

2017-08-16 13:14:32 GMT <Loftux> My plan is to re-implement the iframed version of the viewer, since I will get all the featuers, such as metadata view, print and more

2017-08-16 13:14:32 GMT <yreg> aha

2017-08-16 13:14:53 GMT <yreg> Loftux iframes yuck!

2017-08-16 13:15:21 GMT <yreg> that's a real PITA with different browsers / mobile devices

2017-08-16 13:15:35 GMT <Loftux> yreg: Share yuck is already full of iframes, you know that

2017-08-16 13:15:43 GMT <yreg> plus what if a link is set with target="_self"

2017-08-16 13:16:03 GMT <yreg> not really

2017-08-16 13:16:23 GMT <yreg> (as in I do not know, not that it is not)

2017-08-16 13:16:49 GMT <angelborroy> yreg probably you can try react.js for that

2017-08-16 13:16:53 GMT <Loftux> But needn't be done with iframes, I would proably do it differently this time

2017-08-16 13:17:23 GMT <yreg> angelborroy, XenIt opted out of the Angular madness

2017-08-16 13:17:52 GMT <angelborroy> yreg I mean react.js inside of Share + Aikau

2017-08-16 13:17:57 GMT <angelborroy> it would work nicely

2017-08-16 13:18:02 GMT <yreg> we actually have our own react based framework for crafting fully branded Alfresco SPA client

2017-08-16 13:18:11 GMT <Loftux> We are working on a react pdf.js viewer to our Sharebox client

2017-08-16 13:18:46 GMT <yreg> and it has a lot like really a lot of features/widgets to build customized UI from the bottom up !

2017-08-16 13:19:11 GMT <angelborroy> and dynamically HTML and CSS generation...

2017-08-16 13:19:19 GMT <angelborroy> … which is really relevant for your use case

2017-08-16 13:19:40 GMT <angelborroy> obviously this is only my opinion

2017-08-16 13:25:15 GMT <AFaust> ~flushLog

2017-08-16 13:25:15 GMT <alfbot> AFaust: Woooosh, your log has been flushed...

2017-08-16 13:40:56 GMT <yreg> Guys, just double checking: I have an indexed property field in my content model on which I would like to be able to query per single option (out of possible multiple set) then do I need to set tokenized to true or both right ?

2017-08-16 13:47:49 GMT <angelborroy> yreg what means “single option”?

2017-08-16 14:08:46 GMT <AFaust> yreg: I guess you mean a property with "list of values" constraint... You need to set tokenised to false if the constraint values contain whitespace / separator characters - though I always set them to not tokenised either way, because you will almost never need to query for fragments on them...

2017-08-16 14:09:19 GMT <AFaust> Basically, false / both are the only sensible values. "both" only if you have some kind of value pattern where partial matches might be relevant.

2017-08-16 14:28:19 GMT <mbui> A question regarding multi-tenancy in alfresco: Can you achieve separation of data on the tenants? Contentstore and workflow data in particular.

2017-08-16 14:32:41 GMT <yreg> mbui, that comes by default AFAIK

2017-08-16 14:43:09 GMT <mbui> I came across this Multi-schema multi-tenancy setup, anyone got experience with this?

2017-08-16 15:05:35 GMT <AFaust> mbui: Content store can be separated - workflows cannot, they reside in the same schema (as does all DB data)

2017-08-16 15:05:59 GMT <resplin> mbui: AFaust is correct, and I generally recommend people to not use that part of Alfresco Community Edition.

2017-08-16 15:06:19 GMT <AFaust> ... or Enterprise Edition

2017-08-16 15:06:29 GMT <AFaust> Since they share that code, both are "broken"

2017-08-16 15:06:38 GMT <resplin> Agreed.

2017-08-16 15:06:42 GMT <resplin> It has lots of limitations.

2017-08-16 15:06:43 GMT <yreg> but they are logically seperated right ?

2017-08-16 15:06:50 GMT <AFaust> Logically separate, yes

2017-08-16 15:07:14 GMT <yreg> and there is even an option to enable workflow definition to be available only on a specific tenant

2017-08-16 15:07:41 GMT <yreg> (which is not enabled by default as far as I can remember)

2017-08-16 15:07:41 GMT <AFaust> resplin: To be fair, whenever customers have requirements that tend to venture into MT teritory, I just add to https://github.com/Acosix/alfresco-mt-support

2017-08-16 15:07:42 GMT <alfbot> Title: GitHub - Acosix/alfresco-mt-support: Adding missing multi-tenancy support for various subsystems and features (at github.com)

2017-08-16 15:07:57 GMT <mbui> AFaust: I read this article which separates the db schemas across the tenants, or did I misunderstand it? http://docs.alfresco.com/process-services1.6/topics/multi_schema_multi_tenancy_ms_mt.html

2017-08-16 15:07:59 GMT <alfbot> Title: Multi-schema multi-tenancy (MS-MT) | Alfresco Documentation (at docs.alfresco.com)

2017-08-16 15:08:07 GMT <AFaust> As we all know, there is no reason (apart from lack of priorisation) that MT would not work well

2017-08-16 15:08:27 GMT <AFaust> mbui: Ok - you were talking about Process Services, not Content Services

2017-08-16 15:08:33 GMT <AFaust> completely different topic / playing field

2017-08-16 15:08:57 GMT <AFaust> (never assume that these products are similar, just because they were built by the same company)

2017-08-16 15:09:52 GMT <AFaust> But that section on APS also has its own page of limitations: http://docs.alfresco.com/process-services1.6/topics/known_limitations.html

2017-08-16 15:09:53 GMT <alfbot> Title: MS-MT known limitations | Alfresco Documentation (at docs.alfresco.com)

2017-08-16 15:10:23 GMT <resplin> mbui: Are you dealing with Alfresco Content Services, or Alfresco Process Services?

2017-08-16 15:10:29 GMT <AFaust> So it looks to be a "plugged-on" feature / functionality, and not something that has been designed into the core

2017-08-16 15:10:46 GMT <resplin> AFaust: I hadn't seen your repo for mt-support

2017-08-16 15:10:59 GMT * resplin adds it to the list of things to look at.

2017-08-16 15:11:15 GMT <AFaust> (which fits with my experience of Alfresco Process Services of being a collection of bolted-on features)

2017-08-16 15:11:35 GMT <AFaust> resplin: At the moment, it just addresses MT LDAP + Synchronisation

2017-08-16 15:12:57 GMT <mbui> resplin: We're currently using alfresco 4.2.7 enteprise. But we're looking at upgrading to 5.2 and then enabling MT.

2017-08-16 15:13:01 GMT <AFaust> Those features have already evolved to include other, secondary features that some community members have repeatedly implemented, like avatar synchronisation and custom mappings, including support for binary data

2017-08-16 15:13:40 GMT <AFaust> mbui: So you were talking about Content Services, but using a documentation page from Process Services as the basis for your question.

2017-08-16 15:13:45 GMT <resplin> mbui: What is your use case for multi-tenancy?

2017-08-16 15:13:52 GMT <AFaust> Then the initial responses were correct...

2017-08-16 15:14:35 GMT <mbui> The use case is that our customer wants to sell their alfresco solution/customizations to third parties.

2017-08-16 15:14:45 GMT <yreg> AFaust, regarding my question

2017-08-16 15:14:46 GMT <resplin> mbui: Multi-tenant SaaS?

2017-08-16 15:14:55 GMT <yreg> The tokenization is already set to false

2017-08-16 15:16:05 GMT <mbui> resplin: If you are referring to a cloud service then no, we're hosting it ourselves.

2017-08-16 15:16:05 GMT <yreg> but when I query for a value, it does only give me exact matches

2017-08-16 15:16:26 GMT <AFaust> That is correct then...

2017-08-16 15:16:32 GMT <yreg> as in if document a has both values A,B and I search for A, the document is not returned

2017-08-16 15:16:54 GMT <AFaust> Ah, you mean you don't get matches for any of its values

2017-08-16 15:17:15 GMT <yreg> exactly

2017-08-16 15:17:21 GMT <AFaust> Are the values set as a proper list / collection of values, or by some coincidence as a comma-separated list?

2017-08-16 15:17:54 GMT <AFaust> Are you doing TMQ or index searches?

2017-08-16 15:18:14 GMT <yreg> No constraint if that's what you are asking

2017-08-16 15:18:37 GMT <yreg> index searches

2017-08-16 15:19:47 GMT <AFaust> I am asking if the values A and B are stored as a list or a String that includes them separated with a comma...

2017-08-16 15:20:08 GMT <AFaust> E.g. in Node Browser it should read "<Collection>" in the value column

2017-08-16 15:20:26 GMT <yreg> It is a correct collection

2017-08-16 15:20:30 GMT <AFaust> And the index is properly tracking with the correct state of the model?

2017-08-16 15:20:44 GMT <yreg> and in the solr schema browser I can easily confirm that

2017-08-16 15:20:52 GMT <yreg> yes

2017-08-16 15:21:50 GMT <yreg> but this is probably using a custom search logic on alfresco tier

2017-08-16 15:22:09 GMT <yreg> not the OOTB search subsystem

2017-08-16 15:23:09 GMT <AFaust> Well, you'd know best if Finder or some other search solution is being used

2017-08-16 15:25:23 GMT <yor> no, it is not finder, finder is relying on APIX wich is relying on the OOTB search subsystem

2017-08-16 15:25:31 GMT <yor> this is a customer specific project

2017-08-16 15:25:41 GMT <AFaust> That's what I remembered, but wasn't sure...

2017-08-16 15:26:06 GMT <yor> and I get the feeling that the search is not translating to the right low level field

2017-08-16 15:40:14 GMT <mbui> Instead of fiddling with multi tenancy, isn't it "better" to create a new alfresco instance for each new "tenant"?

2017-08-16 15:44:29 GMT <AFaust> mbui: If you need complete separation, then yes

2017-08-16 15:44:53 GMT <resplin> mbui: That is a common approach. Some worries about how it scales.

2017-08-16 15:45:00 GMT <AFaust> If you need functional separation, i.e. regarding addons etc., then as well

2017-08-16 15:45:10 GMT <resplin> For dozens of tenants, I think it's a clear win. For hundreds, it gets more complex.

2017-08-16 15:46:06 GMT <AFaust> mbui: Be aware though that Alfresco Enterprise subscription / licensing doesn't really work well with SaaS ideas (at least it did not last I tried to help a customer deal with Alfresco Sales for a SaaS idea)

2017-08-16 15:46:49 GMT <AFaust> Sales basically wanted the customer to buy a subscription for each of their customers that would be using the platform...

2017-08-16 15:47:56 GMT <AFaust> YMMV depending on the sales guy you are tied to (apparently German sales was one of the more problematic bunch, which could be a reason none of them are around any longer)

2017-08-16 15:52:34 GMT <resplin> We have a new Director of OEMs that manages the licensing for those deals, and the pricing makes more sense now.

2017-08-16 15:52:45 GMT <resplin> He works with all OEMs globally.

2017-08-16 15:52:57 GMT <resplin> But I agree that YMMV

2017-08-16 19:08:12 GMT <alfbot> jpotts: Sent 3 days, 9 hours, and 35 minutes ago: <yreg> that some code you have could it be throwing some exceptions that are marking the transaction for rollback or something ? you should probably raise log level to transaction related classes to investigate the issue better

2017-08-16 19:09:21 GMT <jpotts> ~ later tell yreg: Thanks, I think that was it. It's working now.

2017-08-16 19:09:21 GMT <alfbot> jpotts: The operation succeeded.

End of Daily Log

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