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-11-29 07:15:18 GMT <twen> good morning

2017-11-29 08:22:34 GMT <yreg> Morning

2017-11-29 11:03:32 GMT <douglascrp> good morning

2017-11-29 11:54:35 GMT <fwu> hi all

2017-11-29 11:57:01 GMT <fwu> ppl, is it possible to create datalists based on models created using the new model manager?

2017-11-29 12:06:22 GMT <douglascrp> fwu, no

2017-11-29 12:06:38 GMT <douglascrp> someone posted something somewhere, but it was not something officially supported

2017-11-29 12:06:50 GMT <fwu> douglascrp!

2017-11-29 12:07:32 GMT <fwu> yeah, I was trying and was not working. So I ask. I would need to select a type which is not on the types list in the manager.

2017-11-29 12:07:53 GMT <fwu> dl:dataList I suppose

2017-11-29 12:07:58 GMT <douglascrp> exactly

2017-11-29 12:08:07 GMT <douglascrp> it shows only folder and content, if I am not wrong

2017-11-29 12:08:14 GMT <douglascrp> that tool is not complete

2017-11-29 12:08:18 GMT <fwu> but is there a workaround?

2017-11-29 12:08:31 GMT <douglascrp> xml editing

2017-11-29 12:08:47 GMT <douglascrp> that is how I do, and I guess almost everybody here

2017-11-29 12:11:15 GMT <fwu> xml editing where? in the xml config of the tool?

2017-11-29 12:11:44 GMT <douglascrp> have you done any custom type creation already?

2017-11-29 12:11:51 GMT <douglascrp> it is the same

2017-11-29 12:12:13 GMT <fwu> yes, but inside a jar project

2017-11-29 12:12:19 GMT <douglascrp> create a content model, register it using a context.xml file, and configure share to show it

2017-11-29 12:12:34 GMT <fwu> I would like to create new datalist without the need to edit code for every datalist

2017-11-29 12:12:36 GMT <douglascrp> but the parent type is, as you said, datalist instead of content

2017-11-29 12:13:01 GMT <douglascrp> you don't have to edit xml for every datalist, but for each datalist type

2017-11-29 12:13:08 GMT <douglascrp> use the ootb ones as models

2017-11-29 12:13:23 GMT <fwu> but the workaround I was asking, was if it was possible to put the manager to work with the datalist type.

2017-11-29 12:13:35 GMT <douglascrp> yes, you can, but I do not have the link

2017-11-29 12:13:41 GMT <fwu> to make it manually as "normal" I know how it is

2017-11-29 12:13:42 GMT <douglascrp> I know someone posted that somewhere

2017-11-29 12:13:58 GMT <douglascrp> the model manager does not work well, in my opinion

2017-11-29 12:14:09 GMT <douglascrp> I would not put any effort on trying to "workaround" it

2017-11-29 12:14:24 GMT <fwu> I think it is some limitations, but for the basic should be fine

2017-11-29 12:14:37 GMT <fwu> it has

2017-11-29 12:14:39 GMT <douglascrp> http://alfrescoblog.magenta.dk/content/creating-custom-datalist-types-fly-using-new-model-manager

2017-11-29 12:14:41 GMT <alfbot> Title: Creating custom datalist types on the fly, using the new model manager. | Magenta's Alfresco Blog (at alfrescoblog.magenta.dk)

2017-11-29 12:15:04 GMT <douglascrp> but I have not tried that

2017-11-29 12:15:06 GMT <fwu> let me look at it! thnak you douglascrp ;)

2017-11-29 12:15:10 GMT <douglascrp> so please, let me know what you think

2017-11-29 12:22:41 GMT <fwu> douglascrp, the type part looks fine. simple.

2017-11-29 12:22:48 GMT <fwu> but I dont like the share part.

2017-11-29 12:23:06 GMT <fwu> I was expecting soemthing more simple

2017-11-29 12:33:33 GMT <fwu> Afaust, im looking to the Encrypting Store here: https://github.com/Acosix/alfresco-simple-content-stores/wiki/Encrypting-Store

2017-11-29 12:33:34 GMT <alfbot> Title: Encrypting Store · Acosix/alfresco-simple-content-stores Wiki · GitHub (at github.com)

2017-11-29 12:33:47 GMT <fwu> AFaust

