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-02-21 08:38:08 GMT <alfresco-discord> <digcat> https://stackoverflow.com/questions/50251798/what-is-an-illegal-reflective-access

2019-02-21 08:38:09 GMT <alfbot> Title:java - what is an illegal reflective access - Stack Overflow (at stackoverflow.com)

2019-02-21 09:30:59 GMT <alfresco-discord> <bhagyas> @kgastaldo nice video 😄

2019-02-21 09:31:39 GMT <alfresco-discord> <bhagyas> Keynote viewing seems to require a registration though

2019-02-21 11:11:13 GMT <alfresco-discord> <mbui> Anyone here attempted to add fixed/frozen columns in yui2 component datatable?

2019-02-21 12:10:40 GMT <alfresco-discord> <missamma> I am using mail.execute() in my webscripts to send emails. Is there anyway to verify if the mail was sent successfully?

2019-02-21 12:12:03 GMT <alfresco-discord> <mbui> Send the mail to yourself?

2019-02-21 12:13:48 GMT <alfresco-discord> <missamma> To any user. I am able to send emails successfully. But, not sure if the process was correct. I want to know if there is any boolean data available for mail sending status

2019-02-21 12:14:23 GMT <angelborroy> https://stackoverflow.com/questions/3676919/how-can-i-recieive-confirmation-for-delivered-email-with-javamail-api

2019-02-21 12:14:23 GMT <alfresco-discord> <kgastaldo> @bhagyas Yes there is a form fill for keynotes. There will be a separate form fill for the full list of videos as well, once I get them all up. Most of DevCon attendees are already in our system, but we’re interested to see if any leads end up watching.

2019-02-21 12:14:24 GMT <alfbot> Title:java - How can I recieive confirmation for delivered email with JavaMail API? - Stack Overflow (at stackoverflow.com)

2019-02-21 12:15:54 GMT <alfresco-discord> <missamma> @angel.borroy okay. Is there any option from within webscripts itself?

2019-02-21 12:19:42 GMT <alfresco-discord> <missamma> @mbui To any user. I am able to send emails successfully. But, not sure if the process was correct. I want to know if there is any boolean data available for mail sending status. I am looking for something like if(mail.execute()) ... Do we have such option in webscripts?

2019-02-21 12:21:46 GMT <angelborroy> @missamma it’s using Java Mail standard package

2019-02-21 12:21:59 GMT <angelborroy> You have no access to delivery succesful in the API

2019-02-21 12:22:31 GMT <angelborroy> The only way I know is to send a notification within the email

2019-02-21 12:33:45 GMT <alfresco-discord> <mg_itn> @kgastaldo they won't be uploaded to Youtube?

2019-02-21 12:34:21 GMT <alfresco-discord> <kgastaldo> @mg_itn Not this year. We’re putting them all on the website, so we can index them in our search.

2019-02-21 12:37:38 GMT <alfresco-discord> <missamma> @angel.borroy alright. Will check that as well. Thank you for your input.

2019-02-21 13:42:32 GMT <alfresco-discord> <missamma> I am trying to run a post webscript with request body. Hence, unable to test it using cURL. How else can I test it?

2019-02-21 13:46:04 GMT <alfresco-discord> <missamma> It would be used by the ADF team later ; I do not have access to that yet.

2019-02-21 13:47:20 GMT <alfresco-discord> <yreg> you can post with curl

2019-02-21 13:47:52 GMT <alfresco-discord> <yreg> @missamma just google "how to post with curl"

2019-02-21 13:48:31 GMT <alfresco-discord> <missamma> It gives me service context not available error. I am using the webscript to send an email

2019-02-21 13:48:57 GMT <alfresco-discord> <yreg> can you share the command you used here ?

2019-02-21 13:49:49 GMT <alfresco-discord> <missamma> Gimme some time. Will post it. OOTO right now

2019-02-21 14:29:46 GMT <alfresco-discord> <missamma> @yreg curl -uadmin:admin -H "Content-Type: application/json" --data-binary "{"to":"test@test.com"}" "http://localhost:8080/alfresco/service/mail"

2019-02-21 14:30:38 GMT <alfresco-discord> <missamma> The error is : a valid secure context was not provided in the RequestContext

2019-02-21 14:33:29 GMT <alfresco-discord> <yreg> you probably need to add method

2019-02-21 14:34:57 GMT <alfresco-discord> <missamma> I run the same with postman and get the same error

2019-02-21 14:35:06 GMT <alfresco-discord> <yreg> @missamma also either escape your double qutes or switch to simple quotes

2019-02-21 14:35:31 GMT <alfresco-discord> <missamma> Yeah.. I did that in the actual command

2019-02-21 14:35:52 GMT <alfresco-discord> <missamma> Changed the values to post here

2019-02-21 14:37:21 GMT <alfresco-discord> <missamma> The webscript internally uses mail.execute(). Can we still run this using cURL or postman?

