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-08-13 09:27:41 GMT <Tichodroma> I observe strange permission problem: A user is member of a site_foo_SiteMamager group and triggers custom Java code through a Share action. This Java code performs various NodeService operations on the node (nodeService.hasAspect, for example).

2018-08-13 09:28:21 GMT <Tichodroma> These NodeService operations throw "net.sf.acegisecurity.AccessDeniedException: Access is denied."

2018-08-13 09:28:59 GMT <Tichodroma> At the same time, checking permission using JavaScript gives the expected result: permissions.hasPermission(document, "Read", username") // true

2018-08-13 09:29:28 GMT <Tichodroma> Do you have any idea what could be the reason? Any pointers in what direction to look for the cause?

2018-08-13 09:30:36 GMT <Tichodroma> The code is old and worked without problems in the past.

2018-08-13 09:40:36 GMT <AFaust> Tichodroma: There is not an error like "A valid SecureContext was not provided"?

2018-08-13 09:41:11 GMT <ootb-bot> [discord/ootb] <yreg> IF there is you would need to disable automatically converting objects to string in your debugger

2018-08-13 09:42:09 GMT <Tichodroma> AFaust: let me check

2018-08-13 09:42:17 GMT <AFaust> That is not the only cause of that error, but yes, if you are debugging then it is likely you'll see that

2018-08-13 09:42:25 GMT <ootb-bot> [discord/ootb] <yreg> Otherwise, you probably should confirm security config : https://github.com/Alfresco/alfresco-repository/blob/27d9cd63ab141f67b0fc7f493ac937f50bb51705/src/main/resources/alfresco/public-services-security-context.xml#L376

2018-08-13 09:42:26 GMT <alfbot> Title:alfresco-repository/public-services-security-context.xml at 27d9cd63ab141f67b0fc7f493ac937f50bb51705 路 Alfresco/alfresco-repository 路 GitHub (at github.com)

2018-08-13 09:43:19 GMT <AFaust> I have seen custom code indirectly invalidate the secure context via incorrect AOP setup, and then the next regular service call failed with that message (all in live system without debugging)

2018-08-13 09:45:21 GMT <Tichodroma> No, nothing in the log about the SecureContext. I see such errors when a debugger is attached, but AFAIK that's a different problem.

2018-08-13 09:45:36 GMT <AFaust> Yes, that is what yreg mentioned

2018-08-13 09:46:22 GMT <AFaust> Does the problem persist after a restart (in case you already tried)?

2018-08-13 09:46:37 GMT <Tichodroma> not sure, I'll have to ask the customer

2018-08-13 09:47:29 GMT <AFaust> I have had very few occurences of cache inconsistency issues (even in single server cases) where simply invalidating the acl / permission caches (via ootbee-support-tools) fixed the issue

2018-08-13 09:47:47 GMT <Tichodroma> could this do any harm?

2018-08-13 09:48:05 GMT <AFaust> very few = 2-3 non-reproducible cause issues in last 4 years or so

2018-08-13 09:48:47 GMT <AFaust> Resetting the caches? Not that I know off. In ootbee-support-tools we have only configured those caches we are confident are harmeless to clear to actually be clearable...

2018-08-13 09:49:46 GMT <AFaust> Only "harm" would be a degradation of performance due to the increased DB accesses

2018-08-13 09:50:04 GMT <ootb-bot> [discord/ootb] <yreg> But you would need a snapshot version AFAIK to have that feature included

2018-08-13 09:50:46 GMT <Tichodroma> if the "Caches" page only lists the caches in a table, I probably don't have a snaptshot, correct?

2018-08-13 09:57:51 GMT <ootb-bot> [discord/ootb] <yreg> yes

2018-08-13 09:58:13 GMT <ootb-bot> [discord/ootb] <yreg> you still could use a snippet in jsconsole to load the cache bean and clear it manually

2018-08-13 09:58:52 GMT <ootb-bot> [discord/ootb] <yreg> I used to do that with EE clients as part of a utility script to be run post cluster split/join

2018-08-13 09:59:08 GMT <ootb-bot> [discord/ootb] <yreg> in an environment where caches were setup with a long TTL

2018-08-13 10:00:04 GMT <ootb-bot> [discord/ootb] <yreg> I think the first column in the table was actually the bean name, so it made it quite easy to craft the script back then

2018-08-13 10:46:19 GMT <AFaust> The caches tool was also included in the 1.0.0.0 release version, but has a bug regarding number formatting in non-English locales (wherever the decimal separator is not a dot)

2018-08-13 10:47:57 GMT <alfresco-discord> <bhagyas> @yreg can you provide a webhook for the ootb channel? This is unnecessary noise for the channel with the ootb-bot adding symbols and letters coming back to Discord

2018-08-13 10:48:09 GMT <AFaust> The first column is the cache name, and not identical with the full bean name. In most cases though it is derived from the bean name, and the full bean name is typically something like "cache.<listedCacheName>"

2018-08-13 10:49:03 GMT <alfresco-discord> <bhagyas> so that anyone who don't want to use Discord, but insist on creating their own Discord channels can still relay messages with their user agents 馃槂

2018-08-13 10:50:47 GMT <alfresco-discord> <bhagyas> btw @everyone @mbui is now a server administrator, which means he would have the same control like the server owner, as of now - we're looking at ways to make this better

2018-08-13 10:53:29 GMT <AFaust> Hmm - the only bit of noise I see here on IRC that is different from the alfresco-discord channel is the "[discord/ootb]" prefix in the message, and maybe that could/should be dropped. I don't know what other symbols / letters might be bugging anyone...

2018-08-13 10:54:33 GMT <alfresco-discord> <bhagyas> AFaust, I don't see a need for adding any relay noise, when there are standard integration ways to do discord to discord sync, so as long as he can provide a webhook - we can add it here.

2018-08-13 10:55:09 GMT <alfresco-discord> <bhagyas> He might have his own reasons to create a channel which syncs, but webhooks are the way to go if that's the intention 馃槂

2018-08-13 10:55:39 GMT <AFaust> Though ootb-bot I believe is about IRC-Discord sync, not Discord-Discord sync

2018-08-13 10:56:37 GMT <alfresco-discord> <bhagyas> There are only two people who don't use this Discord channel for their own reasons, and no need to add too many characters - for each message

2018-08-13 10:57:02 GMT <alfresco-discord> <bhagyas> And they can still use the channel, everyone is welcome here, as long as they are not violating community conduct

2018-08-13 10:57:12 GMT <AFaust> And we are using webhooks for other integrations. I am currently playing around and building a small mapping service to get messages from GitHub, Codacy and other services into the OOTB Discord in a way that we want / prefer

2018-08-13 10:58:09 GMT <alfresco-discord> <bhagyas> (y)

2018-08-13 10:58:51 GMT <AFaust> Only two people? Since you are not in IRC you can't actually see the list of connected users...

2018-08-13 10:59:43 GMT <alfresco-discord> <bhagyas> I can make the presence sync, but no use of doing that - since it only matters who those engage in conversation when it comes to inwards sync

2018-08-13 11:00:02 GMT <alfresco-discord> <bhagyas> two : you and @yreg who are on your own channel

2018-08-13 11:01:13 GMT <AFaust> Have you seen me with the [discord/ootb] tag somewhere in the history? I believe not...

2018-08-13 11:01:53 GMT <AFaust> Though yes, I am with @yreg on other channels on the OOTB discord, though none synced here...

2018-08-13 11:01:58 GMT <alfresco-discord> <bhagyas> I see you online on OOTB discord 馃槂

2018-08-13 11:02:05 GMT <AFaust> And also not just us two there...

2018-08-13 11:02:36 GMT <AFaust> Again, Yes, I am active on that "server", but not on the [discord/ootb] "channel"

2018-08-13 11:03:10 GMT <AFaust> Since Discord does not display channel-by-channel presence it is unavoidable for me to be listed there if I e.g. engage in discussions within the board

2018-08-13 11:03:26 GMT <AFaust> Or play around in the webhook test channels...

2018-08-13 11:03:37 GMT <alfresco-discord> <MorganP> Any online ISO9075 encoding tool?

2018-08-13 11:04:11 GMT <AFaust> @MorganP: I have looked for some like this myself multiple times, but for some reason couldn't find (a decent) one

2018-08-13 11:04:33 GMT <alfresco-discord> <MorganP> I can't find any

2018-08-13 11:04:36 GMT <AFaust> So I usually just create a small main class and call Alfresco ISO9075 class

2018-08-13 11:04:41 GMT <alfresco-discord> <MorganP> It is boring to always have to encore and decode

2018-08-13 11:06:41 GMT <AFaust> Though how many characters do you need to encode really? Leading numerals are simple - starting with _x0030_ for 0 just add accordingly... And other than that, you usually only ever need _x0020_ (someone who puts : or / characters in a cm:name is evil)

2018-08-13 11:07:26 GMT <fwu2018> hello all

2018-08-13 11:07:27 GMT <AFaust> Maybe open/closing parantheses may be a thing in some names.

2018-08-13 11:08:06 GMT <AFaust> But maybe your users are culturally very different from what I see here, and use much more inappropriate characters

2018-08-13 11:11:46 GMT <fwu2018> ppl, can someone help me to validade and to understand this:

2018-08-13 11:12:37 GMT <fwu2018> when starting a process using the rest api (community) I cant associate files in a single rest api call. I need to use the "/items" service. Is this true?

2018-08-13 11:13:26 GMT <fwu2018> the same for completing tasks

2018-08-13 11:13:59 GMT <fwu2018> if this is true I need to combine 2 calls which create a transaction problem

2018-08-13 11:14:11 GMT <AFaust> When the files are already stored in Alfresco you can always reference them in a single call when starting a process / updating or completing a task

2018-08-13 11:14:41 GMT <AFaust> What specific /items service are you even talking about? Can you provide the full URI for that?

2018-08-13 11:15:29 GMT <fwu2018> afaust im looking to this: alfresco/api/-default-/public/workflow/versions/1/processes

2018-08-13 11:16:25 GMT <fwu2018> I was trying to find an example about associating an existing file to the process

2018-08-13 11:17:42 GMT <fwu2018> but then I found this: POST /processes/{processId}/items So I thought I was not able to specify the files to associate directly on the create process call

2018-08-13 11:17:50 GMT <fwu2018> I hope Im wrong

2018-08-13 11:18:36 GMT <AFaust> Well - I don't know about that new, fancy ReST API... the old one sure did allow this.

2018-08-13 11:18:45 GMT <AFaust> Looks like the documentation may be missing a few details.

2018-08-13 11:19:10 GMT <AFaust> Looking at the source code there is an explicit annotation on the create resource that states that items can be provided

2018-08-13 11:21:19 GMT <fwu2018> ok I will look at that afaust thank you

2018-08-13 11:22:21 GMT <AFaust> Though I cannot find anything similar on the task update operation. Looks like for tasks you really have to do at least two separate calls to add/link documents and update the task.

2018-08-13 11:24:25 GMT <ootb-bot> <yreg> @bhagyas I just removed the [network/protocol] part of the relayed message, that was part of the default config

2018-08-13 11:27:11 GMT <fwu2018> afaust, I will look at that also. maybe I can change it. thank you

2018-08-13 11:27:59 GMT <yreg> ~flushlog

2018-08-13 11:27:59 GMT <alfbot> yreg: Woooosh, your log has been flushed...

2018-08-13 11:30:12 GMT <alfresco-discord> <MorganP> Yes I did it manually... it was simple only figures and spaces

2018-08-13 11:30:25 GMT <alfresco-discord> <MorganP> but I already had cases with + ~ @ aso

2018-08-13 11:32:05 GMT <ootb-bot> <yreg> and FYI (or anyone interested) I am bridging two channels in OOTBee discord server, #orderofthebee is bridged to #general, that is for general OOTB discussions. #alfresco is bridged to #alfresco-irc-bridge and that is for log preservation in a consistent and easily searchable state, in case resplin's home server ever goes down

2018-08-13 12:52:15 GMT <Tichodroma> Is this a known bug? The URL template to include the link to the site invites in an email includes the tenant domain (https://github.com/Alfresco/alfresco-repository/blob/488b9947fbb9db38e56df8811e76b91a94f10a1e/src/main/java/org/alfresco/repo/invitation/site/InviteModeratedSender.java#L62). But there is no HTTP route that can handle this.

2018-08-13 12:52:16 GMT <alfbot> Title:alfresco-repository/InviteModeratedSender.java at 488b9947fbb9db38e56df8811e76b91a94f10a1e 路 Alfresco/alfresco-repository 路 GitHub (at github.com)

2018-08-13 12:52:40 GMT <Tichodroma> see https://github.com/Alfresco/alfresco-repository/blob/488b9947fbb9db38e56df8811e76b91a94f10a1e/src/main/java/org/alfresco/repo/invitation/site/InviteModeratedSender.java#L115 for how this template is used

2018-08-13 12:52:41 GMT <alfbot> Title:alfresco-repository/InviteModeratedSender.java at 488b9947fbb9db38e56df8811e76b91a94f10a1e 路 Alfresco/alfresco-repository 路 GitHub (at github.com)

2018-08-13 18:17:48 GMT <xkahn> Wow. Quiet here

2018-08-13 18:19:29 GMT <bee-bot> <yreg> xkahn probably because unregistered users are no longer allowed to talk

2018-08-13 18:20:07 GMT <xkahn> yreg: I don't want to alarm you, but you've become a bot.

2018-08-13 18:20:37 GMT <xkahn> yeah

2018-08-13 18:31:56 GMT <bee-bot> <yreg> I know, I am using discord to talk over IRC, and I am using OOTBee bot for bridging IRC and discord channels

2018-08-13 19:39:59 GMT <xkahn> In our tomcat logs, we see a TON of thumbnail errors.

2018-08-13 19:40:20 GMT <xkahn> Basically, they look like this: 2018-08-13 19:39:44,564 ERROR [extensions.webscripts.AbstractRuntime] [ajp-bio-8009-exec-2430] Exception from executeScript: 07131076 Wrapped Exception (with status template): 0713111529 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 0713111528 Read-Write transaction started within read-only transaction

2018-08-13 19:40:58 GMT <xkahn> It looks like the thumbnail get script is requesting a read only transaction, but then tries to write the thumbnail into the node

2018-08-13 19:41:01 GMT <xkahn> which fails.

2018-08-13 19:41:15 GMT <AxelFaust> Seen those quite a few times... in some Alfresco version, the web script to retrieve thumbnails was marked as read-only, but it could trigger a write action (generate the thumbnail), which was a bug

2018-08-13 19:41:26 GMT <xkahn> AxelFaust: yeah!

2018-08-13 19:41:29 GMT <xkahn> exactly!

2018-08-13 19:41:56 GMT <xkahn> AxelFaust: so what's the solution?

2018-08-13 19:42:15 GMT <AxelFaust> I thought they had fixed that web script and marked it correctly as read-write...

2018-08-13 19:42:59 GMT <AxelFaust> I never did fix this for myself, since I did not encounter this issue - mostly people in this channel + forums had had those issues

2018-08-13 19:43:29 GMT <xkahn> I'll just file a ticket, I guess.

2018-08-13 19:44:05 GMT <bee-bot> <yreg> if you see it, my guess is that your version is either out of support or on life support

2018-08-13 19:44:16 GMT <bee-bot> <yreg> haven't seen that on any recent version

2018-08-13 19:44:36 GMT <bee-bot> <yreg> only saw it on 3.4 / early 4.x

2018-08-13 19:44:46 GMT <xkahn> bee-bot: it's the most recent version of 5.2

2018-08-13 19:44:50 GMT <xkahn> gah.

2018-08-13 19:44:55 GMT <xkahn> yreg: it's the most recent version of 5.2

2018-08-13 19:45:26 GMT <bee-bot> <yreg> seems wierd

2018-08-13 19:47:58 GMT <xkahn> yreg: https://pastebin.com/RBDxevKd

2018-08-13 19:47:59 GMT <alfbot> Title:Store: classpath:alfresco/templates/webscripts File: org/alfresco/repository/ - Pastebin.com (at pastebin.com)

2018-08-13 19:48:28 GMT <xkahn> from: http://myserver:8080/alfresco/s/script/org/alfresco/repository/thumbnail/thumbnail.get

2018-08-13 19:50:04 GMT <xkahn> bbiab

2018-08-13 19:51:11 GMT <bee-bot> <yreg> can you print the full error log

2018-08-13 20:08:33 GMT <AxelFaust> @yreg Did not notice the bot having been renamed.... You are only a few small renames away from a smash hit

2018-08-13 20:09:10 GMT <AxelFaust> ...or at least from some funky music.

2018-08-13 20:09:12 GMT <AxelFaust> https://en.wikipedia.org/wiki/Bebop

2018-08-13 20:09:13 GMT <alfbot> Title:Bebop - Wikipedia (at en.wikipedia.org)

2018-08-13 20:13:48 GMT <bee-bot> <yreg> Honestly, I only renamed it because some one got the bright idea of censoring everything from <ootb-bot> and not relay it to alfresco-discord server

2018-08-13 20:14:15 GMT <bee-bot> <yreg> @AFaust I wouldn't rename otherwise

2018-08-13 20:14:37 GMT <AxelFaust> Ahhh...

2018-08-13 20:15:02 GMT <AxelFaust> "So it begins" (the name shuffle + censor war)

2018-08-13 20:15:18 GMT <bee-bot> <yreg> I am more and more inclined to agree with your position regarding ownership of that channel ...

2018-08-13 20:15:32 GMT <AxelFaust> I was just about to point out my reasons again

2018-08-13 20:23:04 GMT <AxelFaust> I mean, I could partially see the reason behind the actions that triggered me to revert to IRC, but censoring ootb-bot does not make any sense to me. I cannot image that the bot created any unnecessary garbage. So only a few reasons remain, a) unnatural dislike of the three-way hop, b) active censoring of a single person (in this case you) not warranted based on previous content, c) principled obstructionism to anything

