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-05-08 05:34:14 GMT <sgraham_> ok question.. is there something special vodoo.. (wave a dead and blead chicken over this) to get this to register my edits via webdav and give me version-ing ?

2018-05-08 07:22:10 GMT <yreg> Good morning folks

2018-05-08 09:10:34 GMT <ankit_> Hi all

2018-05-08 09:10:57 GMT <ankit_> I have made a project for sharing the contents of file and folder in alfrecso

2018-05-08 09:11:29 GMT <ankit_> The github link for my project is GitHub - ayushiagrahari95/share-link-expiry-file-and-folder and it is working fine on local

2018-05-08 09:11:46 GMT <ankit_> but when I have deployed the amps on production,whenever I click on the make public action,a URL is generated on the folder and when I click on that URL,it is asking for authentication

2018-05-08 09:12:00 GMT <ankit_> (prompts the user to enter the username and password) but on local,the URL is opening properly in the new tab without asking for authentication.

2018-05-08 09:12:31 GMT <yreg> ankit_, how does that URL look like ?

2018-05-08 09:29:57 GMT <ayushi> I am trying to call the repo side webscript from share side js in the following way

2018-05-08 09:29:59 GMT <ayushi> var requestUrl = window.location.protocol + "//" + window.location.host + "/alfresco/s/eu/xfel/make-public/doclist?nodeRef=" + this.options.nodeRef + "&guest=true";

2018-05-08 09:31:05 GMT <ayushi> it is working fine on local but when I have deployed my project on production,it is asking for authentication for calling the repo side webscript

2018-05-08 09:31:36 GMT <ayushi> I can't figure out why this is so

2018-05-08 09:32:03 GMT <ayushi> any help would be greatly appreciated

2018-05-08 09:35:55 GMT <Loftux> ayushi: You probably need to set this to "none" https://github.com/ayushiagrahari95/share-link-expiry-file-and-folder/blob/master/Ev-share-make-public-repo/src/main/resources/alfresco/extension/templates/webscripts/eu/xfel/make-public/doclist.get.desc.xml

2018-05-08 09:35:56 GMT <alfbot> Title: share-link-expiry-file-and-folder/doclist.get.desc.xml at master · ayushiagrahari95/share-link-expiry-file-and-folder · GitHub (at github.com)

2018-05-08 09:36:24 GMT <Loftux> and have a runas https://docs.alfresco.com/5.1/references/api-wsdl-authentication.html

2018-05-08 09:36:25 GMT <alfbot> Title: authentication | Alfresco Documentation (at docs.alfresco.com)

2018-05-08 09:37:14 GMT <ayushi> Loftux,I have tried that also

2018-05-08 09:37:57 GMT <Loftux> Your webscript does not have any other checks to make sure that the supplied nodeRef is one that is actually shared, so this mean it can be used to circumvent security.

2018-05-08 09:38:54 GMT <ayushi> Loftux,plz refer to https://community.alfresco.com/message/832097-re-folder-share-url-is-asking-for-authentication?commentID=832097#comment-832097

2018-05-08 09:38:56 GMT <alfbot> Title: folder share URL is asking for authentication | Alfresco Community (at community.alfresco.com)

2018-05-08 09:39:03 GMT <fwu> hi all

2018-05-08 09:39:08 GMT <Loftux> (unless added later, the github page have errors loading latest commits)

2018-05-08 09:39:58 GMT <ayushi> Loftux,I have tried that also

2018-05-08 09:40:14 GMT <Loftux> ayushi: <authentication runas="admin">none</authentication>

2018-05-08 09:40:14 GMT <Loftux> should work. Again, beware to open a security hole

2018-05-08 09:43:40 GMT <ayushi> Loftux,but I am calling the doclist webscript that should have guest access by appending + "&guest=true" while calling the repo side webscript

2018-05-08 09:44:17 GMT <ayushi> then,how should I set the authentication to none in the webscript

2018-05-08 09:46:34 GMT <Loftux> ayushi: Because if you follow what I said you don't have to set the flag guest, you want to set it to "non". Read the page I linked on authentication

2018-05-08 09:47:10 GMT <ayushi> okie

2018-05-08 09:47:17 GMT <ayushi> I will read the page

