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

2016-12-14 02:50:19 GMT *** mmccarthy1 is now known as mmccarthy

2016-12-14 07:02:55 GMT <twen> 'morning

2016-12-14 08:26:40 GMT <DarkStar1> Morning all

2016-12-14 09:11:53 GMT <iblanco> Hi everyone

2016-12-14 09:12:19 GMT <iblanco> I'm trying to use ${msg("my.label", myParam)} in a Share webscript

2016-12-14 09:12:27 GMT <iblanco> but it complains about it

2016-12-14 09:12:55 GMT <iblanco> How is the right way to use an i18n string with parameters in a freemarker template?

2016-12-14 09:18:53 GMT <Tichodroma> what error do you get?

2016-12-14 09:20:04 GMT <iblanco> Caused by: freemarker.core.ParseException: Parsing error in template "com/txinzer/invoice-redirector/invoice-redirector.get.html.ftl" in line 1, column 49:

2016-12-14 09:20:04 GMT <iblanco> Encountered ",", but was expecting one of:

2016-12-14 09:20:04 GMT <iblanco> "}"

2016-12-14 09:20:04 GMT <iblanco> "."

2016-12-14 09:20:15 GMT <iblanco> Myabe msg just doesn't support parameteres?

2016-12-14 09:20:43 GMT <Tichodroma> looks like. Why do you think it should?

2016-12-14 09:21:21 GMT <iblanco> Most proper i18n systems do support it.

2016-12-14 09:21:30 GMT <iblanco> But I guess I'll have to do a replace myself

2016-12-14 09:23:26 GMT <iblanco> humm, wait , it might support it, I think i found my mistake.

2016-12-14 09:33:30 GMT <iblanco> Yes, it was my mistake, msg does support having parameters

2016-12-14 09:39:17 GMT <yreg> Morning

2016-12-14 10:37:44 GMT <fwu> hi all!

2016-12-14 10:37:58 GMT <fwu> people Im having a strange error in a code I beleive it was working....

2016-12-14 10:38:20 GMT <fwu> WorkflowTask updatedTask = workflowService.updateTask(taskId, params, null, null);

2016-12-14 10:38:31 GMT <fwu> taskid and params are not nul

2016-12-14 10:38:33 GMT <fwu> null

2016-12-14 10:38:43 GMT <fwu> however I get a null pointer exception running this code

2016-12-14 10:45:48 GMT <fwu> Im setting a taskid like this: activiti$number which I believe it is correct

2016-12-14 10:52:31 GMT <fwu> and this is javabacked webscript runnining inside a AuthenticationUtil.runAsSystem

2016-12-14 10:53:10 GMT <yreg> fwu, can you share full log

2016-12-14 10:53:49 GMT <fwu> yes, just one minute. Im restarting the server

2016-12-14 11:01:17 GMT <fwu> here it is: http://pastebin.com/PDsbnnb6

2016-12-14 11:01:18 GMT <alfbot> Title: HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 X-Frame-Options: - Pastebin.com (at pastebin.com)

2016-12-14 11:06:33 GMT * AxelFaust feels that a certifiably trivial question asked by an Alfresco Certified Engineer on the new community platform should be grounds to immediately revoke that certification.

2016-12-14 11:08:20 GMT * AxelFaust is getting more and more frustrated by the annoyingly low quality of some questions. Maybe there is such a thing as a platform being "too" accessible for the "do my job for me" or "why should I learn how to do my job" type of folks

2016-12-14 11:18:20 GMT <yreg> AxelFaust, be easy on yourself :D

2016-12-14 11:18:53 GMT <yreg> fwu, can you share the logs from catalina.out/alfresco.log

2016-12-14 11:18:54 GMT <yreg> ?

2016-12-14 11:20:50 GMT <AxelFaust> yreg: I am easy on myself - I just can't be easy on some of the moronic question posters... I mean today I got a reply to a response of mine where the guy essentially asked how to write a relative path.

2016-12-14 11:20:54 GMT <fwu> yes

2016-12-14 11:21:42 GMT <yreg> AxelFaust, is it really that bad ?

2016-12-14 11:22:08 GMT <AxelFaust> Fortunately only sometimes.

