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

2019-08-26 09:47:54 GMT <alfresco-discord> <bhagyas> has anyone managed to build repository artefacts to multiple alfresco versions using the same code base?

2019-08-26 09:50:33 GMT <alfresco-discord> <Thijs> @bhagyas We know all about that

2019-08-26 09:51:00 GMT <alfresco-discord> <Thijs> Although we cannot deny it is a bit complicated

2019-08-26 09:51:10 GMT <alfresco-discord> <bhagyas> I'm looking at building ACS + Legacy repo artefacts from the same code base

2019-08-26 09:51:35 GMT <alfresco-discord> <bhagyas> and apparently the ACS has some stuff that are not backwards compatible, and legacy has some stuff that is not forwards compatible

2019-08-26 09:51:46 GMT <alfresco-discord> <bhagyas> what maven plugins have worked for you? @Thijs

2019-08-26 09:51:54 GMT <alfresco-discord> <Thijs> 🙂

2019-08-26 09:51:59 GMT <alfresco-discord> <Thijs> Gradle

2019-08-26 09:52:08 GMT <alfresco-discord> <bhagyas> looked at assembly plugin, then dependencies plugin, now looking at patch plugin

2019-08-26 09:52:09 GMT <alfresco-discord> <bhagyas> 😛

2019-08-26 09:52:16 GMT <alfresco-discord> <bhagyas> I wish :[

2019-08-26 09:52:32 GMT <alfresco-discord> <bhagyas> The build is not built in gradle at the first place

2019-08-26 09:53:34 GMT <alfresco-discord> <Thijs> ok, with maven, I have no experience

2019-08-26 09:54:08 GMT <alfresco-discord> <Thijs> dynamic extensions builds for multiple alfresco versions: https://github.com/xenit-eu/dynamic-extensions-for-alfresco

2019-08-26 09:54:09 GMT <alfbot> Title:GitHub - xenit-eu/dynamic-extensions-for-alfresco: Rapid development of Alfresco repository extensions in Java. Deploy your code in seconds, not minutes. Life is too short for endless server restarts. (at github.com)

2019-08-26 09:55:03 GMT <alfresco-discord> <lars> Well yeah, we do some pretty rough things with Gradle. But it all comes down to "separate out the things that are different into separate classes. Write those separately for each version, and then pick the right variant of your class and the right compile dependencies"

2019-08-26 09:55:48 GMT <alfresco-discord> <bhagyas> yup, and looking at the build.gradle rn

2019-08-26 09:56:35 GMT <alfresco-discord> <bhagyas> issue with using the assembly plugin is that amp files have no support for unzipping by default

2019-08-26 09:57:34 GMT <alfresco-discord> <Thijs> @bhagyas what do you mean with: issue with using the assembly plugin is that amp files have no support for unzipping by default

2019-08-26 09:57:50 GMT <alfresco-discord> <bhagyas> I get : Failed to create assembly: Unable to obtain archiver for extension

2019-08-26 09:58:04 GMT <alfresco-discord> <bhagyas> when I use the dependencySet for amp file created eariler

2019-08-26 09:58:31 GMT <alfresco-discord> <bhagyas> I was thinking of extracting the amp and replacing the files using the assembly plugin to create an ACS amp file

2019-08-26 09:59:05 GMT <alfresco-discord> <Thijs> @bhagyas Sorry, I don't have a clue

2019-08-26 09:59:09 GMT <AFaust> bhagyas: As long as there are no glaring API conflicts, alls my projects use the same code base for Alfresco 5.0 to 6.1...

2019-08-26 09:59:54 GMT <alfresco-discord> <bhagyas> AFaust: except there is - Scheduled jobs are broken, Content download webscripts break, Share customisations break

2019-08-26 10:00:26 GMT <alfresco-discord> <kumar> Hi I need to override the cm:name for some special chars which need to change for all my existing custom types I know like how to override the properties but not sure how we will do it for entire types also can anyone please how we will do ?

2019-08-26 10:00:32 GMT <AFaust> That may be, but only if you used an Alfresco-specific way of registering the scheduled jobs before.

2019-08-26 10:00:37 GMT <alfresco-discord> <bhagyas> @Thijs I was trying to - 1- build AMP as usual, 2 use assembly plugin to switch out breaking context files

2019-08-26 10:00:52 GMT <AFaust> There has always been a way to register scheduled jobs that has not been broken.

2019-08-26 10:00:58 GMT <alfresco-discord> <bhagyas> @AFaust - exactly

2019-08-26 10:01:08 GMT <AFaust> Ok, the binary class API may have been broken, but that can be worked around as well.

2019-08-26 10:01:41 GMT <alfresco-discord> <bhagyas> and by using vendor specific (Alfresco style) config syntax you would have the expectation that it will abstract away any underlying library changes

2019-08-26 10:01:44 GMT <alfresco-discord> <bhagyas> :[

2019-08-26 10:02:36 GMT <AFaust> Yes, but you and I have known Alfresco for a while and know that expectation to be misguided...

2019-08-26 10:03:08 GMT <alfresco-discord> <bhagyas> yup, having at least a little bit of faith seems to render disappointment spectacularly

2019-08-26 10:03:22 GMT <alfresco-discord> <bhagyas> =.=

2019-08-26 10:03:36 GMT <AFaust> And none of the components we have used were marked as @AlfrescoPublicApi, so Alfresco was telling us "hey, that is not meant to be stable"

2019-08-26 10:04:10 GMT <alfresco-discord> <bhagyas> I probably need a hug

2019-08-26 10:04:11 GMT <AFaust> Oh... come to think of it, I just did a quick check, because I was not 100% sure.

2019-08-26 10:04:12 GMT <alfresco-discord> <bhagyas> lol

2019-08-26 10:05:33 GMT <AFaust> So CronTriggerBean was actually marked as @AlfrescoPublicApi, but that annotation only marks API elements that are guaranteed to not change "within a release", so still fair game for major releases.

2019-08-26 10:06:15 GMT <alfresco-discord> <bhagyas> -.-

2019-08-26 10:07:50 GMT <AFaust> Anyway... I am now using a little reflection + facade magic to bridge the incompatibility.

2019-08-26 11:37:47 GMT <CptLuxx> im in this channel now for a long time... and i came to the conclusion that alfresco is a trainwreck

2019-08-26 11:39:40 GMT <alfresco-discord> <Thijs> making your own trainwreck is the only solution

2019-08-26 12:09:20 GMT <alfresco-discord> <driesdp> @ERusso I got around to updating the dependencies and repositories of alfresco-zipkin. Master branch only requires public artifacts now

2019-08-26 12:31:29 GMT <alfresco-discord> <ERusso> @driesdp Thanks! Also @yreg FYI

2019-08-26 14:09:44 GMT <alfresco-discord> <drazen04> Hi guys, do you know how to pass param/params for a method function in action-config.xml like:

2019-08-26 14:09:46 GMT <alfresco-discord> <drazen04> <action id="workflow-history" icon="show-complete-wf-history" type="javascript" label="Workflow History"> <param name="function">onActionShowCompleteWorkflowHistory</param> <permissions> <permission allow="true">Write</permission> </permissions> <evaluator>enea.evaluator.workflowHistory</evaluator>

2019-08-26 14:09:47 GMT <alfresco-discord> <evaluator>evaluator.doclib.action.eneaDocument</evaluator> </action>

2019-08-26 14:10:03 GMT <alfresco-discord> <drazen04> <param name="function">onActionShowCompleteWorkflowHistory</param>

2019-08-26 14:10:43 GMT <alfresco-discord> <drazen04> i would pass a param for that function

2019-08-26 16:24:18 GMT <AFaust> drazen04: You never pass any parameters directly to a function - the function must already contain the necessary logic to retrieve data either from the record or from the action configuration (you can add custom <param name="xy"> blocks that the function can read)

End of Daily Log

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