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-07-17 06:23:01 GMT <bobby__> hi I want to customize the alfresco process service and ADF can you give any link to do ?

2018-07-17 06:25:19 GMT <alfresco-discord> <Francesco Corti> You can try this: https://alfresco.github.io/adf-component-catalog/additional-documentation/tutorials.html

2018-07-17 06:25:20 GMT <alfbot> Title:ADF Component Catalog (at alfresco.github.io)

2018-07-17 06:29:17 GMT <bobby__> thanks @Francesco corti and one more thing What is Alfresco process service Workspace ?why we use it ?

2018-07-17 06:31:20 GMT <alfresco-discord> <Francesco Corti> It is the supported application made with adf on top of process service. It is for APS only not Activiti. If you are a Customer/Partner I suggest you to take a look at it.

2018-07-17 07:08:29 GMT <DarkStar1> Morning everyone

2018-07-17 08:23:25 GMT <alfresco-discord> <Popochon> o/

2018-07-17 08:25:09 GMT <alfresco-discord> <Popochon> hi... My alfresco stops working on TrashcanCleaner job (AIO ALF 5.2 MVN) In console i have only: DEBUG alfresco.trashcan.TrashcanCleaner Running TrashcanCleaner

2018-07-17 08:26:58 GMT <alfresco-discord> <Popochon> Share is freeze, repo too... that log is from 9 min ago... and still everything is freeze

2018-07-17 08:27:16 GMT <alfresco-discord> <Popochon> any idea what to check / do ?

2018-07-17 08:27:20 GMT <alfresco-discord> <Popochon> thx

2018-07-17 08:46:20 GMT <DarkStar1> Qq, anyone. I'm trying to render the edit-online-aos action in a custom surf page along with the other actions. yet the edit-online-aos action is the only custom action not showing. Anything I should know about how this action is rendered?

2018-07-17 09:09:46 GMT <bobby__> hi want to change backgrund color in <adf-start-process> tag let me know how to do it

2018-07-17 09:50:17 GMT <kkore> Sometimes getting multiple instances of the same task after the creation of workflow if user clicks multiple times on the start - workflow button.

2018-07-17 09:52:38 GMT <kkore> getting this issue once in a while but how can we resolve it??

2018-07-17 09:57:41 GMT <robin_> Hello everybody! I'm looking for help with my custom AfterInvocationManager issue.

2018-07-17 11:00:14 GMT <fwu> hello all!

2018-07-17 11:01:03 GMT <fwu> ppl, Im looking to the ListTasks service: https://api-explorer.alfresco.com/api-explorer/#!/tasks/listTasks

2018-07-17 11:01:05 GMT <alfbot> Title:Alfresco Content Services REST API Explorer (at api-explorer.alfresco.com)

2018-07-17 11:01:32 GMT <fwu> does anyone knows if I can filter the returned tasks using some workflow/tasks properties?

2018-07-17 11:01:57 GMT <fwu> From the parameters there is a where clause, but I dont know if it may use for this

2018-07-17 11:11:21 GMT <kkore> Sometimes getting multiple instances of the same task after the creation of workflow if user clicks multiple times on the start - workflow button. Getting this issue once in a while but how can we resolve it?? or can we disable button after 1st onclick of start button ??

2018-07-17 12:05:03 GMT *** rob is now known as Guest86266

2018-07-17 13:52:10 GMT <marcoaltieri> Hi

2018-07-17 13:52:36 GMT <marcoaltieri> on an alfresco server that has been recently update from a very old version

2018-07-17 13:52:57 GMT <marcoaltieri> We are having a strange error where the javascript

2018-07-17 13:53:05 GMT <marcoaltieri> node.toJSON(true);

2018-07-17 13:53:15 GMT <marcoaltieri> fails on a particular node

2018-07-17 13:53:29 GMT <marcoaltieri> throwing a StackOverflowError

2018-07-17 13:53:58 GMT <marcoaltieri> trying to investigate, I just found out that alfresco is using an old version of the library org.json.JSONObject