2016-12-14 11:23:05 GMT <AxelFaust> A guy who completed Alfresco Certified Engineer exam asked where to store a client-side JavaScript file. How to you pass the exam without knowing such a trivial thing?

2016-12-14 11:24:00 GMT <yreg> AxelFaust, by having the full list of Question/Answer of all possible questions + learning the responses by heart ?

2016-12-14 11:24:06 GMT <AxelFaust> I feel sometimes there is an auto-correct messing up my text: to => do

2016-12-14 11:24:25 GMT <AxelFaust> I guess so - typical Indian-style certification

2016-12-14 11:26:37 GMT <AxelFaust> I actually thought exam room conditions would be the same worlwide. I couldn't even take my own handkerchief into the exam room and was padded down before...

2016-12-14 11:27:30 GMT <fwu> yreg, this doesnt seem to add information :(

2016-12-14 11:27:33 GMT <fwu> http://pastebin.com/5N2f0n3S

2016-12-14 11:27:34 GMT <alfbot> Title: 10:56:51,218 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] E - Pastebin.com (at pastebin.com)

2016-12-14 11:28:03 GMT <AxelFaust> And I actually don't want to believe there is someone inside Alfresco or the exam provider selling the full question list...

2016-12-14 11:29:26 GMT <fwu> hmmm

2016-12-14 11:29:34 GMT <fwu> the workflowService is null...

2016-12-14 11:30:02 GMT <fwu> but in a backed end java web script, cant I use directly this variable?

2016-12-14 11:30:05 GMT <fwu> object

2016-12-14 11:30:42 GMT <fwu> Do I need to get a reference to it using serviceRegistry?

2016-12-14 11:31:46 GMT <fwu> I could almost swear that this worked just like that....

2016-12-14 11:32:43 GMT <fwu> Im extending from AbstractWorkflowWebscript

2016-12-14 11:33:34 GMT <yreg> fwu what about bean definition ? does it 'inherit' from the right bean ?

2016-12-14 11:37:03 GMT <fwu> parent="webscript"

2016-12-14 11:37:25 GMT <fwu> should be parent="abstractWorkflowWebScript" ?

2016-12-14 11:37:32 GMT <fwu> I dont remember changing this.

2016-12-14 11:37:44 GMT <fwu> but I can try

2016-12-14 11:39:52 GMT <fwu> but I think webscript includes the abstractWorkflowWebScript

2016-12-14 11:48:28 GMT <fwu> yreg!

2016-12-14 11:48:34 GMT <fwu> that was the problem indeeed

2016-12-14 11:48:36 GMT <fwu> thank you!

2016-12-14 11:48:52 GMT <fwu> I should inherit form abstractWorkflowWebScript

2016-12-14 12:17:49 GMT <fwu> ppl, is anyone using Alfresco Enterprise?

2016-12-14 12:18:26 GMT <fwu> Im trying to reach Alfresco to put some questions about prices, support , etc, but with no luck

2016-12-14 12:18:53 GMT <fwu> I have some questions like this:

2016-12-14 12:19:28 GMT <fwu> If I start with community, cant I have problems migrating to the enterprise version if I then want to use Activiti as a standalone product?

2016-12-14 12:19:40 GMT <fwu> questions like this :)

2016-12-14 12:19:48 GMT <fwu> and the price of course

2016-12-14 12:20:08 GMT <fwu> I just cant propose to a big client the community edition

2016-12-14 12:21:53 GMT <AxelFaust> fwu: First of all, why do you think you cannot propose Community Edition to a big client?

2016-12-14 12:22:40 GMT <fwu> for instance the question about activiti. In the community it is embeded, right?

2016-12-14 12:22:50 GMT <fwu> how can I deploy it in another server?

2016-12-14 12:23:07 GMT <AxelFaust> Second of all: Yes - you will definitely face issues when you migrate from the embedded Activiti engine to the standalone Activiti product. Basically you'll end up re-doing your workflow because the way the standalone product works together with the Alfresco ECM product is completely different in this scenario.

2016-12-14 12:23:27 GMT <fwu> then there is support, banks almost always demand support from the entity that develops the software

