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-10-30 05:35:51 GMT <alfresco-discord> <thushar> In APS form is it possible to use barcode Sanning by system camera and put the value in metadata form field?

2018-10-30 05:36:04 GMT <alfresco-discord> <thushar> If yes, then how is it possible?

2018-10-30 09:12:07 GMT <alfresco-discord> <bhagyas> AFaust, have you seen this? https://cloud.google.com/blog/products/gcp/introducing-jib-build-java-docker-images-better

2018-10-30 09:12:08 GMT <alfbot> Title:Introducing Jib — build Java Docker images better | Google Cloud Blog (at cloud.google.com)

2018-10-30 12:34:37 GMT <AFaust> bhagyas: I saw that jib thingy a few months back, but am quite sure it may not be that helpful in any Alfresco context. It sure sounds to be geared towards those trivial, isolated "we build a single micro-service thingy" projects

2018-10-30 13:51:47 GMT <twen> Ola

2018-10-30 13:59:36 GMT <alfresco-discord> <bhagyas> I think Alfresco is about to be a 'multiple' micro service thingy soon

2018-10-30 14:07:31 GMT <alfresco-discord> <yreg> I have doubts about micro and about soon

2018-10-30 14:07:36 GMT <alfresco-discord> <yreg> either one or the other

2018-10-30 15:18:40 GMT <Tichodroma> I get 400 Bad Request from Share for the form details to edit folder properties list view. The request is for

2018-10-30 15:18:43 GMT <Tichodroma> /share/service/components/form?itemKind=node&itemId=workspace://SpacesStore/c1fc5954-1ef6-4816-a730-93598c23d577&destination={destination}&mode=edit&submitType=json&formId=doclib-simple-metadata&showCancelButton=true&htmlid=template_x002e_documentlist_v2_x002e_myfiles_x0023_default-editDetails-alf-id51

2018-10-30 15:19:11 GMT <Tichodroma> I have no idea where to find anything about the possible reason in the logs.

2018-10-30 15:20:26 GMT <angelborroy> look at the JSON Body

2018-10-30 15:20:38 GMT <angelborroy> probably there is something wrong

2018-10-30 15:20:43 GMT <Tichodroma> there is no JSON. This is a request with query params only

2018-10-30 15:21:04 GMT <angelborroy> Ouch!, I saw “submitType=json” :)

2018-10-30 15:21:09 GMT <Tichodroma> and the response is empty

2018-10-30 15:21:44 GMT <angelborroy> it is just to recover a form, right?

2018-10-30 15:21:49 GMT <Tichodroma> this is a GET request that should return the HTML needed to render the form

2018-10-30 15:21:53 GMT <angelborroy> yep

2018-10-30 15:22:32 GMT <angelborroy> sorry, no clues from my part

2018-10-30 15:22:38 GMT <Tichodroma> np

2018-10-30 15:25:12 GMT <Tichodroma> Do you know where Share (share.war) logs?

2018-10-30 15:25:54 GMT <angelborroy> catalina.out / share.log

2018-10-30 15:26:18 GMT <AFaust> Tichodroma: I see your {destination} token has not been replaced with a proper value.

2018-10-30 15:26:33 GMT <angelborroy> touché

2018-10-30 15:26:38 GMT <angelborroy> yep

2018-10-30 15:26:46 GMT <Tichodroma> hm, a second server makes a request where this is not done too, this works

2018-10-30 15:26:51 GMT <Tichodroma> but let me check again

2018-10-30 15:27:32 GMT <Tichodroma> no, this can't be the reason. {destination} works fine on a second system

2018-10-30 15:27:37 GMT <AFaust> In general, that parameter does not make much sense in an edit form anyway. The itemId is the relevant part...

2018-10-30 15:27:50 GMT <AFaust> Maybe it is silently ignored then...

2018-10-30 15:27:59 GMT <Tichodroma> maybe

2018-10-30 15:29:12 GMT <bee-bot> <AFaust> Did you check the Repository access logs if it sent back a 400 response? This could very well just be a response code proxied by Share from a backend call

2018-10-30 15:29:33 GMT <AFaust> Sorry - accidentally used the wrong tool

2018-10-30 15:29:41 GMT <Tichodroma> the access log (nginx) shows the 400, yes

2018-10-30 15:30:01 GMT <Tichodroma> but I have no idea where to look for the log that share.war writes to

2018-10-30 15:30:32 GMT <AFaust> I meant check the Repository tomcat access logs

2018-10-30 15:30:43 GMT <angelborroy> probably you can avoid NGINX and try invoking Tomcat directly

2018-10-30 15:30:49 GMT <angelborroy> just to discard proxy issues

2018-10-30 15:30:52 GMT <AFaust> I assume that Share is configured to talk directly with Repository, not using nginx as the middle man

2018-10-30 15:31:02 GMT <Tichodroma> yes

2018-10-30 15:41:39 GMT <angelborroy> it looks like the request is served by NGINX

2018-10-30 15:41:45 GMT <angelborroy> >> /share/service/components/...

2018-10-30 15:44:43 GMT <Tichodroma> yes, it is

2018-10-30 15:45:00 GMT <angelborroy> have you tried Tomcat port?

2018-10-30 15:45:02 GMT <Tichodroma> when I copy the request as a curl command, I observe this:

2018-10-30 15:45:04 GMT <AFaust> angelborroy: I was talking about a backend call from Share to the Repository which could respond with a 400 error code and relay that to the frontend. In that case there is the question of a) does this happen and can this be found in the Tomcat access logs, and b) what is the cause there...

2018-10-30 15:45:25 GMT <Tichodroma> Firefox puts the {destination} parameter as is into the URL => 200 OK using curl

2018-10-30 15:45:43 GMT <Tichodroma> Chromium puts it as \{destination\} into the URL => 400 Bad Request

2018-10-30 15:46:04 GMT <Tichodroma> when I change the curl command and remove the \ => 200 OK

2018-10-30 16:20:16 GMT <Tichodroma> what could be the implementation for /share/service/components/form? I fail to find a Share web script that looks like it is the controller

2018-10-30 16:39:32 GMT <AFaust> Tichodroma: FormUIGet => Java class in web-framework-commons

2018-10-30 16:40:03 GMT <Tichodroma> ty

2018-10-30 17:17:00 GMT <alfresco-discord> <Shibak Tensai> I have this parameter set: activities.post.ignored-types=org.alfresco.documentlibrary.file-previewed,org.alfresco.documentlibrary.file-downloaded

2018-10-30 17:17:25 GMT <alfresco-discord> <Shibak Tensai> trying to find where I can also set the omit of adding files to the document library

End of Daily Log

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