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-01-27 08:50:21 GMT <irena> Hi guys, can someone help me - I need to run script as admin, but the script is in a ftl file?

2017-01-27 08:51:33 GMT <angelborroy> irena FTL is client side

2017-01-27 08:51:51 GMT <angelborroy> irena you need to invoke REST API in order to run your script

2017-01-27 08:52:38 GMT <irena> Hi Angel! Yes I know :). I need to take sites that are defined as private and list them in a dropdown.

2017-01-27 08:53:07 GMT <irena> I haven't done this before so this is why I am asking

2017-01-27 08:53:29 GMT <angelborroy> let me find some info for you

2017-01-27 08:54:29 GMT <irena> I am calling Alfresco.constants.PROXY_URI + 'api/sites' and this returns all the sites the user can see, but I need all of them and they can be only seen by the admin

2017-01-27 08:55:21 GMT <irena> I am doing this in a .ftl file since I need the custom control in a workflow :/.

2017-01-27 08:55:58 GMT <angelborroy> you have different options

2017-01-27 08:56:17 GMT <angelborroy> I think the best is to define a new web script

2017-01-27 08:56:27 GMT <angelborroy> without authentication

2017-01-27 08:56:36 GMT <angelborroy> to return the list you need

2017-01-27 08:57:03 GMT <angelborroy> You have different options to invoke the API as admin, but none from JavaScript

2017-01-27 08:57:09 GMT <angelborroy> https://angelborroy.wordpress.com/2015/07/24/alfresco-run-as-system-admin-user-without-credentials/

2017-01-27 08:57:10 GMT <alfbot> Title: Alfresco – Run as system / admin user (without credentials) | Programming and So (at angelborroy.wordpress.com)

2017-01-27 08:57:51 GMT <DarkStar1> Good morning everyone

2017-01-27 08:58:38 GMT <bmejias> Hi DarkStar1

2017-01-27 08:58:48 GMT <bmejias> don't miss office hours this late afternoon

2017-01-27 08:59:14 GMT <irena> So I need to make a webscript and js in Alfresco and then call the api in my ftl?

2017-01-27 09:00:09 GMT <irena> I saw that I can have authentication - admin in the webscript - I guess I need to do this

2017-01-27 09:09:08 GMT <bhagyas> bmejias: Didn't know there was an office hours today!

2017-01-27 09:09:14 GMT <bhagyas> Are you presenting?

2017-01-27 09:09:26 GMT <angelborroy> irena if you include admin authentication, every user can access that information

2017-01-27 09:09:31 GMT <angelborroy> irena which is not safe

2017-01-27 09:09:35 GMT <bhagyas> angelborroy: +1

2017-01-27 09:10:28 GMT <irena> It will not matter. Every user is supposed to have access to that information

2017-01-27 09:10:46 GMT <angelborroy> I know, but which service are you opening?

2017-01-27 09:11:06 GMT <angelborroy> for instance, if you open “sites” every user will be able to modifiy sites

2017-01-27 09:11:10 GMT <angelborroy> not just only read sites

2017-01-27 09:11:19 GMT <irena> siteService.getSites

2017-01-27 09:11:39 GMT <angelborroy> ok, so go ahead

2017-01-27 09:11:43 GMT <angelborroy> it looks safe ;-)

2017-01-27 09:12:14 GMT <angelborroy> or maybe you can change all your sites to “Public”

2017-01-27 09:12:17 GMT <irena> I will try this and post back the result :)

2017-01-27 09:12:30 GMT <angelborroy> irena try first to use only PUBLIC sites

2017-01-27 09:12:42 GMT <angelborroy> Maybe this is enough for your requirement

2017-01-27 09:12:57 GMT <irena> I can't, I need these specific sites (they will have specific id) to be private

2017-01-27 09:13:21 GMT <irena> I know that I can use public or moderated, but this clashes with something else

2017-01-27 09:13:48 GMT <angelborroy> bhagyas Boris, Axel, (maybe) Oksana and me are presenting this evening