2016-12-14 12:23:58 GMT <AxelFaust> Third of all: Have you checked a regional Alfresco Authorised Partner? They will typically be the most responsive, but be aware that they may siphon off some of your business because they usually specialize in doing project work.

2016-12-14 12:25:25 GMT <angelborroy> fwu if you want to sell Enterprise, then you need to become an Alfresco Partner

2016-12-14 12:25:49 GMT <angelborroy> fwu https://www.alfresco.com/partners/program

2016-12-14 12:25:51 GMT <alfbot> Title: Alfresco Partner Program - ECM Provider | Alfresco (at www.alfresco.com)

2016-12-14 12:25:55 GMT <fwu> angelborroy, that is a relevant fact!

2016-12-14 12:26:01 GMT <AxelFaust> And fourth of all: You need to have your immediate and long-term numbers regarding # of servers, # of SOLR instances, # of users, # of Activiti designers, # of Activiti users etc. prepared to get an estimate as well as a potential discount calculated

2016-12-14 12:26:20 GMT <DarkStar1> ~later tell douglascrp ping......

2016-12-14 12:26:20 GMT <alfbot> DarkStar1: The operation succeeded.

2016-12-14 12:26:22 GMT <AxelFaust> fwu: That is why I mentioned "Alfresco Authorised Partners"...

2016-12-14 12:26:38 GMT <AxelFaust> only partners can sell Enterprise (or Alfresco can directly sell)

2016-12-14 12:26:41 GMT <fwu> AxelFaust, yes I understand

2016-12-14 12:28:33 GMT <AxelFaust> Ok - regarding my first question "Why you cannot propose Community Edition to a big client?" the answer is actually "because it is a bank and they have support requirements" and not "because it is a big client"

2016-12-14 12:28:54 GMT <fwu> AxelFaust, but Im right concerning the embeded activiti, right? How do you use to deploy activiti? In the same machine as Alfresco content?

2016-12-14 12:29:09 GMT <AxelFaust> Yes, sure.

2016-12-14 12:29:20 GMT <AxelFaust> Even when I was working at an Alfresco partner.

2016-12-14 12:29:55 GMT <AxelFaust> I actually don't see much point in the standalone Activiti product for most customers, only if there are relevant requirements for it.

2016-12-14 12:31:08 GMT <fwu> ok, I thought that the common use case using enterprise was to deploy it as a tandalone product.

2016-12-14 12:32:03 GMT <AxelFaust> If all the requirements are just about routing documents in Alfresco and the workflows are rather static or complex enough that they can't just be modelled by a non-technical users anyway, then there is little point in paying the extra buck if you are not really getting your money'S worth out of it.

2016-12-14 12:33:03 GMT <AxelFaust> fwu: That might be what the marketing material would have you believe. But it really is just a completely separate product that may have "some integration" with the ECM product.

2016-12-14 12:34:16 GMT <fwu> AxelFaust, Im talking about base workflows for a bank, like account openning and product subscription

2016-12-14 12:34:37 GMT <AxelFaust> But making the distinction between a separate product and something that might be critical to your customers use case is something that a qualified partner should be able to help using more detailed information than we here in this public channel have available.

2016-12-14 12:34:46 GMT <fwu> these always have many integrations, and I will need to interact with db2 for instance.