2018-07-17 13:54:19 GMT <marcoaltieri> almost 10 years old and it seems that the source code is not available anywhere

2018-07-17 13:54:36 GMT <marcoaltieri> have you ever tried to substitute that library with a new one?

2018-07-17 13:58:27 GMT <angelborroy> What version is used in Alfresco 4.1

2018-07-17 13:58:35 GMT <angelborroy> I think that source code is avaialable at https://github.com/stleary/JSON-java

2018-07-17 13:58:36 GMT <alfbot> Title:GitHub - stleary/JSON-java: A reference implementation of a JSON package in Java. (at github.com)

2018-07-17 13:58:58 GMT <angelborroy> marcoaltieri probably releasing a patch is better than installing an upgrade

2018-07-17 14:01:40 GMT <marcoaltieri> angelborroy, the problem is that it is being difficult to understand why it is failing and I will never be able to convince the alfresco support to work on it if I am not able to replicate it.

2018-07-17 14:02:11 GMT <marcoaltieri> it is difficult because I do not have the source code of that library

2018-07-17 14:02:24 GMT <angelborroy> What version is the one included in 4.1?

2018-07-17 14:02:40 GMT <marcoaltieri> I am on 5.2.2

2018-07-17 14:03:01 GMT <angelborroy> ah, ok, the problem is in 5.2.2

2018-07-17 14:04:22 GMT <angelborroy> I think it is json-20090211.jar

2018-07-17 14:04:30 GMT <marcoaltieri> Yes, exactly

2018-07-17 14:04:45 GMT <marcoaltieri> but the source code is not available anymore

2018-07-17 14:05:05 GMT <marcoaltieri> the developers discarded the old versions when they migrated to GIT

2018-07-17 14:05:10 GMT <angelborroy> https://github.com/stleary/JSON-java/issues/227

2018-07-17 14:05:12 GMT <angelborroy> I see

2018-07-17 14:05:12 GMT <alfbot> Title:Old version (20090211) source code? · Issue #227 · stleary/JSON-java · GitHub (at github.com)

2018-07-17 14:05:33 GMT <marcoaltieri> exactly

2018-07-17 14:05:43 GMT <angelborroy> Anyway, you don’t need the source code to provide a Unit Test to reproduce the problem, right?

2018-07-17 14:06:59 GMT <marcoaltieri> It happens only on a node in alfresco and I would need to understand what that node has

2018-07-17 14:07:51 GMT <angelborroy> Source code for ScriptNode.toJSON seems easy

2018-07-17 14:08:23 GMT <angelborroy> have you identified the NodeRef for the problematic node?

2018-07-17 14:09:45 GMT <marcoaltieri> Yes

2018-07-17 14:09:47 GMT <marcoaltieri> I have

2018-07-17 14:09:58 GMT <marcoaltieri> it does not see to have anything strange

2018-07-17 14:10:21 GMT <angelborroy> probably better approach is to build a unit test with that node ref

2018-07-17 14:10:31 GMT <angelborroy> you can even debut to identify the problem

2018-07-17 14:10:44 GMT <marcoaltieri> Actually I have a unit test

2018-07-17 14:10:54 GMT <marcoaltieri> it is enoug for me to go to the "javascript console"

2018-07-17 14:10:55 GMT <marcoaltieri> and run

2018-07-17 14:11:02 GMT <marcoaltieri> document.toJSON(true)

2018-07-17 14:11:21 GMT <angelborroy> and what is the full stacktrace?

2018-07-17 14:13:44 GMT <marcoaltieri> https://pastebin.com/Bsr2YC69

2018-07-17 14:13:45 GMT <alfbot> Title:2018-07-17 09:13:13,714 DEBUG [jscript.RhinoScriptProcessor.calls] [http-apr-10 - Pastebin.com (at pastebin.com)

2018-07-17 14:13:54 GMT <marcoaltieri> this is the stacktrace

2018-07-17 14:14:25 GMT <angelborroy> I see

2018-07-17 14:16:01 GMT <angelborroy> Probably overwriting ScriptNode to include traces should be helpful

2018-07-17 14:16:10 GMT <marcoaltieri> I did :)

