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-10-02 07:21:39 GMT <bhagyas> God

2017-10-02 07:21:43 GMT <bhagyas> Good morning all

2017-10-02 07:21:46 GMT <bhagyas> :)

2017-10-02 07:21:52 GMT <bhagyas> it's been a while

2017-10-02 07:21:54 GMT <bhagyas> :D

2017-10-02 07:22:06 GMT <yreg> Morning there !

2017-10-02 07:22:13 GMT <yreg> Morning every one !

2017-10-02 07:22:21 GMT <yreg> has been a while indeed

2017-10-02 07:22:31 GMT <yreg> How it goes bhagyas ?

2017-10-02 07:23:30 GMT <bhagyas> its going good..back in Stockholm

2017-10-02 07:23:33 GMT <bhagyas> :D

2017-10-02 07:51:19 GMT <bhagyas> good to see Alfresco is back at it again (concerned about developers)

2017-10-02 08:04:24 GMT <mtsiak> hi all. in a VersionServicePolicies.AfterCreateVersionPolicy behaviour, i am trying to add a property in the documents current Version class, e.g. version.getVersionProperties().put("prop", "some value").

2017-10-02 08:04:25 GMT <mtsiak> ""

2017-10-02 08:05:01 GMT <mtsiak> but the next time the behaviour runs, the predecessorVersion.getVersionProperties().get("prop") is empty.

2017-10-02 08:05:48 GMT <mtsiak> the "prop" is not a property in an custom aspect, or type, that this document might have.

2017-10-02 08:09:30 GMT <mtsiak> has somehow this addition been pruned?

2017-10-02 08:11:20 GMT <angelborroy> mtsiak why don’t you try “Before”?

2017-10-02 08:11:35 GMT <angelborroy> mtsiak probably properties for a version are frozen once it has been created

2017-10-02 08:17:35 GMT <mtsiak> ok. will try and come back. Also already defined properties are not being ovveriden (e.g. name)

2017-10-02 08:18:28 GMT <mtsiak> and on NotificationFrequency.TRANSACTION_COMMIT ?

2017-10-02 08:19:23 GMT <angelborroy> mtsiak probably is the best choice for you

2017-10-02 08:23:15 GMT <mtsiak> The idea is to keep the same document name with the document's previous version, (at least) on a specific folder.

2017-10-02 08:24:07 GMT <mtsiak> Version class has properties like 'name', 'title'

2017-10-02 08:25:10 GMT <angelborroy> mtsiak I’m not following you, can you explain it further?

2017-10-02 08:25:30 GMT <bhagyas> mtsiak: you can only update it if the prop is not empty

2017-10-02 08:26:54 GMT <mtsiak> bhagyas version.getVersionProperties().put("name", predecessorVersionName); - doesnot work

2017-10-02 08:27:41 GMT <bhagyas> mtsiak: if you;re within the same transaction, you can store it as a transaction property

2017-10-02 08:27:49 GMT <bhagyas> and then re-use it

2017-10-02 08:28:52 GMT <mtsiak> angelborroy: we had been talking about the fact that on 5.2 when uploading a new version, the document's name is changed to the name of the uploaded doc.

2017-10-02 08:29:19 GMT <angelborroy> mtsiak so you want to preserve the original name, right?

2017-10-02 08:29:26 GMT <mtsiak> yes.

2017-10-02 08:29:44 GMT <angelborroy> and also to remove any hint from version node

2017-10-02 08:30:20 GMT <angelborroy> Probably reverting the change onBeforeCreateVersion should be enough

2017-10-02 08:30:35 GMT <bhagyas> mtsiak: check with @loftux, we have that built in with our lxcommunity Ecm build of Alfresco

2017-10-02 08:30:41 GMT <bhagyas> its available for free if you want to switch

2017-10-02 08:30:43 GMT <bhagyas> :)

2017-10-02 08:30:55 GMT <Loftux> https://github.com/loftuxab/alfresco-community-loftux/issues/28

2017-10-02 08:30:56 GMT <alfbot> Title: 5.2 File renamed on new version upload · Issue #28 · loftuxab/alfresco-community-loftux · GitHub (at github.com)

2017-10-02 08:31:39 GMT <angelborroy> bhagyas so is it done in Share????

2017-10-02 08:31:54 GMT <bhagyas> angelborroy: see the changes in what loftux posted

2017-10-02 08:31:57 GMT <angelborroy> bhagyas Alfresco is always surprising me

2017-10-02 08:32:06 GMT <bhagyas> its done in repo upload webscript

2017-10-02 08:32:18 GMT <angelborroy> ops! sorry

2017-10-02 08:32:21 GMT <angelborroy> yes, I see

2017-10-02 08:32:23 GMT <bhagyas> angelborroy: (why we have LXCommunity ECM) in the first place ;)