2017-01-27 09:14:01 GMT <bhagyas> That's exciting

2017-01-27 09:14:37 GMT <bhagyas> -= THIS MESSAGE NOT LOGGED =-

2017-01-27 09:15:44 GMT <DarkStar1> bmejias: I will try and make it but I can't guarantee

2017-01-27 09:17:33 GMT <DarkStar1> bmejias: thanks to your publishing the Beecon dates and other information the other day, I now have to finish a project I've been working on by the end of next week so that we can submit for presentation at Beecon >:/

2017-01-27 09:17:48 GMT <DarkStar1> I was* working on

2017-01-27 09:18:03 GMT <bmejias> DarkStar1 mostly thanks to Oksana and Angel

2017-01-27 09:18:11 GMT <bmejias> they are doing a great job with the preparation.

2017-01-27 09:18:27 GMT <bmejias> and yes, please submit a topic. We would be glad to see you in BeeCon ;-)

2017-01-27 09:18:28 GMT * DarkStar1 thanks angelborroy

2017-01-27 09:18:51 GMT <angelborroy> DarkStar1 this time it was bmejias, not me :D

2017-01-27 09:19:01 GMT <angelborroy> and also aviriel

2017-01-27 09:20:15 GMT <DarkStar1> :)

2017-01-27 09:20:22 GMT <DarkStar1> No rst for the good guys

2017-01-27 09:20:28 GMT <DarkStar1> rest*

2017-01-27 09:20:35 GMT <DarkStar1> or REST* ;)

2017-01-27 09:20:54 GMT <aviriel> anyone wants to become a sponsor this year?;)

2017-01-27 09:21:03 GMT <aviriel> correct channel to ask this question :/

2017-01-27 09:23:32 GMT <koula> how can i convert doc, docx to pdf in alfresco?

2017-01-27 09:26:43 GMT <hi-ko> slanglois, yreg: thanks for updating github with latest 5.1 tags. Are there plans to do the same for the latest 5.2 tags (repo: 5.2.g, share: 5.2.d)?

2017-01-27 09:28:28 GMT <koula> is there any related action that i could use ?

2017-01-27 09:29:53 GMT <angelborroy> koula you have an action which is linked by a rule

2017-01-27 09:29:58 GMT <angelborroy> http://docs.alfresco.com/4.1/tasks/tgs-upload-content.html

2017-01-27 09:29:59 GMT <alfbot> Title: Uploading and transforming content | Alfresco Documentation (at docs.alfresco.com)

2017-01-27 09:31:17 GMT <hi-ko> koula: or you write your custom js scripts: transformDocument

2017-01-27 09:31:45 GMT <koula> i want to use it in an action execution. before adding a watermark in the pdf.

2017-01-27 09:32:03 GMT <angelborroy> koula, really, please use that Nathan addon

2017-01-27 09:32:27 GMT <angelborroy> I don’t know why you are re-developing the same twice

2017-01-27 09:33:15 GMT <koula> Nathan addon? what is that?

2017-01-27 09:33:36 GMT <angelborroy> koula https://github.com/ntmcminn/alfresco-pdf-toolkit

2017-01-27 09:33:37 GMT <alfbot> Title: GitHub - ntmcminn/alfresco-pdf-toolkit: The new home of the Alfresco PDF Toolkit (replacing the deprecated Google Code project) (at github.com)

2017-01-27 09:33:56 GMT <angelborroy> I think we are gaving you this link several times in the last days

2017-01-27 09:39:10 GMT <koula> yes you did! thank you for that.. I have used it. But we dont want rule, nor a form, nor an image watermark. Just an action that adds a certain aspect property on the document.

2017-01-27 09:39:35 GMT <koula> so i took some code from https://github.com/ntmcminn/alfresco-pdf-toolkit/blob/09b24254627da20f2a6e2145b5d296e620d0b848/pdf-toolkit-repo/src/main/java/org/alfresco/extension/pdftoolkit/service/PDFToolkitServiceImpl.java#L1780