2018-07-17 14:16:32 GMT <angelborroy> json.toString() is the point?

2018-07-17 14:17:54 GMT <angelborroy> I don’t see any other line that can provoke that overflow

2018-07-17 14:18:20 GMT <marcoaltieri> https://pastebin.com/KrTWgzJZ

2018-07-17 14:18:21 GMT <alfbot> Title:Possible Spam Detected (at pastebin.com)

2018-07-17 14:18:48 GMT <marcoaltieri> the log in ScriptNode could help only to know

2018-07-17 14:18:53 GMT <marcoaltieri> where it fails

2018-07-17 14:18:58 GMT <marcoaltieri> it fails executing

2018-07-17 14:19:15 GMT <marcoaltieri> json.put("properties", nodePropertiesShortQNames)

2018-07-17 14:19:54 GMT <marcoaltieri> where nodePropertiesShortQNames is a map of all the properties with the prefixedQName as key

2018-07-17 14:20:04 GMT <marcoaltieri> keys

2018-07-17 14:20:29 GMT <angelborroy> so, yes, it’s clear

2018-07-17 14:20:34 GMT <angelborroy> a JSON Library but

2018-07-17 14:20:40 GMT <angelborroy> but > bug

2018-07-17 14:21:02 GMT <marcoaltieri> Yes, but it is strange that it happens only on that node

2018-07-17 14:21:17 GMT <marcoaltieri> In the log I pasted, you can see all the properties

2018-07-17 14:21:22 GMT <angelborroy> well, I found a bug in Apache Tika produced only in 1 node

2018-07-17 14:21:33 GMT <marcoaltieri> right...

2018-07-17 14:21:58 GMT <angelborroy> hehe

2018-07-17 14:22:09 GMT <angelborroy> The brand new ACS 6.0 includes...

2018-07-17 14:22:16 GMT <angelborroy> json-20090211.jar

2018-07-17 14:22:33 GMT <angelborroy> So I bet that they tried to upgrade the library without success

2018-07-17 14:23:07 GMT <marcoaltieri> I see.

2018-07-17 14:24:07 GMT <angelborroy> Probably you’ll have to patch your own release of 20090211 and produce a json-20090211-patched.jar

2018-07-17 14:24:52 GMT <angelborroy> Luckily Alfresco will include this source code in GitHub and they’ll maintain it till the library will be discarded

2018-07-17 14:24:58 GMT <angelborroy> (Ideal world, you know)

2018-07-17 14:26:34 GMT <marcoaltieri> Ok. So I should be able to find it in the Alfresco github

2018-07-17 14:26:35 GMT <marcoaltieri> thanks

2018-07-17 14:33:01 GMT <marcoaltieri> :)

2018-07-17 14:33:38 GMT <fwu> ppl, Im trying the REST APi to get tasks filter by a variable value. there is a variables parameter but I cant find any examples explaining how to use it. Does anyone have an example about this?

2018-07-17 14:51:37 GMT <fwu> ok, I was not including the "variables/" prefix

2018-07-17 15:11:33 GMT <angelborroy> I didn’t know where to raise this problem:

2018-07-17 15:11:33 GMT <angelborroy> https://issues.alfresco.com/jira/browse/ALF-22013

2018-07-17 15:11:47 GMT <angelborroy> “Public” GitHub repository has no “issues” option activated

2018-07-17 15:40:44 GMT <fwu> ppl, is it possible to get the name of the task definitions associated with a workflow definition? It seems somewhere I could get it doing something like this: /{processDefinitionId}/model but now "model" doesnt not exists

2018-07-17 19:40:26 GMT <marcoaltieri> @angelborroy, if you are interested to know what was the issue

2018-07-17 19:41:43 GMT <marcoaltieri> I found out that it was caused by property set with a joda "DateTime" value.

End of Daily Log

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