2017-10-02 08:32:34 GMT <bhagyas> you don't get surprises with it :D

2017-10-02 08:36:51 GMT <mtsiak> so the Alfrescoupload.js will override ch

2017-10-02 08:37:15 GMT <mtsiak> so the Alfresco's upload.js will override any changes on the behaviours?

2017-10-02 08:37:42 GMT <bhagyas> mtsiak: go through the code

2017-10-02 08:38:42 GMT <hi-ko> bhagyas, angelborroy: user would expect that upload only changes suffix and mimetype but never the base name ...

2017-10-02 08:40:49 GMT <Loftux> hi-ko: And that is exactly what our change does

2017-10-02 08:41:05 GMT <bhagyas> :D

2017-10-02 08:41:36 GMT <hi-ko> We should create a list of concept bugs we want/shoud fix in our community fork. e.g. we also added to deactivate ml-text. the "bug" you describe should be addressed in a better / real version handling which is today just a snapshot store what is not expected by the user.

2017-10-02 08:41:53 GMT <bhagyas> hi-ko: we have stopped creating lists, and into actively fixing them

2017-10-02 08:41:59 GMT <bhagyas> so you can join in

2017-10-02 08:42:24 GMT <bhagyas> things would actually get better now, since they have also moved to github

2017-10-02 08:42:29 GMT <bhagyas> and we can provide patches together

2017-10-02 08:44:04 GMT <hi-ko> bhagyas: of course we should join forces. That's what I already suggested months ago. We also fork but have the requirement to support different versions - not only the latest one.

2017-10-02 08:47:12 GMT <hi-ko> our forks have branches for the Alfresco versions we support: e.g https://github.com/ecm4u/alfresco-ce-repository/tree/5.2.g-patched

2017-10-02 08:47:13 GMT <alfbot> Title: GitHub - ecm4u/alfresco-ce-repository at 5.2.g-patched (at github.com)

2017-10-02 08:49:55 GMT <hi-ko> In contrast to the LXCommunity we start from the terminal release of a version or at least from a late stabile one to create our supported/fixed fork.

2017-10-02 08:52:12 GMT <bhagyas> in community edition, staying with older versions are a security and a migratino ri

2017-10-02 08:52:15 GMT <bhagyas> migration risk

2017-10-02 08:52:25 GMT <bhagyas> and we don't want that for our customers

2017-10-02 08:52:28 GMT <bhagyas> :)

2017-10-02 08:53:20 GMT <bhagyas> we had played with the idea of patches, but that's not allowing us to make changes Alfresco needs

2017-10-02 08:54:01 GMT <hi-ko> bhagyas: our experience is the opposite: we don't introduce all the bugs and leaks introduced with the newes code

2017-10-02 08:54:34 GMT <bhagyas> we go through every line of commit and ensure the product works before releasing a build :)

2017-10-02 08:54:43 GMT <hi-ko> and that's the reason we switched from patch modules to forks beginning with 5.1 version

2017-10-02 08:54:49 GMT <bhagyas> which might not be possible for many people to do

2017-10-02 08:55:14 GMT <bhagyas> and have done so for more than 3 years now

2017-10-02 08:55:32 GMT *** angelborroy_ is now known as angelborroy

2017-10-02 08:56:37 GMT <hi-ko> bhagyas: it's another approach. we allways take a stabile version as base for our work, testing, patching ...

2017-10-02 08:56:57 GMT <bhagyas> we work from the assumption that there are no stable versions ;)

2017-10-02 08:58:45 GMT <hi-ko> you always see an evolution from very first versions like seen in 5.2. Many things have been fixed which arised in the very first version

2017-10-02 08:59:06 GMT <bhagyas> yes, including fixes provided by us

2017-10-02 08:59:08 GMT <mtsiak> bhagyas i have been going through the code, but have not understand if there is a chance to change the filename of the new version using custom behaviours or not. I could not start overiding alfresco's core webscripts, it not our current policy. (and sorry for my inability to understand .. )

2017-10-02 09:02:58 GMT <Loftux> mtsiak: Since Alfresco change the name in this upload code, we didn't look at behaviours. Better change it as we did, since the Alfresco code are changing it, and all you can do is change it back with a behaviour.

2017-10-02 10:18:56 GMT <Tichodroma> the <import ...> syntax for JS is really annoying. Every JS editor complains about this syntax.

2017-10-02 11:16:33 GMT <Loftux> Tichodroma: For some it works if you close with: //</import> on the next row

2017-10-02 11:17:00 GMT <Loftux> The comment slashes has to be there of course

2017-10-02 11:24:27 GMT <yreg> Tichodroma, AFaust had an alternative that wouldn't cause the editor to complain, and it was integrated in one of his utility projects