2019-02-21 15:24:18 GMT <alfresco-discord> <Alexander Seitz> @missamma I use build in REST Client in IntelliJ to test the public Alfresco Rest Api. Example see: https://github.com/aitseitz/intellij-http-rest-client-for-alfresco-rest-api I'm not sure but it looks to me like you're trying to use the internal mail api (MailActionExecuter.java) with a REST call. Internal mail.execute() is normally run in System context, not a User context

2019-02-21 15:24:19 GMT <alfbot> Title:GitHub - aitseitz/intellij-http-rest-client-for-alfresco-rest-api: Provides REST Snippets in Jetbrains's HTTP Client format to access the official Alfresco's REST API (at github.com)

2019-02-21 15:24:41 GMT <alfresco-discord> <Alexander Seitz> AuthenticationUtil.runAs(new RunAsWork<Object>() { ... }, AuthenticationUtil.getSystemUserName())

2019-02-21 16:02:38 GMT <angelborroy> AFaust I’m dealing with an scenario like this one

2019-02-21 16:02:39 GMT <angelborroy> https://github.com/Acosix/alfresco-audit

2019-02-21 16:02:40 GMT <alfbot> Title:GitHub - Acosix/alfresco-audit: Addon to add audit-related utilities and/or common definitions (at github.com)

2019-02-21 16:02:59 GMT <angelborroy> But my DAOs never make the rollback

2019-02-21 16:03:19 GMT <angelborroy> I haven’t see any explicit binding to TransactionManager in your code

2019-02-21 16:03:22 GMT <angelborroy> Is it required?

2019-02-21 16:20:05 GMT <AFaust> A custom transaction manager is only required if you actually use a different data source

2019-02-21 16:20:17 GMT <angelborroy> I’m using the same

2019-02-21 16:20:32 GMT <angelborroy> If I include a TransactionListener, the rollback is sent

2019-02-21 16:20:44 GMT <angelborroy> But my DAO is not using Alfresco Transaction

2019-02-21 16:20:46 GMT <angelborroy> very weird

2019-02-21 16:20:58 GMT <AFaust> Also, DAOs never do rollback. It is an interceptor on a service that performs a rollback, or an explicit use of retryingTransactionHelper

2019-02-21 16:21:37 GMT <angelborroy> But should I have to declare my DAO in that Interceptor?

2019-02-21 16:21:40 GMT <angelborroy> I don’t think so

2019-02-21 16:21:46 GMT <AFaust> The audit module may not be the best example as I do not have any service facading the DAO

2019-02-21 16:21:52 GMT <angelborroy> yep

2019-02-21 16:22:06 GMT <angelborroy> So i have to explicit include a TransactionInterceptor in my service

2019-02-21 16:22:06 GMT <AFaust> No, the interceptor on the service should be completely unaware of the DAO, and vice versa

2019-02-21 16:22:16 GMT <angelborroy> I tried

2019-02-21 16:22:23 GMT <angelborroy> But I didn’t also work

2019-02-21 16:23:15 GMT <AFaust> So that is my typical way of dealing with services and transaction interceptors (almost identical to Alfresco default): https://github.com/Acosix/alfresco-site-hierarchy/blob/master/repository/src/main/config/context/service-context.xml#L36

2019-02-21 16:23:18 GMT <alfbot> Title:alfresco-site-hierarchy/service-context.xml at master · Acosix/alfresco-site-hierarchy · GitHub (at github.com)

2019-02-21 16:24:21 GMT <angelborroy> But you are not using custom DAOs at that project, right?

2019-02-21 16:26:04 GMT <angelborroy> I’m thinking on creating a TransactionListener to commit / rollback my DAOs according to Alfresco Transaction

2019-02-21 16:26:14 GMT <angelborroy> But it’s a so awful solution… sight!

2019-02-21 16:27:48 GMT <angelborroy> I saw also that project https://github.com/slemarchand/social-tops/tree/master/social-tops-repo

2019-02-21 16:27:49 GMT <alfbot> Title:social-tops/social-tops-repo at master · slemarchand/social-tops · GitHub (at github.com)

2019-02-21 16:27:54 GMT <angelborroy> And it looks the same

2019-02-21 16:27:58 GMT <angelborroy> I’m missing something

2019-02-21 17:48:19 GMT <alfresco-discord> <missamma> @Alexander Seitz will definitely try that. Thank you for your inputs.

2019-02-21 19:22:40 GMT <alfresco-discord> <dgradecak> Angel: i am a bit late but all you need to do is use the same tx manager

2019-02-21 20:11:39 GMT <angelborroy> @dgradecak It’s not my project, just a client with a bad desing

2019-02-21 20:11:51 GMT <angelborroy> @dgradecak But I have to solve the problems

2019-02-21 21:48:40 GMT <alfresco-discord> <dgradecak> Sure it is my excuse too usually;)

2019-02-21 21:50:30 GMT <alfresco-discord> <dgradecak> I think the bean is txManager, inject it and use it to configure your "dao"

End of Daily Log

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