2017-11-29 12:33:58 GMT <douglascrp> fwu, as I told you, the model manager is not complete

2017-11-29 12:34:23 GMT <AFaust> Your first message already pinged me - IRC is case insensitive with regards to names... (or at least my client is)

2017-11-29 12:34:33 GMT <fwu> douglascrp, I understand that. I just was hoping to be able to make small chnages to it in order to have it working with datalists

2017-11-29 12:34:48 GMT <fwu> sorry AFaust!

2017-11-29 12:34:57 GMT <douglascrp> fwu, you better to keep using what you already know, xml

2017-11-29 12:35:11 GMT <fwu> I would like to understand this ecrypted content store concept

2017-11-29 12:35:34 GMT <AFaust> 1+ with douglascrp - the model manager is a nice "prototyping tool" but not really usable in real life

2017-11-29 12:35:52 GMT <fwu> the concept is that every content is encrypted and decrypted right? This is default in alfresco, or not?

2017-11-29 12:36:41 GMT <AFaust> fwu: Default Alfresco does not have any encryption...

2017-11-29 12:36:55 GMT <fwu> ok.

2017-11-29 12:37:19 GMT <AFaust> Alfresco Content Services / Alfresco Enterprise has an optional "encryption at rest" feature, where content is encrypted for storage and decrypted for read

2017-11-29 12:37:40 GMT <AFaust> The encrypted content store from my project which you linked behaves quite similar to that Alfresco Enterprise feature

2017-11-29 12:38:03 GMT <fwu> ok, nice. Now I understand.

2017-11-29 12:39:12 GMT <fwu> so everything in the store will be encrypted when sent to the store. If anyone gets something from the store wihtout the decrypt step, documents will be encryipted (and thus secure).

2017-11-29 12:39:39 GMT <AFaust> The main difference is: With the Alfresco Enterprise feature, the entirety of the content store is encrypted / decrypted. With my module, you can mix&match, e.g. have only part of your content encrypted i.e. based on some property value with conditional routing

2017-11-29 12:40:02 GMT <AFaust> fwu: right, for that single store, the behaviour would be as you described

2017-11-29 12:40:20 GMT <AFaust> note that in Alfresco, you can technically have multiple stores (with different functionality / behaviour)

2017-11-29 12:40:46 GMT <fwu> yes. Thus we can use that secure store just for critical documents

2017-11-29 12:41:49 GMT <fwu> thank you AFaust!

2017-11-29 12:54:39 GMT <Loftux> I just noticed that the CSRF client side in constants gets tripple escaped: Alfresco.constants.CSRF_POLICY.properties["referer"] = "https?:\\\/\\\/.*.example.com\\\/.*";

2017-11-29 12:55:40 GMT <AFaust> Is there any negative effect to it?

2017-11-29 12:56:09 GMT <douglascrp> Loftux, I saw your message, but forgot to answer

2017-11-29 12:56:12 GMT <douglascrp> <Loftux> In SDK3 if I want to override in repository core alfresco file, for example alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary-v2/doclist.lib.js, where does it go in src? I cant get it to be picked up. (this is another attempt to give sdk3 a shot, maybe back to 2.2 again…)

2017-11-29 12:56:25 GMT <douglascrp> have you solved that?

2017-11-29 12:57:42 GMT <douglascrp> Loftux, by override, do you mean to replace it?

2017-11-29 12:57:55 GMT <AFaust> ^^ Talking about JAR or AMP packaging? With JAR packaging, this would be impossible...

2017-11-29 12:57:57 GMT <Loftux> AFaust: Trying to figure out why a share instance behind authentication portal doesn't work, but it has the same "error" in other instances so it not the cause herre I guess, Just noticed and wondered if it could have an effect in general, nothing reported

2017-11-29 12:58:14 GMT <douglascrp> AFaust, +1

2017-11-29 13:00:15 GMT <Loftux> douglascrp: Override as in replace. It was impossible even if enabling amp on sdk3. So back to 2.2

2017-11-29 13:06:07 GMT <yreg> douglascrp, it is possible, you just need to rename the file to doclist.lib-min.js if I am not mistaken

2017-11-29 13:06:31 GMT <yreg> or generate a minified version yourself using some plugin and have it use that naming convention

2017-11-29 13:06:52 GMT <yreg> douglascrp, ignore that comment