2018-08-13 20:23:04 GMT <AxelFaust> someone else might do that is not understood

2018-08-13 20:26:35 GMT <bee-bot> <yreg> And the cool thing about it is that there were no warning nor notification about it at all

2018-08-13 20:27:29 GMT <AxelFaust> Precisely that was what annoyed me. I could have accepted it if there was some discussion beforehand, and some kind of agreement / understanding...

2018-08-13 20:57:17 GMT <alfresco-discord> <mbui> I've suggested that bhagyar transfer ownership to an Alfresco employee or a shared discord account that a selected few have access to.. multiple times. Can clearly read between the lines, and it's getting a tad childish in my opinion. (Talking about the unwarranted censoring of messages)

2018-08-13 21:04:10 GMT <bee-bot> <yreg> @mbui found it a bit childish as well, so I did not want to make a seen out of it, and simply switched to a different nick for the bot

2018-08-13 21:15:44 GMT <ootb-bot> And the bot can still talk using its old nick

2018-08-13 21:17:11 GMT <ootb-bot> @mbui I initiated a new sessions using the ootb-bot nick/account to confirm the nick is blacklisted, do you get this on alfresco-discord server ?

2018-08-13 21:17:48 GMT <bee-bot> <鈨 鈨> Test

2018-08-13 21:47:55 GMT <xkahn> Well, just checked two Alfresco hosts with different installs and that both have <transaction allow="readonly">required</transaction>

2018-08-13 21:47:59 GMT <xkahn> For thumbnails

End of Daily Log

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