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

2018-12-06 05:33:39 GMT <alfresco-discord> <Shyam42> =>Hi Good morning =>I am assign the task to one user. =>That user dont want to do that task at that time. he wanted to HOLD that task for 2 days(i am taking as input from user). =>Now i wanted to remove that task from his task list and give it after 2 days. =>For that i will assign that task to some temp user and put the 2 days of timer on that task so after two days its reassign to my user =>This

2018-12-06 05:33:40 GMT <alfresco-discord> is my approach is there any other approach to archive this directly?

2018-12-06 07:41:27 GMT <alfresco-discord> <yreg> Morning everyone

2018-12-06 11:15:56 GMT <alfresco-discord> <douglascrp> morning

2018-12-06 11:16:16 GMT <alfresco-discord> <douglascrp> @angel.borroy again about the SDK x Alfresco 6.0

2018-12-06 11:16:40 GMT <alfresco-discord> <douglascrp> so, the way you are working right now is using the tips you gave on your blog post in the community, and then after building the jar, you use docker to run it?

2018-12-06 11:17:07 GMT <alfresco-discord> <douglascrp> I guess this is going to be the best thing to do, judging by the level of support we are getting from alfresco

2018-12-06 11:17:36 GMT <alfresco-discord> <douglascrp> I tried the Martin's project, and it seems good, but not good enough

2018-12-06 11:18:28 GMT <alfresco-discord> <douglascrp> so for now, I think I am going to keep using the SDK 3.0.1, changing the dependencies informarmation, and using it simply for packaging, and no more for execution

2018-12-06 12:04:08 GMT <alfresco-discord> <douglascrp> right now I am giving the SDK 4.0.0-SNAPSHOT a try

2018-12-06 12:04:14 GMT <alfresco-discord> <douglascrp> lets see how it goes

2018-12-06 12:04:38 GMT <alfresco-discord> <douglascrp> is anyone more working on something like this?

2018-12-06 12:10:59 GMT <alfresco-discord> <MorganP> There is a 4.0 now?

2018-12-06 12:11:12 GMT <alfresco-discord> <douglascrp> no, there isn't

2018-12-06 12:11:19 GMT <alfresco-discord> <MorganP> Ah ok understood

2018-12-06 12:11:26 GMT <alfresco-discord> <douglascrp> this is a development branch created by Ole during the last hackathon

2018-12-06 12:11:41 GMT <alfresco-discord> <douglascrp> but I am trying it, in order to understand the current status, and if I can help with something

2018-12-06 12:11:45 GMT <alfresco-discord> <MorganP> that's the one got it

2018-12-06 12:14:00 GMT <alfresco-discord> <douglascrp> I hope I can make it work, at least for simple projects as the one I am working right now

2018-12-06 12:18:13 GMT <AFaust> douglascrp: "Anyone more working on something like this?" - I was hoping some more people show interest in that mailing list thread of mine...

2018-12-06 12:18:43 GMT <alfresco-discord> <douglascrp> AFaust, indeed 馃槃

2018-12-06 12:18:45 GMT <alfresco-discord> <douglascrp> my fault

2018-12-06 12:18:46 GMT <AFaust> Ideally some that also would be willing to (co-)lead...

2018-12-06 12:20:05 GMT <alfresco-discord> <douglascrp> I completely missed this part "AND/OR create a standard build setup (in lieu of an updated Alfresco SDK that may never arrive)"

2018-12-06 12:20:39 GMT <alfresco-discord> <douglascrp> well, I am just starting playing with it...

2018-12-06 12:31:54 GMT <alfresco-discord> <douglascrp> I am trying the following... running alfresco using sdk, and solr6 with docker

2018-12-06 12:32:19 GMT <alfresco-discord> <douglascrp> but how to let the docker container access my repository, which is running locally, on port 8080

2018-12-06 12:33:14 GMT <alfresco-discord> <douglascrp> how to set the variables in the docker-compose.yml file? - SOLR_ALFRESCO_HOST=localhost - SOLR_ALFRESCO_PORT=8080

2018-12-06 12:37:33 GMT <alfresco-discord> <Thijs> @douglascrp Don't know about Alfresco SDK, but localhost in a docker container does not point to the hosts localhost (unless specifically on the host network(

2018-12-06 12:38:28 GMT <alfresco-discord> <Thijs> but you can check the IP of the container, and if you change the last number to 1, it should pint to the host

