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-09-27 06:44:04 GMT <digcat> ~later tell fcorti, a question re devcon in january, will orderofthebee have a stand at the event ?

2017-09-27 06:44:05 GMT <alfbot> digcat: The operation succeeded.

2017-09-27 06:56:25 GMT <Tichodroma> ContentWriter.putContent(InputStream is) says in the JavaDoc that "All resources will be closed automatically." Is this true for the InputStream, too? Or do I have to close it?

2017-09-27 07:10:24 GMT <Tichodroma> yes, both streams are closed: https://github.com/Alfresco/community-edition-old/blob/master/projects/repository/source/java/org/alfresco/repo/content/LimitedStreamCopier.java#L99

2017-09-27 07:10:25 GMT <alfbot> Title: community-edition-old/LimitedStreamCopier.java at master · Alfresco/community-edition-old · GitHub (at github.com)

2017-09-27 07:13:21 GMT <yreg> digcat, Yes, it will be a joint effort

2017-09-27 07:50:44 GMT <fcorti> Morning digicat, we did not agree this but we are going to meet the OOTBee board soon to start defining tasks and practical involvements.

2017-09-27 07:50:44 GMT <alfbot> fcorti: Sent 1 hour and 6 minutes ago: <digcat> question re devcon in january, will orderofthebee have a stand at the event ?

2017-09-27 08:29:27 GMT <fcorti> digicat soon means: today! ;-)

2017-09-27 09:05:32 GMT <yreg> AFaust, I want to access a risidual property not having a namespace from js

2017-09-27 09:05:36 GMT <yreg> is that possible ?

2017-09-27 09:05:46 GMT <yreg> residual*

2017-09-27 09:07:48 GMT <yreg> hmmm n.properties['{}myprop'] seems to be working...

2017-09-27 09:07:58 GMT <AFaust> Alright, was about to suggest that

2017-09-27 09:40:56 GMT <yreg> I am trying to process a template in javascript

2017-09-27 09:41:12 GMT <yreg> I have the model to be processes as a json string

2017-09-27 09:42:28 GMT <yreg> I parsed it with JSON.parse / jsonUtils.toObject and I am trying to pass that on to node.processTemplate(templateNode, templateModel)

2017-09-27 09:43:02 GMT <yreg> but template does not seem to be able to fetch properties out of the model !

2017-09-27 09:51:01 GMT <yreg> Aha !

2017-09-27 09:51:36 GMT <yreg> args are not appended to the model directly, but are wrapped into an args parent object

2017-09-27 10:07:05 GMT <yreg> Ouch !

2017-09-27 10:12:54 GMT <yreg> processTemplate only forwards string args

2017-09-27 10:13:02 GMT <yreg> the rest is ommitted on purpose

2017-09-27 10:13:05 GMT <yreg> what a shame

2017-09-27 10:24:09 GMT <AFaust> yreg: Sounds like the typical engineering tunnel-vision at work. Like the form processors only supporting simple text values for actions before someone in the community was bold enough to try a date or numeric

2017-09-27 10:38:20 GMT <yreg> AFaust, any known workaround, has been struggling with this for a couple of hours already

2017-09-27 10:39:10 GMT <yreg> tried passing the whole model as js string and parsing/evaluating it in ftl but that is generating corrupt output!

2017-09-27 10:40:29 GMT <AFaust> Oh, I've never use that function. Don't see much of a purpose in it, as generating any kind of response is not the responsibility of the JS layer in the first place

2017-09-27 10:40:37 GMT <yreg> well.. it looks like my hacky workaround did work, I just need to adapt other parts of my coding, still I think it is very hacky and that's not the way things should be done

2017-09-27 10:41:55 GMT <AFaust> So the primary problem you have is caused by the simple value.toString() call, right=?

2017-09-27 10:49:42 GMT <yreg> AFaust, turned out that the ?eval builtin does not accept nulls

2017-09-27 10:50:21 GMT <yreg> so I added a replace in my js to replace " null," by " \"\","

2017-09-27 10:50:34 GMT <yreg> ugly as hell, but does the job

2017-09-27 11:09:31 GMT <fwu> hi all