2017-01-27 09:39:36 GMT <alfbot> Title: alfresco-pdf-toolkit/PDFToolkitServiceImpl.java at 09b24254627da20f2a6e2145b5d296e620d0b848 · ntmcminn/alfresco-pdf-toolkit · GitHub (at github.com)

2017-01-27 09:39:50 GMT <koula> and works nice.

2017-01-27 09:42:57 GMT <koula> we wanted the destinationNode to be the same node.

2017-01-27 09:43:22 GMT <koula> and as you said, that it is an inherent property in alfresco, i changed

2017-01-27 09:43:44 GMT <koula> to: contentService.getWriter(actionedUponNodeRef, ContentModel.PROP_CONTENT, true);

2017-01-27 09:43:57 GMT <koula> to write upon the same file.

2017-01-27 09:44:08 GMT <koula> that works fine.

2017-01-27 09:44:27 GMT <koula> i donot get the part with the conversion to pdf.

2017-01-27 09:44:54 GMT <angelborroy> koula do you want to convert to PDF from Java API?

2017-01-27 09:45:03 GMT <koula> just setting the mimetype and encoding will do the trick ?

2017-01-27 09:45:20 GMT <koula> yes.

2017-01-27 09:45:28 GMT <angelborroy> you have to use TransformService

2017-01-27 09:45:57 GMT <koula> how does alfresco-pdf-toolkit does it?

2017-01-27 09:47:03 GMT <angelborroy> https://github.com/ntmcminn/alfresco-pdf-toolkit/blob/master/pdf-toolkit-repo/src/main/java/org/alfresco/extension/pdftoolkit/transformer/ITextTransformerTextToPDF.java

2017-01-27 09:47:04 GMT <alfbot> Title: alfresco-pdf-toolkit/ITextTransformerTextToPDF.java at master · ntmcminn/alfresco-pdf-toolkit · GitHub (at github.com)

2017-01-27 09:47:17 GMT <angelborroy> https://github.com/ntmcminn/alfresco-pdf-toolkit/blob/master/pdf-toolkit-repo/src/main/java/org/alfresco/extension/pdftoolkit/transformer/ITextTransformerTIFFToPDF.java

2017-01-27 09:47:18 GMT <alfbot> Title: alfresco-pdf-toolkit/ITextTransformerTIFFToPDF.java at master · ntmcminn/alfresco-pdf-toolkit · GitHub (at github.com)

2017-01-27 09:49:43 GMT <angelborroy> koula or use TransformAction from Java

2017-01-27 09:49:44 GMT <angelborroy> actionService.createAction(TransformActionExecuter.NAME);

2017-01-27 09:50:11 GMT <koula> ok. thank you. will search for that.

2017-01-27 09:50:54 GMT <koula> sorry for bothering you again. (although... propably will do it again... )

2017-01-27 09:51:58 GMT <alex88bb> @hi-ho: Hi! I just want to inform you that I solved my problem by reindexing the solr! Thank you for your help!

2017-01-27 09:53:25 GMT <alex88bb> @hi-ko: Hi! I just want to inform you that I solved my problem by reindexing the solr! Thank you for your help!

2017-01-27 09:55:10 GMT <angelborroy> koula no problem

2017-01-27 10:06:28 GMT <koula> angelborroy thanks so much.

2017-01-27 10:14:37 GMT <hi-ko> alex88bb: thanks for the update. next time take a very close look to the solr.log on solr startup. You will see log entries saying that property changes are ignored. If you know the changes it may be sufficiant to delete the cached models.

2017-01-27 10:15:59 GMT <alex88bb> hi-ko: But there is nothing in log. Apparently, those properties are not in the model of solr folder

2017-01-27 10:16:45 GMT <hi-ko> so deleting these models would do the trick

2017-01-27 10:20:19 GMT <alex88bb> @hi-ko: probably :)