2017-11-29 13:07:04 GMT <yreg> sorry, I thought you were talking about client side js

2017-11-29 13:07:07 GMT <yreg> not server side

2017-11-29 13:08:23 GMT <douglascrp> Loftux, that "should" work if you use the amp folder, right?

2017-11-29 13:08:56 GMT <yreg> douglascrp, can you send over a sample project privately

2017-11-29 13:08:56 GMT <douglascrp> Loftux, sorry... assembly

2017-11-29 13:09:31 GMT <douglascrp> yreg, for?

2017-11-29 13:09:35 GMT <douglascrp> what kind?

2017-11-29 13:10:11 GMT <yreg> for what you are trying to achieve I am pretty sure I made something similar not that far ago

2017-11-29 13:10:24 GMT <douglascrp> that is for Loftux

2017-11-29 13:10:32 GMT <Loftux> This was for repo webscripts, and the lib files and those does not get picked up as override in classpath unless you have the complete webscript set of files

2017-11-29 13:10:36 GMT <douglascrp> I was just trying to understand what he was trying

2017-11-29 13:10:50 GMT <douglascrp> yreg, ^

2017-11-29 13:12:49 GMT <douglascrp> yreg, Loftux this is how I did something similar another day https://github.com/dgcloud/patch-alf-21955-repo

2017-11-29 13:12:50 GMT <alfbot> Title: GitHub - dgcloud/patch-alf-21955-repo: patch-alf-21955-repo Platform Module (at github.com)

2017-11-29 13:13:55 GMT <douglascrp> Loftux, exactly the file you mentioned in your message

2017-11-29 13:13:59 GMT <douglascrp> and that one is using SDK 3.0

2017-11-29 13:14:21 GMT <yreg> douglascrp, I think I didn't use the extension directory, but then the apply amps needed -force flag

2017-11-29 13:15:18 GMT <douglascrp> but those files are not expanded inside the war, right?

2017-11-29 13:15:26 GMT <douglascrp> aren't then inside jar files?

2017-11-29 13:15:44 GMT <douglascrp> and yes, when you want to replace, you have to use the -force flag

2017-11-29 13:16:05 GMT <douglascrp> s/then/them

2017-11-29 13:16:35 GMT <Loftux> douglascrp: Thanks, now building with sdk2.2 so that is fine. It was a couple of more files, breaking out Symbolic linking from our Community build as a module for an Enterprise customer.

2017-11-29 13:17:55 GMT <douglascrp> Loftux, ok

2017-11-29 13:31:47 GMT <yreg> QQ, is bulk FS import still supported in Alfresco ?

2017-11-29 13:32:04 GMT <douglascrp> yreg, I guess so

2017-11-29 13:32:15 GMT <douglascrp> but the peter monks version seems better

2017-11-29 13:32:52 GMT <douglascrp> yreg, https://github.com/pmonks/alfresco-bulk-import

2017-11-29 13:32:53 GMT <alfbot> Title: GitHub - pmonks/alfresco-bulk-import: Alfresco Bulk Import Tool v2.x - for Alfresco v5.0 and up (at github.com)

2017-11-29 13:46:39 GMT <yreg> douglascrp, I am not considering using it, we have Inflow in-house

2017-11-29 13:46:49 GMT <yreg> but it is regarding a contribution

2017-11-29 13:47:03 GMT <douglascrp> ah, got it

2017-11-29 13:47:17 GMT <yreg> I want to make to fix a bug that was introduced while trying to fix that bulk fs import thingy

2017-11-29 14:26:53 GMT <yreg> douglascrp, FYI derek got back to me today and asked for a unit test to demonstrate the issue and help the process go smoother... that was quite fast

2017-11-29 14:27:06 GMT <yreg> looking forward to see how this turns out eventually

2017-11-29 14:31:17 GMT <yreg> fcorti, I got a second invitation to register as a speaker for devcon, is the old registration from two days ago is still valid or should I re-register ?

2017-11-29 15:17:05 GMT <fwu> ppl, any idea about this error:

2017-11-29 15:17:19 GMT <fwu> 2017-11-29 15:02:15,849 ERROR [org.alfresco.fileserver] [localhost-startStop-1] java.lang.UnsatisfiedLinkError: Native Library C:\alf5.2_201707\tomcat\bin\Win32NetBIOSx64.dll already loaded in another classloader

