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-06-17 07:51:28 GMT <AFaust> Has anyone noticed any differences with running scripts in JS Console since Alfresco 6.0?

2019-06-17 07:51:53 GMT <AFaust> I just noticed on a customer installation that I can no longer run my manual sync trigger script https://gist.githubusercontent.com/AFaust/beaa309837397abf961f/raw/3c2c2a469b8b8abe0300a196ffb193e8b087ce12/triggerUserSynchInTxn.js

2019-06-17 07:52:13 GMT <angelborroy> Jobs changed in that version

2019-06-17 07:52:18 GMT <angelborroy> Can that be the cause?

2019-06-17 07:52:32 GMT <AFaust> Ah, right. Let me check if I need to adapt the trigger script as well.

2019-06-17 07:52:56 GMT <AFaust> No - I should not need to adapt it because jobs changed since the script itself does not make use of the Quartz API

2019-06-17 07:53:02 GMT <angelborroy> right

2019-06-17 07:53:31 GMT <AFaust> And looking at the server logs, the operation actually succeeds in triggering the jobs, so it is just the post processing that fails for some reason.

2019-06-17 07:53:56 GMT <AFaust> Looks like there is an issue with authentication scope reset in Alfresco 6.0 when calling the synchronize operation

2019-06-17 07:54:15 GMT <AFaust> exception during post-processing is: Caused by: net.sf.acegisecurity.AuthenticationCredentialsNotFoundException: A valid SecureContext was not provided in the RequestContext

2019-06-17 07:55:20 GMT <angelborroy> It can be that property for REST API Authentication

2019-06-17 07:56:00 GMT <angelborroy> alfresco.restApi.basicAuthScheme=true

2019-06-17 07:56:18 GMT <AFaust> What should that have to do with JS Console?

2019-06-17 07:56:44 GMT <angelborroy> Not with JS Console but with Job invocation

2019-06-17 07:56:45 GMT <AFaust> Normal scripts work just fine, e.g. a simple "print('Test');" script.

2019-06-17 07:57:07 GMT <AFaust> Again, what whouls job invocation have to do with a restApi parameter?

2019-06-17 07:57:16 GMT <AFaust> whouls => would

2019-06-17 07:57:30 GMT <angelborroy> Yep, it’s a Java invocation

2019-06-17 07:57:54 GMT <angelborroy> Sorry, just trying to find the relevant changes for Alfresco 6.90

2019-06-17 07:58:01 GMT <angelborroy> 6.90 > 6.0

2019-06-17 07:59:22 GMT <AFaust> If Alfresco had any decent and consistent logging (e.g. like in the AuthenticationUtil class), not just "when I feel like it"-style logging, I could activate that to see what / who is resetting the context.

2019-06-17 08:00:27 GMT <AFaust> Not to mention that any logging via Apache Commons Logging cannot reliably be reconfigured via Log4J settings, even though the log output is technically redirected to Log4J.

2019-06-17 08:00:54 GMT <AFaust> ^^ I mean at runtime via the admin console tool "Log4J Settings"

2019-06-17 08:01:31 GMT <AFaust> Well - have to put that issue on my person backlog of a thousand items I need to do. Important thing is that the sync did actually run.

2019-06-17 08:02:33 GMT <alfresco-discord> <dgradecak> I remember a colleague used JS Console on 6.0 without issues, although it was search and node create

2019-06-17 08:05:32 GMT <AFaust> Yeah, I have not seen any issues yet with regular scripts. Have already performed quite complex export / import stuff via scripts on 6.x

2019-06-17 08:05:44 GMT <AFaust> That's why I was surprised and had to ask...

2019-06-17 08:06:17 GMT <AFaust> Anyway: Another "ACA surprise" this morning - does ACA really not support access to the "Shared Files" folder by default?

2019-06-17 08:07:03 GMT <AFaust> I mean, not via any of the navigation items. But if I perform a search I can actually find content in there and then access the structure...

2019-06-17 08:07:18 GMT <AFaust> But I cannot navigate there without search...

2019-06-17 08:08:17 GMT <AFaust> And the search result ends up being displayed "as if" it was contained in "Personal Files", which is completely bogus.

2019-06-17 08:09:49 GMT <alfresco-discord> <dgradecak> ACA is a sample as far as I understood. If you want other features just do a PR

2019-06-17 08:09:57 GMT <AFaust> Hahaha... the more I use search to access various items that I cannot navigate to using the regular navigation, the more laugable it becomes...

2019-06-17 08:11:48 GMT <alfresco-discord> <dgradecak> well if I am not wrong Share works the same way

2019-06-17 08:11:55 GMT <AFaust> Oh, I don't want any other features, so no PR from me. I am just amazed every time how little logical design has gone into that. And after all, it is supposed to be the basis for Digital Workspace, an Enterprise-only product that needs to convince paying customers.

2019-06-17 08:12:32 GMT <alfresco-discord> <dgradecak> that is my biggest issue. How to advise someone to use this if I cannot use it

2019-06-17 08:12:53 GMT <AFaust> Well, in Share I only have this issue when I, the user, deliberately mess things up, e.g. by not granting read permissions on a path, only on the actual content node itself deep into a structure.

2019-06-17 08:13:08 GMT <alfresco-discord> <dgradecak> a client uses heavily "folder templates" but that is not in DWP/ACA

2019-06-17 08:13:41 GMT <alfresco-discord> <dgradecak> so I have been asked to implement it and do a PR, which I wanted to do but than I was asked to wait for the next extension mechanism which will come in the next ADF

2019-06-17 08:14:23 GMT <alfresco-discord> <dgradecak> but that is not coming πŸ˜„

2019-06-17 08:15:00 GMT <alfresco-discord> <dgradecak> than I checked the ABN docs and realized that the docs are for the master branch and not for the latest 3.2.1 ADF

2019-06-17 08:16:02 GMT <alfresco-discord> <dgradecak> but Share is deprecated πŸ˜‰

2019-06-17 08:17:12 GMT <alfresco-discord> <dgradecak> and than "I am frustrated", right

End of Daily Log

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