2018-05-08 09:47:19 GMT <Loftux> ayushi: Btw, we have a commercial solution for what you want to do https://loftux.se/en/products-and-add-ons/alfresco-add-ons/alfresco-sharebox-2

2018-05-08 09:47:21 GMT <alfbot> Title: Alfresco ShareBox | Loftux (at loftux.se)

2018-05-08 09:48:15 GMT <ayushi> so,u mean that I have to remove the + "&guest=true" while calling the webscript and set the authentication to none in webscript

2018-05-08 09:48:36 GMT <DarkStar1> morning everyone

2018-05-08 09:49:03 GMT <DarkStar1> douglascrp_: ping

2018-05-08 09:49:35 GMT <ayushi> loftux,let me know if I am understanding it correctly

2018-05-08 09:50:37 GMT <bhagyas> Ahoy

2018-05-08 09:58:25 GMT <Loftux> Testing out ASS 1.1.1, for the cores page in Solr Admin, is there intentionally less information than Solr4, or have I missed something in my setup?

2018-05-08 09:59:00 GMT <Loftux> i.e there is no summary report

2018-05-08 11:28:25 GMT <ayushi> Loftux,it is working after doing <authentication runas="admin">none</authentication>

2018-05-08 11:28:51 GMT <ayushi> and calling the webscript as var requestUrl = window.location.protocol + "//" + window.location.host + "/alfresco/s/eu/xfel/make-public/doclist?nodeRef=" + this.options.nodeRef;

2018-05-08 11:29:11 GMT <ayushi> but now the URL is always available

2018-05-08 11:29:17 GMT <ayushi> it never expires

2018-05-08 11:29:38 GMT <ayushi> so,it is of no use for now

2018-05-08 11:29:53 GMT <ayushi> plz guide

2018-05-08 11:32:20 GMT <yreg> ayushi, this channel is meant for collaboration and quick guidance, it is not for "Please do my work for me!"

2018-05-08 11:33:08 GMT <yreg> I suggest you either try to purchase the add-on suggested earlier by loft (and hence benefit from his support on it)

2018-05-08 11:34:13 GMT <yreg> Or you at least try implementing whatever you have as requirement and only turn back to this channel with questions after hitting a road-blocker

2018-05-08 11:35:05 GMT <yreg> And by road blocker, I mean you at least have done some googling / searching on both Alfresco docs and Jive community platform without success

2018-05-08 11:36:12 GMT <yreg> And even then, I would recommend posting your question to community.alfresco.com first....

2018-05-08 11:36:20 GMT <mmuller_> hi guys :)

2018-05-08 11:36:29 GMT <yreg> Hello Martin

2018-05-08 11:36:41 GMT <mmuller_> boa tarde :D

2018-05-08 11:57:06 GMT <bhagyas> xD

2018-05-08 12:08:16 GMT <tushar> hi all !

2018-05-08 12:09:51 GMT <tushar> i have made a custom action that sets a permission required by the user but now i want to revoke them and set the permissions to only the inherited ones

2018-05-08 12:10:11 GMT <tushar> can anyone please help me ho to do that

2018-05-08 12:11:57 GMT <yreg> tushar, you can use the PermissionService to get all permissions on a particular nodeRef, then you will need to iterate over that list and for every unset all locally set permissions

2018-05-08 12:12:18 GMT <yreg> You might also want to make sure permission inheritance is enabled on that node

2018-05-08 12:33:43 GMT <tushar> i have used permission service to get all the permission but how do i " iterate over that list and for every unset all locally set permissions"

2018-05-08 12:34:16 GMT <tushar> i have made sure about permission inheritance is enabled on that node

2018-05-08 12:37:23 GMT <mmuller_> @tushar . Yes I am not familar with the "old" ACS (Alfresco Content Service) stuff but when I try to solve stuff like that I start similar for whar I learned in university. https://en.wikipedia.org/wiki/Divide_and_conquer_algorithm

2018-05-08 12:37:24 GMT <alfbot> Title: Divide and conquer algorithm - Wikipedia (at en.wikipedia.org)

2018-05-08 12:37:36 GMT <mmuller_> Can you maybe devide your big problem in smaller pieces

2018-05-08 12:38:06 GMT <mmuller_> Smaller pieces are more easy to solve. And order them in the right ordering