2017-09-27 11:18:10 GMT <fwu> ppl, in a webscript I have this: <authentication runas="admin">none</authentication>

2017-09-27 11:18:30 GMT <fwu> If I try the webscript without login I get a blnak page

2017-09-27 11:18:45 GMT <fwu> if I login in Alfresco, the webscript works well

2017-09-27 11:19:02 GMT <fwu> why do I need to authenticate to call this webscript?

2017-09-27 11:19:50 GMT <fwu> This is to return code/description values. And I would like any application in the organization to be able to call the script without authentication.

2017-09-27 11:45:11 GMT <AFaust> Without knowing your webscript we can't know if a blank result might not actually be the correct result in that constellation...

2017-09-27 12:23:18 GMT <Loftux> fwu: And how do you call this webscript? If via the share proxy, it has to be via proxy/alfresco-noauth/ (if I remember correctly)

2017-09-27 12:28:24 GMT <mtsiak> nodeService.deleteNode() deletes permantly the documents, are it takes is to trash ?

2017-09-27 12:32:18 GMT <yreg> mtsiak, it depends

2017-09-27 12:32:49 GMT <yreg> if the node is already in trash (archive store) or if it has the aspect temporary then it deletes it permanently

2017-09-27 12:33:09 GMT <yreg> in the other cases, it just archives it (put it in trash)

2017-09-27 12:35:15 GMT <mtsiak> how can i delete is permantly?

2017-09-27 12:35:20 GMT <mtsiak> at once ?

2017-09-27 12:41:53 GMT <Loftux> mtsiak: Apply the aspect "sys:temporary" before you delete

2017-09-27 12:43:52 GMT <mtsiak> ok. thanks.

2017-09-27 12:47:26 GMT <AFaust> yreg: You forgot to mention "If the store of the node does not have an associated archive, it will delete it permanently"

2017-09-27 12:48:01 GMT <AFaust> But I guess it was safe to assume that workspace://SpacesStore was the context.

2017-09-27 12:48:20 GMT <AFaust> I may be one of the few people that ever have created a custom store for specific use cases...

2017-09-27 13:01:45 GMT <yreg> AFaust, hehe.. you always find out an edge case to raise a VETO

2017-09-27 13:07:37 GMT <AFaust> Not a veto, just an addition

2017-09-27 13:11:31 GMT <Loftux> Interesting, I know that you can create custom store, but when would that be beneficial?

2017-09-27 13:15:24 GMT <yreg> Loftux, seperate data from different sites into different stores can be particularly interesting for RM use cases

2017-09-27 13:17:19 GMT <yreg> having a seperate store for RM can have its perks

2017-09-27 13:18:44 GMT <yreg> besides if you really need to have some of the content encrypted on disk but the encryption process can be time& cpu consument, create a separate encrypted store only for a specific security critical location

2017-09-27 13:19:41 GMT <yreg> or when you have the same Alfresco instance used for both archiving and collaboration, and you need relatively better speed for collaboration scenarios ...

2017-09-27 13:20:39 GMT <yreg> Personally I have never used custom stores <grin> but as you can see, I can think of more than one use case that would benefit from it ;-)

2017-09-27 13:23:15 GMT <Loftux> yreg: Thanks. For what I know everything in Alfresco clients is wired to use workspace:/SpacesStore (and archive), if you use a custom store it would get really tucked away. But maybe that is what one wants.

2017-09-27 13:23:32 GMT <AFaust> You could also use a separate store to handle all your non-file-folder data, e.g. for master data management. You don't accidentally pollute the search space (index) with data that might not be usable in the default Share UIs anyway... (so why risk showing it e.g. in faceted search)

2017-09-27 13:24:41 GMT <AFaust> Actually, the doclib is only wired to workspace://SpacesStore via the rootNode - if you'd change that via a customisation to root node from a different store (also for other components that have a root node config), then it should work for a different store

2017-09-27 13:25:11 GMT <AFaust> When there is hard-coding, it usually is for default on the high-level "company home" root...

2017-09-27 13:25:46 GMT <AFaust> e.g. in forms, but this could be adressed easily by configuring the root explicitly and using a node locator to consider the relative context