2018-12-06 12:38:32 GMT <alfresco-discord> <douglascrp> yes, I am doing some research

2018-12-06 12:38:42 GMT <alfresco-discord> <Thijs> but your Alfresco needs to listen on that network

2018-12-06 12:39:05 GMT <alfresco-discord> <Thijs> but that might be the default case

2018-12-06 12:39:05 GMT <alfresco-discord> <douglascrp> alfresco is already able to talk to the postgresql container

2018-12-06 12:39:16 GMT <alfresco-discord> <douglascrp> the probme now is solr container talking to local alfresco

2018-12-06 12:39:43 GMT <alfresco-discord> <Thijs> yes, that is the other way around, which is trickier

2018-12-06 12:40:55 GMT <alfresco-discord> <Thijs> @douglascrp I would exec into the Solr container and try to curl (maybe you have to first install it) if you can access it on the network docker-compose created

2018-12-06 12:41:10 GMT <alfresco-discord> <douglascrp> good idea

2018-12-06 12:41:33 GMT <alfresco-discord> <Thijs> Alfresco SDK doesn't start the repo in a container too?

2018-12-06 12:41:46 GMT <alfresco-discord> <douglascrp> no, it uses the tomcat plugin

2018-12-06 12:42:07 GMT <alfresco-discord> <Thijs> what does it do?

2018-12-06 12:42:30 GMT <alfresco-discord> <Thijs> starts tomcat with maven?

2018-12-06 12:42:49 GMT <alfresco-discord> <douglascrp> yes, and deploys the war file, which got the amp file installed

2018-12-06 12:44:18 GMT <alfresco-discord> <Thijs> it feels a bit weird to me to start Alfresco on the host and the other apps in containers when they need to reach Alfresco

2018-12-06 12:44:34 GMT <alfresco-discord> <douglascrp> it is just for tests, during development

2018-12-06 12:44:40 GMT <alfresco-discord> <Thijs> I understand

2018-12-06 12:48:50 GMT <alfresco-discord> <Thijs> @douglascrp https://docs.docker.com/compose/compose-file/#host-or-none

2018-12-06 12:48:51 GMT <alfbot> Title:Compose file version 3 reference | Docker Documentation (at docs.docker.com)

2018-12-06 12:49:23 GMT <alfresco-discord> <Thijs> so you can put the container directly on the host network

2018-12-06 12:49:39 GMT <alfresco-discord> <douglascrp> ok, let me read it

2018-12-06 12:49:40 GMT <alfresco-discord> <douglascrp> tks

2018-12-06 12:50:20 GMT <alfresco-discord> <Thijs> @douglascrp sorry, it is not correct

2018-12-06 12:51:05 GMT <alfresco-discord> <Thijs> https://docs.docker.com/compose/compose-file/compose-file-v2/#network_mode

2018-12-06 12:51:06 GMT <alfbot> Title:Compose file version 2 reference | Docker Documentation (at docs.docker.com)

2018-12-06 12:51:31 GMT <alfresco-discord> <Thijs> I use it sometimes with a docker run: docker run -it --rm --network host -v config-omnidb:/etc/omnidb taivokasper/omnidb:master

2018-12-06 12:52:09 GMT <alfresco-discord> <douglascrp> right... let me try to understand this thing.. tks again

2018-12-06 13:55:18 GMT <alfresco-discord> <douglascrp> @Thijs in the host, if I run sudo ip addr show docker0, I get the local IP

2018-12-06 13:55:31 GMT <alfresco-discord> <douglascrp> and from inside the container, I can reach the IP normally

2018-12-06 13:55:44 GMT <alfresco-discord> <douglascrp> and that without changing anything

2018-12-06 13:56:19 GMT <alfresco-discord> <douglascrp> the problem now is how to resolve that IP without hard coding it inside the docker-compose.yml file

2018-12-06 13:58:10 GMT <alfresco-discord> <yreg> that's easy @douglascrp have you looked at my PoC ?

2018-12-06 13:58:26 GMT <alfresco-discord> <douglascrp> @yreg not in details, it seems

2018-12-06 13:58:36 GMT <alfresco-discord> <douglascrp> let me go back to it... I bet you have it done already

2018-12-06 13:58:41 GMT <alfresco-discord> <yreg> this is the magic hotsname you're looking for : https://github.com/yregaieg/acs6-sdk3-poc/blob/master/docker-compose.yml#L26