2018-05-08 12:39:17 GMT <mmuller_> Mhhh devide and conquer metaphor is not really proper for what I mean . But I bet you got what I mean

2018-05-08 12:40:09 GMT <yreg> tushar, org.alfresco.service.cmr.security.AccessPermission#isInherited that's the key ;-)

2018-05-08 12:40:16 GMT <mmuller_> Sorry guys my english still can be little improved :D.

2018-05-08 12:41:10 GMT <yreg> tushar, I just realised my English wasn't that clear, sorry for that, too many things in my mind at the moment ...

2018-05-08 12:41:45 GMT <tushar> thank you so much guys

2018-05-08 12:41:57 GMT <mmuller_> you are welcome. I try to be more often here :)

2018-05-08 12:42:02 GMT <mmuller_> I do not promise :D

2018-05-08 12:43:06 GMT <mmuller_> BTW I will change my name to martin mueller even that is not very identifying :D

2018-05-08 12:43:46 GMT *** mmuller_ is now known as martin--mueller

2018-05-08 12:44:27 GMT <martin--mueller> Grml and here is no spelling check and editing possiblity or?

2018-05-08 12:47:25 GMT <tushar> :-d

2018-05-08 12:47:29 GMT <tushar> :-D

2018-05-08 12:49:07 GMT <yreg> martin--mueller, when someone makes a type they often, send an extra line with a regex for correcting what was written wrong

2018-05-08 12:49:24 GMT <yreg> Other people on the channel usually can interpret that regex :D

2018-05-08 12:49:37 GMT <martin--mueller> Like that !!1

2018-05-08 12:49:42 GMT <martin--mueller> *!!!

2018-05-08 12:49:51 GMT <martin--mueller> I know that but still do not like it :P

2018-05-08 12:49:53 GMT <yreg> s/something/something else/g

2018-05-08 12:50:25 GMT <martin--mueller> We are living in the 21 century it should be possible to change text on the fly :D

2018-05-08 12:50:48 GMT <martin--mueller> Maybe Slack will solve that :D

2018-05-08 12:50:52 GMT <yreg> Well IRC is a dinosaur <grin>

2018-05-08 12:51:11 GMT <martin--mueller> We starting with Slack. Hopefully we can include you guys there

2018-05-08 12:51:46 GMT <martin--mueller> I will pay attention what I see here I promise

2018-05-08 12:51:48 GMT <martin--mueller> :D

2018-05-08 12:52:31 GMT <martin--mueller> I do not want make the wrong impression. currently we are not using Slack but thinking about it

2018-05-08 12:53:15 GMT <yreg> martin--mueller, have you ever peeked at the Dev Logs from the activiti team ?

2018-05-08 12:53:26 GMT <yreg> https://twitter.com/salaboy/status/993758822412976128 as an example

2018-05-08 12:53:52 GMT <yreg> It would be nice if you could convince your team to opt for the same open approach!

2018-05-08 12:53:54 GMT <martin--mueller> nope. But that is one of the problems we would like to solve. Thanks Yreg :)

2018-05-08 12:54:46 GMT <martin--mueller> Wow is twitter? I used twitter many years ago. Is twitter the soluition?

2018-05-08 12:55:13 GMT <yreg> martin--mueller, I wasn't referring to the channel, but to the content

2018-05-08 12:55:15 GMT <martin--mueller> sorry I will read

2018-05-08 12:55:35 GMT <yreg> Being open on what's on the roadmap, planning and milestones

2018-05-08 12:55:50 GMT <yreg> Being open to feedback and discussion on that

2018-05-08 12:55:52 GMT <yreg> ...

2018-05-08 12:58:27 GMT <AFaust> martin--mueller: limited history of (free) slack may be a big problem for the kind of conversations that are going on here

2018-05-08 12:59:17 GMT <AFaust> In most slack systems I have been involved in, I also quite often notice significantly more fragmented / private conversations going on

2018-05-08 13:10:16 GMT * AFaust is annoyed that Alfresco still fails to provide 100% usable Maven artifacts in Nexus.... one of the parent POMs of the Activiti Share Connector is missing and thus build fails

2018-05-08 13:20:26 GMT <douglascrp_> DarkStar1, pong

2018-05-08 13:32:55 GMT <yreg> AFaust, if you want to save more history, you need to pay more :D