2017-10-02 11:24:56 GMT <yreg> https://github.com/AFaust/alfresco-enhanced-script-environment

2017-10-02 11:24:57 GMT <alfbot> Title: GitHub - AFaust/alfresco-enhanced-script-environment (at github.com)

2017-10-02 11:33:10 GMT <yreg> Tichodroma, in https://issues.alfresco.com/jira/browse/ACE-2722 there is an interesting line https://issues.alfresco.com/jira/browse/ACE-2722?focusedCommentId=425857&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-425857

2017-10-02 11:33:55 GMT <yreg> apparently if you precede <import .... with "//" it will still be parsed, and editors wouldn't complain about it !

2017-10-02 11:35:53 GMT <Loftux> yreg: But only for Surf as per the last comment by AFaust, unless fixed now

2017-10-02 11:42:17 GMT <yreg> Loftux, you tell me, AFAIK you were the one following up on alfresco code, commit per commit !

2017-10-02 11:56:22 GMT <Loftux> yreg: Yes I remember every line of code, but I'll never tell you!

2017-10-02 12:14:05 GMT <Tichodroma> the //</import> trick works, at least in VS Code

2017-10-02 12:21:17 GMT <yreg> Loftux1, good point !

2017-10-02 12:34:17 GMT <yreg> Loftux, good point !

2017-10-02 17:05:49 GMT <xdexter> Hello, someone know some solution to share file with external users with autentication FREE?

2017-10-02 17:06:28 GMT <douglascrp> xdexter, you can use the quick share function inside share

2017-10-02 17:06:56 GMT <xdexter> douglascrp, yes, but i can't configure authentication

2017-10-02 17:07:09 GMT <xdexter> i need add some password e/or login

2017-10-02 17:07:25 GMT <douglascrp> but you just said "authentication free"

2017-10-02 17:07:31 GMT <xdexter> ahhhh

2017-10-02 17:07:34 GMT <douglascrp> I understood that as "no password or login"

2017-10-02 17:07:45 GMT <douglascrp> because that is exactly what that feature does

2017-10-02 17:07:53 GMT <xdexter> sorry, free is no payd ;/

2017-10-02 17:07:56 GMT <douglascrp> I guess there is no free solution for that

2017-10-02 17:08:00 GMT <douglascrp> got that

2017-10-02 17:08:02 GMT <douglascrp> :D

2017-10-02 17:08:14 GMT <douglascrp> you can take a look on what Loftux offers

2017-10-02 17:08:25 GMT <xdexter> yes, this solution is perfect

2017-10-02 17:08:27 GMT <douglascrp> but that is paid

2017-10-02 17:08:30 GMT <xdexter> but is very expensive for us

2017-10-02 17:08:45 GMT <douglascrp> sorry, but I guess you will find nothing

2017-10-02 17:08:48 GMT <douglascrp> for free

2017-10-02 17:09:29 GMT <xdexter> there are this: http://alfresco.com.cn/en/node/1570

2017-10-02 17:09:31 GMT <alfbot> Title: Alfresco private share link and password | alfresco.com.cn (at alfresco.com.cn)

2017-10-02 17:09:35 GMT <xdexter> but i can't find link to download

2017-10-02 17:15:32 GMT <douglascrp> chinese :D

2017-10-02 17:15:34 GMT <douglascrp> I can not read it

2017-10-02 17:15:47 GMT <douglascrp> and the english version has no information on how to get it, if paid or free

2017-10-02 17:16:05 GMT <xdexter> yes

2017-10-02 17:16:08 GMT <douglascrp> have you tried the contact?

2017-10-02 17:16:11 GMT <douglascrp> Phone: (010) 6854-6208

2017-10-02 17:16:11 GMT <douglascrp> Email: info@alfresco.com.cn

2017-10-02 17:16:11 GMT <douglascrp> Phone: (010) 8573-9896

2017-10-02 17:16:11 GMT <douglascrp> Email: support@alfresco.com.cn

2017-10-02 17:16:28 GMT <xdexter> i sended the email, yes, but no answer...

2017-10-02 17:17:23 GMT <douglascrp> an interesting solution

2017-10-02 17:17:42 GMT <douglascrp> and seems to be fully integrated into share

2017-10-02 17:21:42 GMT <xdexter> yes ;/

2017-10-02 20:31:40 GMT <emgee> Hey all, I'm trying to add a custom aspect and when I try to add it to a node using Manage Aspects it fails and I get this error: A merge request was made as a root extension request. This is not allowed. Anyone able to help point me in the correct direction?

2017-10-02 21:41:07 GMT <ptwenty> Hello all. A quick question. Is the ScriptNode APi save function async?

2017-10-02 21:41:16 GMT <ptwenty> I'm getting unpredictable results when running a piece of JS for renaming files in a Rule

End of Daily Log

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