2018-12-06 13:58:42 GMT <alfbot> Title:acs6-sdk3-poc/docker-compose.yml at master 路 yregaieg/acs6-sdk3-poc 路 GitHub (at github.com)

2018-12-06 14:00:23 GMT <alfresco-discord> <douglascrp> yes, I tried that before, and it didn't work

2018-12-06 14:00:40 GMT <alfresco-discord> <douglascrp> I tried it again now, even trying to set the version as 3.1 as you did, and still, doesn't work

2018-12-06 14:00:52 GMT <alfresco-discord> <douglascrp> I guess it is a problem with docker/docker-compose version

2018-12-06 14:01:25 GMT <alfresco-discord> <douglascrp> what I have: Docker version 18.06.1-ce, build e68fc7a docker-compose version 1.18.0, build 8dd22a9

2018-12-06 14:01:31 GMT <alfresco-discord> <douglascrp> can you check yours, please?

2018-12-06 14:03:02 GMT <alfresco-discord> <yreg> it could be a mac only thing then

2018-12-06 14:03:10 GMT <alfresco-discord> <douglascrp> mac and windows, if I am not wrong

2018-12-06 14:03:16 GMT <alfresco-discord> <douglascrp> i am trying to find the reference I used before

2018-12-06 14:04:33 GMT <alfresco-discord> <yreg> I am now on 10.09 but it worked well with 18.03 as well

2018-12-06 14:04:54 GMT <alfresco-discord> <douglascrp> well, I will keep searching 馃槃

2018-12-06 14:04:55 GMT <alfresco-discord> <douglascrp> tks anyway

2018-12-06 14:06:22 GMT <alfresco-discord> <Thijs> @douglascrp Alfresco's SDK must have some version where it works, doesn't it?

2018-12-06 14:06:56 GMT <alfresco-discord> <yreg> @douglascrp https://github.com/docker/for-linux/issues/264

2018-12-06 14:06:59 GMT <alfbot> Title:Support host.docker.internal DNS name to host 路 Issue #264 路 docker/for-linux 路 GitHub (at github.com)

2018-12-06 14:07:07 GMT <alfresco-discord> <yreg> my guess it is not yet implemented

2018-12-06 14:07:45 GMT <alfresco-discord> <douglascrp> @Thijs nope

2018-12-06 14:08:15 GMT <alfresco-discord> <douglascrp> @yreg exactly

2018-12-06 14:09:01 GMT <alfresco-discord> <Thijs> @douglascrp So you can't do integration testing with Alfresco's SDK?

2018-12-06 14:09:12 GMT <alfresco-discord> <douglascrp> with alfresco 6, no

2018-12-06 14:12:19 GMT <alfresco-discord> <Thijs> but I can guess you can mount an unpacked war inside a container, or copy it ...

2018-12-06 14:12:41 GMT <alfresco-discord> <douglascrp> yes, that is one option

2018-12-06 14:12:56 GMT <alfresco-discord> <yreg> @douglascrp would this work for you : https://github.com/docker/for-linux/issues/264#issuecomment-427957904

2018-12-06 14:12:58 GMT <alfbot> Title:Support host.docker.internal DNS name to host 路 Issue #264 路 docker/for-linux 路 GitHub (at github.com)

2018-12-06 14:13:30 GMT <alfresco-discord> <douglascrp> I was looking at that one... trying it right now

2018-12-06 14:13:57 GMT <alfresco-discord> <Thijs> @douglascrp we build a war first, unpack it, and copy it in an image, and inject the built image in a compose file

2018-12-06 14:15:43 GMT <alfresco-discord> <douglascrp> @yreg it is not complaining anymore

2018-12-06 14:15:45 GMT <alfresco-discord> <douglascrp> cool

2018-12-06 14:16:09 GMT <alfresco-discord> <douglascrp> now my variable is like SOLR_ALFRESCO_HOST=dockerhost

2018-12-06 14:20:02 GMT <alfresco-discord> <douglascrp> one problem solved, and a new one arrived 馃槃

2018-12-06 14:21:27 GMT <alfresco-discord> <yreg> If you are following my repo

2018-12-06 14:22:06 GMT <alfresco-discord> <yreg> do not forget to add the correct solr properties like port to your pg gloabal props

2018-12-06 14:22:08 GMT <alfresco-discord> <douglascrp> when I start the alfresco project https://pastebin.com/3hsgJ69q