2017-01-27 10:54:11 GMT <Loftux> With AOS (1.1.5) and Kerberos SSO, have you seen that it pops up the authentication every now and then, especially with Excel?

2017-01-27 11:20:06 GMT <bgallet> Hi, hope you can help me. In a custom behavior onCreateNode, I must run a request, but the created node does not exist at this moment so it's not in the request results, any way to figure this out ?

2017-01-27 11:20:46 GMT <douglascrp> bgallet, how about checking it with nodeService.exists()

2017-01-27 11:21:40 GMT <angelborroy> bgallet use TransactionListener

2017-01-27 11:21:43 GMT <angelborroy> bgallet https://angelborroy.wordpress.com/2015/05/22/alfresco-implementing-delete-behavior/

2017-01-27 11:21:44 GMT <alfbot> Title: Alfresco – Implementing delete behavior | Programming and So (at angelborroy.wordpress.com)

2017-01-27 11:21:54 GMT <angelborroy> bgallet you can be notified once the node has been created and commited

2017-01-27 11:23:24 GMT <bgallet_> knowing if it exists is not the problem

2017-01-27 11:23:38 GMT <douglascrp> bgallet_, so, use what angelborroy suggested

2017-01-27 11:24:01 GMT <bgallet_> can you post it again please, I juste lost my connection

2017-01-27 11:26:57 GMT <angelborroy> bgallet https://angelborroy.wordpress.com/2015/05/22/alfresco-implementing-delete-behavior/

2017-01-27 11:26:58 GMT <alfbot> Title: Alfresco – Implementing delete behavior | Programming and So (at angelborroy.wordpress.com)

2017-01-27 11:35:03 GMT <irena> Angel thank you, I managed to make it work with what you said

2017-01-27 11:37:49 GMT <bgallet> sorry my internet is trolling me i think, could you say it again please ?

2017-01-27 11:37:53 GMT <angelborroy> irena congrats!

2017-01-27 11:38:00 GMT <bgallet> Or I'll wait for logs

2017-01-27 11:38:07 GMT <angelborroy> bgallet angelborroy blog

2017-01-27 11:38:16 GMT <angelborroy> bgallet implementing delete behaviour

2017-01-27 11:38:21 GMT <angelborroy> bgallet https://angelborroy.wordpress.com/2015/05/22/alfresco-implementing-delete-behavior/

2017-01-27 11:38:22 GMT <alfbot> Title: Alfresco – Implementing delete behavior | Programming and So (at angelborroy.wordpress.com)

2017-01-27 11:39:12 GMT <bgallet> I see, the "after commit" part would be what I need isn't it ?

2017-01-27 11:39:18 GMT <angelborroy> right

2017-01-27 11:39:29 GMT <bgallet> thank you (again)

2017-01-27 12:44:06 GMT <bhagyas> AFaust: Are you presenting today afternoon?

2017-01-27 12:44:24 GMT <AFaust> I am one of the panelists, yes

2017-01-27 12:44:46 GMT <bhagyas> Cool :)

2017-01-27 13:58:08 GMT <magp> Hi guys, I'm trying to transform a lot of documents with a webscript but I'm running into trouble because the transformation times out or is cancelled. How can I solve this? Thanks!

2017-01-27 14:51:20 GMT <kgastaldo> Hey Everyone - Join us in 10 min for Office Hours - https://www.alfresco.com/events/webinars/office-hours-beecon-2017

2017-01-27 14:51:21 GMT <alfbot> Title: Office Hours: BeeCon 2017 | Alfresco (at www.alfresco.com)

2017-01-27 14:51:58 GMT <kgastaldo> We're talking BeeCon 2017 - come see the venue, learn about the format, and meet (some) of the organizers!

2017-01-27 14:58:02 GMT <fcorti> Come and join the community in the today's Office Hours here

2017-01-27 14:58:03 GMT <fcorti> https://www.youtube.com/watch?v=KXHk6u7KX9Y