2017-09-27 13:26:52 GMT <yreg> AFaust, how would it behave if I have a node from a custom store as a child in workspace://SpacesStore

2017-09-27 13:26:54 GMT <yreg> ?

2017-09-27 13:27:13 GMT <yreg> I suppose it should not cause any troubles, right ?

2017-09-27 13:28:21 GMT <AxelFaust> Generally, it should not cause troubles on its own. But you know the collection of hacks and "bugfixes" that pervades some Alfresco features...

2017-09-27 13:28:53 GMT <AxelFaust> I would not want to guarantee it, after finding the hard-coded "is archived rendition" check during the hack-a-thon

2017-09-27 13:29:25 GMT <AxelFaust> Which is fine... as long as you don't want to have a rendition of the archived node itself...

2017-09-27 14:22:03 GMT <fwu> Loftux, you are right. It works with that url. thank you!

2017-09-27 14:22:12 GMT <fwu> uos

2017-09-27 14:22:16 GMT <fwu> not here anymore

2017-09-27 14:23:43 GMT <fwu> ~later tell Loftux You were right about the proxy/alfresco-noauth/ link. Thank you!

2017-09-27 14:23:43 GMT <alfbot> fwu: The operation succeeded.

2017-09-27 16:08:03 GMT <qwebirc10995> Hi! Do you know if there is a way to localise a content model defined with the model manger?

2017-09-27 16:08:13 GMT <qwebirc10995> manager*

2017-09-27 16:08:57 GMT <qwebirc10995> I can see that it is possible to define a single label, but I do not find how to localise it.

2017-09-27 16:33:37 GMT <yreg> qwebirc10995, if I remember right from the TTL about CMM, that was one of the missing features

2017-09-27 16:56:50 GMT <qwebirc10995> Hi yreg. Thank you very much for your answer.

2017-09-27 16:58:42 GMT <qwebirc10995> Is this information accessible online?

2017-09-27 20:11:07 GMT <eswbitto> AFaust or anyone really will this fork work on CE? https://github.com/sbraconnier/jodconverter

2017-09-27 20:11:08 GMT <alfbot> Title: GitHub - sbraconnier/jodconverter: JODConverter automates document conversions using LibreOffice or Apache OpenOffice. (at github.com)

2017-09-27 20:18:13 GMT <douglascrp> eswbitto, do you know these projects?

2017-09-27 20:18:14 GMT <douglascrp> https://bitbucket.org/xenit/alfresco-remote-jodconverter

2017-09-27 20:18:15 GMT <alfbot> Title: xenit / alfresco-remote-jodconverter — Bitbucket (at bitbucket.org)

2017-09-27 20:18:19 GMT <douglascrp> https://bitbucket.org/xenit/docker-jodconverter-ws

2017-09-27 20:18:20 GMT <alfbot> Title: xenit / docker-jodconverter-ws — Bitbucket (at bitbucket.org)

2017-09-27 20:18:26 GMT <douglascrp> I tried those and they work

2017-09-27 20:18:50 GMT <douglascrp> I didn't know about the one you posted

2017-09-27 20:20:07 GMT <eswbitto> douglascrp ha! I'll take a look at them.

2017-09-27 20:49:08 GMT <eswbitto> douglascrp do you use jodconverter version 3.0?

2017-09-27 21:21:45 GMT <AFaust> eswbitto: I have not checked that specific fork, but I have been using the Xenit remote jodconverter together with the original jodconverter project (in a setup similar to the jodconverter-ws from Xenit)

2017-09-27 21:32:55 GMT <eswbitto> AFaust I looked the the Xenit remote jodconverter The prerequisite is that you have a remote host setup as a jodconverter server....which I guess that would be open office and the original google code I assume.

2017-09-27 21:33:13 GMT <AFaust> Right

2017-09-27 21:33:37 GMT <eswbitto> anything else?

2017-09-27 21:33:56 GMT <douglascrp> eswbitto, I used both linked projects together, and never tried another combination

2017-09-27 21:34:04 GMT <eswbitto> ok

End of Daily Log

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