2018-05-08 13:34:15 GMT <yreg> AFaust, now that I have looked that up, it seems fairly easy to setup a slack bot to do the job for you : https://slackarchive.io/

2018-05-08 13:34:16 GMT <alfbot> Title: SlackArchive.io - Public chat archive for your Slack team (at slackarchive.io)

2018-05-08 13:34:18 GMT <AFaust> Sure, that's their business model. Keep all the content closer to the vest / harder to access, so people pay the "road tax" for usage

2018-05-08 13:34:45 GMT <yreg> Slack archive does even has an unlimited free plan

2018-05-08 13:35:57 GMT <yreg> s/has/have/

2018-05-08 13:36:01 GMT <AFaust> The modern IT / microservice business: "Let's distribute all the data!" - fun when stuff like GDPR comes around...

2018-05-08 13:36:20 GMT <yreg> hehe

2018-05-08 13:36:23 GMT <AFaust> So I have an archive at slack (which I can't access unless I upgrade) and a (redundant) archive at slackarchive...

2018-05-08 13:37:15 GMT <AFaust> ^^ I meant the "beyond 10.000 message" archive...

2018-05-08 13:43:11 GMT <yreg> Lots of fun ;-)

2018-05-08 15:48:04 GMT <yreg> AFaust, it turns out slack archive is an opensource solution you can run on premises...

2018-05-08 16:03:34 GMT * AFaust groans as he sees Alfresco make the same mistake as newbie community developers - set configuration affecting behaviour of Share in Repository-tier files...

2018-05-08 16:03:49 GMT <AFaust> ^^ APS Share Connector

2018-05-08 16:14:09 GMT <alfbot> mbui: Sent 18 hours and 58 minutes ago: <AFaust> Those messages about The web application [/solr] appears to have started a thread named [MultiThreadedHttpConnectionManager cleanup] but has failed to stop it. This is very likely to create a memory leak can be ignored. This is not actually a memory leak, but an overzealous report of one.

2018-05-08 16:14:10 GMT <alfbot> mbui: Sent 18 hours and 53 minutes ago: <AFaust> Tomcat checks on shutdown if any non-deamon threads have been cleaned up when the individual webapps have been shutdown. During shutdown, Alfresco/SOLR simply discards the reference to the HTTP client object but does not explicitly tell it to shutdown. Since the VM is shutting down anyway, it is not an issue.

2018-05-08 16:14:11 GMT <alfbot> mbui: Sent 18 hours and 52 minutes ago: <AFaust> Regarding SOLR memory + OutOfMemory, I can only say: Always do a heap analysis before changing memory settings. 2 GB are not that much, and depending on number of documents in index and cache size settings they can be (nearly) exhausted, causing OOM when a request needs to load additional data.

2018-05-08 16:14:45 GMT <mbui> Anyone know what this error message means? (Happens on startup and stopping Alfresco from starting)

2018-05-08 16:14:45 GMT <mbui> WARN [scripts.solr.AlfrescoModelsDiff] [http-bio-9080-exec-3] Unable to fetch model changes from /alfresco/service/api/solr/modelsdiff

2018-05-08 16:20:11 GMT <AFaust> mbui: Depends on what detals are provided after that message...

2018-05-08 16:20:25 GMT <AFaust> i.e. is there a 404 error?

2018-05-08 16:23:27 GMT <mbui> No additional messages. It hangs on that message. solr logs showing 4x [SolrTrackerScheduler_Worker-2] Tracking communication timed out.

2018-05-08 16:23:46 GMT <mbui> I have basically similar/same error as this guy: https://community.alfresco.com/thread/207122-unable-to-fetch-model-changes-from-alfrescoserviceapisolrmodelsdiff

2018-05-08 16:23:48 GMT <alfbot> Title: Unable to fetch model changes from /alfresco/se... | Alfresco Community (at community.alfresco.com)

2018-05-08 16:27:52 GMT <AFaust> I suggest to cross reference the access logs for the requests to load model changes, check their duration and potentially alfresco.log for errors

2018-05-08 18:10:24 GMT <sgraham_> I guess there really is no way to get versioning even with webdav

2018-05-08 18:10:29 GMT <sgraham_> wich..really blows

End of Daily Log

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