2018-12-06 14:22:09 GMT <alfbot> Title:2018-12-06 12:19:34,476 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] - Pastebin.com (at pastebin.com)

2018-12-06 14:22:24 GMT <alfresco-discord> <douglascrp> @yreg those are right already... first thing I changed

2018-12-06 14:22:39 GMT <alfresco-discord> <douglascrp> I noticed they were wrong in the branch

2018-12-06 14:29:33 GMT <alfresco-discord> <douglascrp> ok... brb... lunch time

2018-12-06 14:29:40 GMT <alfresco-discord> <douglascrp> tks for all the help/tips so far

2018-12-06 15:40:18 GMT <alfresco-discord> <MorganP> Is there an add-on somewhere to allow users to use the DENY permissions?

2018-12-06 15:40:39 GMT <alfresco-discord> <MorganP> in Share

2018-12-06 15:43:09 GMT <alfresco-discord> <MorganP> I always wondered why it was supposed by Alfresco but never accessible for end-users

2018-12-06 15:43:45 GMT <alfresco-discord> <MorganP> it could be helpful in some cases to avoid breaking the inheritance and still removing 1 permission

2018-12-06 15:44:36 GMT <alfresco-discord> <MorganP> s,supposed,supported,

2018-12-06 16:05:27 GMT <AFaust> Not aware of any addon that exposes it in the UI.

2018-12-06 16:08:11 GMT <alfresco-discord> <douglascrp> ok, I got the SDK 4.0 running now

2018-12-06 16:08:30 GMT <alfresco-discord> <douglascrp> and in order to eliminate the error I shared before, I had to disable activiti

2018-12-06 16:08:55 GMT <alfresco-discord> <mbui> I have a piece of code which transforms a document to pdf. Then executes an action on this pdf (adding signature). However the transform has not "finished" yet so it's not a PDF yet causing an exception "PDF header signature not found". Any ideas on how to tackle this? I.e. running the code when the transformation has been finished?

2018-12-06 16:12:37 GMT <alfresco-discord> <MorganP> Rules?

2018-12-06 16:14:28 GMT <alfresco-discord> <MorganP> Forget what I said, after re-reading, it's probably not what you wanted to hear

2018-12-06 16:23:28 GMT <alfresco-discord> <mbui> Maybe add a marker aspect on the node after the transformation and have a policy "consume" the marker aspect and then apply the logic? 馃

2018-12-06 16:38:54 GMT <alfresco-discord> <douglascrp> it is weird, but I could not find a way to make this repository start with activiti enabled

2018-12-06 16:39:10 GMT <alfresco-discord> <douglascrp> I am going to keep it disabled, as I am not really going to use it, at least not for development

2018-12-06 16:39:26 GMT <alfresco-discord> <douglascrp> if it works to package the project, and run my tests, it is enough for now

2018-12-06 17:02:58 GMT <alfresco-discord> <douglascrp> if anyone is interested about how the project is right now, check here https://github.com/douglascrp/alfresco-sdk/tree/sdk-4.0

2018-12-06 17:02:59 GMT <alfbot> Title:GitHub - douglascrp/alfresco-sdk at sdk-4.0 (at github.com)

2018-12-06 17:03:07 GMT <alfresco-discord> <douglascrp> I have just pushed my last changes

2018-12-06 17:05:34 GMT <alfresco-discord> <douglascrp> two things that have to be fixed... 1 - use the native "host.docker.internal" when docker is running on mac or windows, and conditionally use the workaround that is in place right now for linux (until docker on linux supports the same feature)

2018-12-06 17:05:45 GMT <alfresco-discord> <douglascrp> 2 - fix the startup when activiti is enabled

2018-12-06 17:09:02 GMT <alfresco-discord> <douglascrp> anyone on MAC, can please run this? uname -s

2018-12-06 17:09:15 GMT <alfresco-discord> <douglascrp> for Linux, it should return "Linux", but for MAC, I am not sure

2018-12-06 17:22:57 GMT <alfresco-discord> <douglascrp> Ok, I have created a "fix" for the first item

2018-12-06 17:23:09 GMT <alfresco-discord> <douglascrp> please, if anyone can give it a try on windows or mac

2018-12-06 17:23:24 GMT <alfresco-discord> <douglascrp> and let me know how it goes

End of Daily Log

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