2017-01-27 14:58:17 GMT <fcorti> Today talking about the BeeCon 2017

2017-01-27 15:00:35 GMT <fcorti> We are live...

2017-01-27 15:01:01 GMT <mrks_js1> well ...

2017-01-27 15:01:15 GMT -yreg- Office hours is on https://www.youtube.com/watch?v=KXHk6u7KX9Y

2017-01-27 15:01:39 GMT <mrks_js1> now

2017-01-27 15:06:34 GMT <resplin> yreg: That channel notice is pretty slick. I keep forgetting it's possible. It's magic!

2017-01-27 15:11:07 GMT <kgastaldo> Absolutely! If anyone is interested in hosting a Meetup or wants to suggest your city - let me know!

2017-01-27 15:14:30 GMT <bmejias> only Angel can pronounce Zaragoza correctly

2017-01-27 15:14:36 GMT <pjlucidi> ahahhaah

2017-01-27 15:15:05 GMT <douglascrp> :D

2017-01-27 15:15:13 GMT <kgastaldo> Oh, it's not Sara-go-za? ;)

2017-01-27 15:15:31 GMT <bmejias> hehe...

2017-01-27 15:16:04 GMT <bmejias> it's the 'z' that makes it so special

2017-01-27 15:16:25 GMT <Tichodroma> looks exactly like in Brüssel

2017-01-27 15:16:49 GMT <resplin> Did the selection committee decide based on the coloring of the chairs?

2017-01-27 15:16:55 GMT <bmejias> hahaha

2017-01-27 15:17:09 GMT <bmejias> yeah, bees likes coloured flowers

2017-01-27 15:17:19 GMT <bmejias> and modern buildings

2017-01-27 15:18:28 GMT <Tichodroma> they moved the coloured chairs from the auditorium to the room for the 2nd track

2017-01-27 15:18:44 GMT <resplin> Shipped them from Brussels just for us?

2017-01-27 15:19:37 GMT <Tichodroma> +1 for not mixing talks and hackathon

2017-01-27 15:19:54 GMT <pjlucidi> Yeahhhhh :)

2017-01-27 15:22:09 GMT <mrks_js1> hes doing a marathon

2017-01-27 15:24:18 GMT <bmejias> you can see that wifi works well on the conference venue

2017-01-27 15:25:14 GMT <pjlucidi> Absolutely…

2017-01-27 15:32:31 GMT <douglascrp> I use my back pack every day

2017-01-27 15:32:31 GMT <douglascrp> :D

2017-01-27 15:32:41 GMT <douglascrp> it's like my medal of honor

2017-01-27 15:33:33 GMT <bmejias> :)

2017-01-27 15:58:26 GMT <resplin> Thanks for joining office hours everyone!

2017-01-27 15:58:30 GMT <angelborroy> thanks all!

2017-01-27 15:58:33 GMT <resplin> We need to get Douglas to Zaragoza this year.

2017-01-27 15:58:37 GMT <angelborroy> +1

2017-01-27 16:00:21 GMT <mrks_js1> thanks!

2017-01-27 16:05:38 GMT <bmejias> you're welcome.

2017-01-27 16:05:50 GMT <bmejias> I hope we covered enough topics...

2017-01-27 16:06:21 GMT <bmejias> it's very easy to forget things when presenting, even in a setup as informal as office hours

2017-01-27 16:17:29 GMT <mrks_js1> you did great ;)

2017-01-27 16:17:45 GMT <mrks_js1> theres a direct flight from brussels to zaz, right?

2017-01-27 16:19:28 GMT <mrks_js1> unfortunately ryanair does not provide a flight to zaragoza from every airport

2017-01-27 16:27:52 GMT <bgallet> org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: Error preparing statement. Cause: org.hibernate.HibernateException: connnection proxy not usable after transaction completion

2017-01-27 19:29:57 GMT <qwebirc11379> do you have an example of a configuration to bootstrap categories ?

End of Daily Log

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