2016-12-14 12:35:20 GMT <fwu> AxelFaust, yes I agree, but Im still waiting their contact... :(

2016-12-14 12:36:10 GMT <fwu> by the way, what it takes to be a partner?

2016-12-14 12:36:44 GMT <Loftux> fwu: Lots of money up front

2016-12-14 12:37:17 GMT <AxelFaust> Usually you should already have some past projects using Alfresco (Enterprise), plan to make a certain amount of business with Enterprise subscriptions, have a certain amount of people certified and pay your partnership fees

2016-12-14 12:37:37 GMT <AxelFaust> The amount of money is actually quite manageable (from what I remember working at a partner)

2016-12-14 12:37:54 GMT <AxelFaust> Though compared to being "free" when using the Community Edition is a lot...

2016-12-14 12:38:45 GMT <fwu> ok, thank you for the insights.

2016-12-14 12:38:48 GMT <Loftux> Yea the cost for partnership can probably pay off, you just need to be sure you get a number of clients first.

2016-12-14 12:38:52 GMT <AxelFaust> Alfresco (usually) will not allow someone to become a partner for a one-time project only...

2016-12-14 12:39:35 GMT <AxelFaust> With the new licensing model and prices, it can pay off with the first customer, actually...

2016-12-14 12:39:37 GMT <fwu> AxelFasut, but in that case we cant sell because we are not a partner...lol

2016-12-14 12:39:55 GMT <AxelFaust> fwu: That is why there is always the option that Alfresco can sell directly to the customer

2016-12-14 12:40:15 GMT <fwu> ok, I understand

2016-12-14 12:40:42 GMT <AxelFaust> Numbers vary, but about ~80% of deals are handled via partners while some customers absolutely do not want to have the indermediary

2016-12-14 12:41:53 GMT <AxelFaust> Also Alfresco was at various points in time planning to differentiate partners, e.g. have partners that "only sell licenses" and do not one bit of project work...

2016-12-14 12:42:27 GMT <AxelFaust> So if that actually came to fruition such partners could be used as facilitators for a deal while you keep your project business.

2016-12-14 12:54:23 GMT <fwu> ok AxelFaust. I will try to talk with them. Thank you

2016-12-14 13:26:48 GMT <qwebirc66021> hi all. logger.log() in a file /share/WEB-INF/classes/..../site-webscripts/my/menu/share-header.get.js is not printed in catalina.out

2016-12-14 13:27:01 GMT <qwebirc66021> what am i doing wrong?

2016-12-14 13:36:39 GMT <AxelFaust> qwebirc66021: logger.log() will log with DEBUG level which is not enabled by default. You need to change settings in the log4j.properties file for org.alfresco.repo.jscript.ScriptLogger to activate it

2016-12-14 13:37:18 GMT <AxelFaust> Also - it may just be that your web script is not being called if the Surf extension module is not configured / deployed properly

2016-12-14 13:41:23 GMT <qwebirc66021> ./tomcat/webapps/share/WEB-INF/classes/log4j.properties OR ./tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties

2016-12-14 13:48:51 GMT <qwebirc66021> ok. thanks.. that it..

2016-12-14 13:48:56 GMT <qwebirc66021> wrong file..

2016-12-14 13:48:59 GMT <qwebirc66021> so thanks.

2016-12-14 14:23:56 GMT *** Danny is now known as Guest60597

2016-12-14 14:24:25 GMT <Guest60597> Hi, is ther any way to set a printing policy in Alfresco, we want some users to be able to print an others not

2016-12-14 14:27:40 GMT <AxelFaust> There is not because Alfresco does not provide a printing feature...

2016-12-14 14:29:05 GMT <AxelFaust> Or do you mean a print action in one of the previewers?

2016-12-14 14:29:36 GMT <AxelFaust> Even if you were to disable that for some users, they could still download the file and print.

2016-12-14 14:30:16 GMT <AxelFaust> Even if you removed the action to download, they still could easily construct the URL to download the file and print.

2016-12-14 14:31:50 GMT <AxelFaust> If you added/included a custom permission to determine who can download a file and restrict that, they would not be able to use some of the standard features like previewing, the mobile clients...

2016-12-14 14:32:58 GMT <Guest60597> thanks, yes I mean print action in one of the previewers

2016-12-14 14:48:57 GMT <FrancescoSilvani> Hi, i'm trying out the REST API of activiti and want to get the running tasks from a certain process instance. I use GET /activiti-app/api/runtime/tasks?processInstanceId=<ID> and authenticate as admin@app.activiti.com. I get a 403 Forbidden. I can access other URLs, i can even start a process via api but i can't get this URL to work. Is there anything I'm doing wrong?

2016-12-14 14:53:45 GMT <yreg> FrancescoSilvani, have your tried <user>:<password>@host

2016-12-14 14:56:43 GMT <FrancescoSilvani> I've authenticated with HTTP BASIC

2016-12-14 14:57:04 GMT <FrancescoSilvani> And it worked for other urls...

2016-12-14 15:28:33 GMT <FrancescoSilvani> ygreg, so i tested http://admin%40app.activiti.com:admin@localhost:8180/activiti-app/api/runtime/tasks/ and it returned 401 Unauthorized. So... HTTP Basic is maybe better.

2016-12-14 16:03:05 GMT <DeKoch> are you using Activiti community or enterprise?

2016-12-14 16:04:39 GMT <DeKoch> they use different APIs

2016-12-14 16:04:56 GMT <DeKoch> https://docs.alfresco.com/activiti/docs/dev-guide/1.5.0/#_task_list

2016-12-14 16:04:57 GMT <alfbot> Title: Alfresco Activiti (at docs.alfresco.com)

2016-12-14 16:05:18 GMT <DeKoch> it is POST api/enterprise/tasks/query

2016-12-14 16:09:16 GMT <FrancescoSilvani> DeKoch: ok, yes i'm using alfresco enterprise. I've seen api/enterprise/... and all /api/rest and /api/runtime calls worked excactly the same so far. i'll look into it

2016-12-14 16:10:14 GMT <DeKoch> ah ok, then the POST I mentioned should work

2016-12-14 16:12:32 GMT <DeKoch> if you want to use the community api, try appending ?tenantId=tenant_1 to your call

2016-12-14 16:14:40 GMT <fwu> ~later tell angelborroy I only saw your information now. Thank you!

2016-12-14 16:14:40 GMT <alfbot> fwu: The operation succeeded.

2016-12-14 16:14:58 GMT <fwu> thank you alfbot!

2016-12-14 16:15:04 GMT <fwu> :)