2017-11-29 15:17:55 GMT <fwu> why this dll is needed?

2017-11-29 15:41:40 GMT <Tichodroma> Consider a d:text property with index/tokenized false. When I configure this property to be a facet (https://docs.alfresco.com/community5.0/tasks/filtered-search-custom.html), I expect the facets to contain only complete property values.

2017-11-29 15:41:42 GMT <alfbot> Title: Defining custom search filters using configuration file | Alfresco Documentation (at docs.alfresco.com)

2017-11-29 15:42:41 GMT <Tichodroma> But the facets contain what looks like tokens from splitting the property values.

2017-11-29 15:43:45 GMT <douglascrp> yreg, yes, I saw that one

2017-11-29 15:43:53 GMT <douglascrp> are you going to provide it?

2017-11-29 15:44:43 GMT <Tichodroma> My use case is to store mail addresses. The facets should not provide local parts, domains, and combinations of these but only the complete mail addresses.

2017-11-29 15:45:39 GMT <yreg> douglascrp, already done ;-)

2017-11-29 15:46:33 GMT <yreg> Tichodroma, is there a chance you made an un-incremental change to your model, and solr is still tracking using the old model ?

2017-11-29 15:46:45 GMT <Tichodroma> hm, that's possible

2017-11-29 15:46:48 GMT <Tichodroma> let me check ...

2017-11-29 15:47:38 GMT <yreg> you could confirm by either doing a full reindex (so solr models need to be deleted as well) or by deleting solr models and have it recreate them while restarting and then touch the nodes in question by some modification

2017-11-29 15:49:51 GMT <Tichodroma> it's just a dev setup that is easily cleaned. I am do this right now.

2017-11-29 15:52:54 GMT <Tichodroma> yreg: worked, thanks

2017-11-29 17:17:33 GMT <fwu> ppl, what is the best way to get a noderef to a specific Alfresco folder using java?

2017-11-29 21:06:54 GMT <jamil> can anybody suggest me how to call Alfresco REST from JavaScript?

2017-11-29 21:56:13 GMT <fwu> back

2017-11-29 23:41:48 GMT <HarlinS> resplin, will there ever be a cmislib for Python 3 or is the cmis rest api going to be it?

2017-11-29 23:42:44 GMT <resplin> HarlinS: cmislib has always been a community project, rather than an official product.

2017-11-29 23:42:46 GMT <resplin> I haven't worked on cmislib in a very long time, and Jeff appears to have also moved on to other projects.

2017-11-29 23:43:32 GMT <resplin> I would love to see a Python 3 cmislib, and implement the browser binding. But I don't think I'll get my port finished.

2017-11-29 23:43:45 GMT <resplin> I wonder if it would be easier now than when I last tried a few years ago.

2017-11-29 23:43:54 GMT <HarlinS> ok good to know. Python has lately been pushing for 3 and has set an EOL for 2.

2017-11-29 23:44:02 GMT <resplin> Correct.

2017-11-29 23:44:48 GMT <HarlinS> I have made some attempts at some kind of compatibility but it has been difficult

2017-11-29 23:46:10 GMT <HarlinS> to be honest though, I haven't really put forth serious effort but just from trying to get it to run using 3.6.3, it will take some effort.

2017-11-29 23:46:11 GMT <resplin> Yeah. I tried as part of a hack-a-thon a couple of years ago, but it was too big of a project for one day and I never got back to it.

2017-11-29 23:46:50 GMT <resplin> But at the time, Jeff and I thought we should do the browser binding first, then the python 3 port. But now it probably makes more sense to go straight to python 3.

2017-11-29 23:47:39 GMT <HarlinS> have you guys made any hard plans to port to 3?

2017-11-29 23:47:47 GMT <resplin> No.

2017-11-29 23:47:53 GMT <resplin> Neither as a company, or as individual contributors.

2017-11-29 23:48:07 GMT <resplin> We just recognize that it needs to happen if it is going to remain a viable library.

2017-11-29 23:48:25 GMT <resplin> But Jeff is mostly busy with his other projects, and I've been kneck-deep in DevCon.

2017-11-29 23:48:48 GMT <HarlinS> understandable. thanks, resplin!

2017-11-29 23:55:17 GMT *** dan_ is now known as Guest58936

End of Daily Log

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