2016-12-14 16:19:19 GMT <FrancescoSilvani> it's not like i want to use the community API, it seemed just like a GET request is a simple database "WHERE processInstanceId=?" and POST /query sounds more like "search with it", regardless, it is working now. I can work with the returned JSON. Thank you.

2016-12-14 16:19:40 GMT <DeKoch> you are welcome

2016-12-14 17:25:28 GMT <FrancescoSilvani> hurray... to add a candidate i must use the activiti internal id of the user... not something more handy like the e-mail... more rest calls it is...

2016-12-14 17:34:57 GMT <alfbot> angelborroy: Sent 1 hour and 20 minutes ago: <fwu> I only saw your information now. Thank you!

2016-12-14 17:53:34 GMT <FrancescoSilvani> DeKoch_ or anyone: Do you have an idea how to get an arbitrary userid. They are required for the rest call of POST activiti-app/api/enterprise/tasks/<taskId>/identitylinks (to add a candidate user to a task) but the rest call to GET identity/users is 404 and GET identity/repository/users?tenantId=1 is 403 Forbidden. It is not mentioned in the activiti enterprise api you posted.

2016-12-14 17:53:39 GMT <FrancescoSilvani> he webfrontend uses undocum GET app/rest/workflow-users to search in the user picker.

2016-12-14 17:54:08 GMT <FrancescoSilvani> * The webfrontend uses the undocumented GET app/rest/workflow-users to search in the user picker. But this wants coockie auth.

2016-12-14 17:56:58 GMT <DeKoch_> https://docs.alfresco.com/activiti/docs/dev-guide/1.5.0/#_users

2016-12-14 17:57:00 GMT <alfbot> Title: Alfresco Activiti (at docs.alfresco.com)

2016-12-14 17:57:12 GMT <DeKoch_> GET api/enterprise/admin/users

2016-12-14 18:01:15 GMT <FrancescoSilvani> DeKoch_ thanks. I'm blind :)

2016-12-14 18:33:39 GMT <FrancescoSilvani> So... gtg.. bye.... Thanks, DeKoch_ got my code running. It's ugly but it works and it will only be used once. So what...

2016-12-14 18:48:12 GMT <alfbot> douglascrp: Sent 6 hours and 21 minutes ago: <DarkStar1> ping......

2016-12-14 18:50:25 GMT <douglascrp> hello guys

2016-12-14 18:50:40 GMT <douglascrp> is anyone here using mac sierra already?

End of Daily Log

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