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

2017-02-08 08:41:02 GMT <twen> 'morning

2017-02-08 09:21:02 GMT <Sumit> Hi, How I can find the controller class/ service method if I hjave request URL

2017-02-08 09:21:33 GMT <Sumit> for ex: I have the url alfresco/slingshot/doclib/action/aspects/node/{noderef}

2017-02-08 09:22:05 GMT <Sumit> to add the aspects. How can I get to know where the service method is written???

2017-02-08 09:24:28 GMT <qwebirc19986> Hi, How I can find the controller class/ service method if I hjave request URL

2017-02-08 09:24:35 GMT <qwebirc19986> for ex: I have the url alfresco/slingshot/doclib/action/aspects/node/{noderef}

2017-02-08 09:31:28 GMT <angelborroy> qwebirc19986 http://localhost:8080/alfresco/s/

2017-02-08 09:31:41 GMT <angelborroy> you have the web scripts reference under that URL

2017-02-08 09:36:43 GMT <qwebirc19986> Yes, this /slingshot/doclib/action/aspects/node/{store_type}/{store_id}/{id} reference in action.post.desc.xml

2017-02-08 09:37:35 GMT <qwebirc19986> but where is the service url & controller config?

2017-02-08 09:38:12 GMT <qwebirc19986> I have the request call but don't know where is the service method?

2017-02-08 09:38:54 GMT <DarkStar1> Bonjour a tous

2017-02-08 09:40:56 GMT <qwebirc19986> mapping of urls & service methods/class?

2017-02-08 09:51:24 GMT <DarkStar1> qwebirc19986: what are you asking?

2017-02-08 09:54:54 GMT <Sumit> Hi, I want to do some changes in addAspect service method. I get to know the request url is "alfresco/slingshot/doclib/action/aspects/node/{noderef}" on adding an aspect.

2017-02-08 09:55:30 GMT <Sumit> but I am searching the service method for this call and unable to find??

2017-02-08 09:58:00 GMT <DarkStar1> Sumit: https://github.com/Alfresco/community-edition-old/blob/V5.0.d/root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/action/add-child.post.json.js

2017-02-08 09:58:01 GMT <alfbot> Title: community-edition-old/add-child.post.json.js at V5.0.d · Alfresco/community-edition-old · GitHub (at github.com)

2017-02-08 09:59:01 GMT <DarkStar1> Sumit: that's the webscript controller for the call.

2017-02-08 09:59:14 GMT <AFaust> ^^ DarkStar1: Are you sure you picked the right one? The URL mentions "aspects"

2017-02-08 10:00:06 GMT <DarkStar1> AFaust: this is the desc.xml for that url: https://github.com/Alfresco/community-edition-old/blob/V5.0.d/root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/action/aspects.post.desc.xml

2017-02-08 10:00:07 GMT <alfbot> Title: community-edition-old/aspects.post.desc.xml at V5.0.d · Alfresco/community-edition-old · GitHub (at github.com)

2017-02-08 10:00:25 GMT <AFaust> That looks better

2017-02-08 10:00:45 GMT <AFaust> You posted the add-child.post.json.js before - that is what I was referring to with "are you sure"

2017-02-08 10:01:08 GMT <DarkStar1> AFaust: oops!!! Well spotted :/

2017-02-08 10:01:24 GMT <DarkStar1> Sumit: apologies https://github.com/Alfresco/community-edition-old/blob/V5.0.d/root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/action/aspects.post.json.js is what you want

2017-02-08 10:01:25 GMT <alfbot> Title: community-edition-old/aspects.post.json.js at V5.0.d · Alfresco/community-edition-old · GitHub (at github.com)

2017-02-08 10:09:09 GMT <Sumit> Thanks @DarkStar1, @AFaust, @alfbot

2017-02-08 10:09:13 GMT <Sumit> Thanks alot

2017-02-08 10:09:33 GMT <Sumit> going through with the file

2017-02-08 11:25:05 GMT <yreg> Guys, QQ: Should I expect an Odd value if I create a new node, and then lookup its cm:created property in the same transaction ?

2017-02-08 11:25:24 GMT <yreg> I am getting values from the future !!!

2017-02-08 11:25:54 GMT <yreg> by future I mean few months ahead !

2017-02-08 11:29:55 GMT <Tichodroma> "should I expect"? no, you should not :)

2017-02-08 11:33:34 GMT <Hiten> Hello, I want to create a custom template for my field that will be populated with the version number as a dropdown for that particular node

2017-02-08 11:35:01 GMT <Hiten> is there a way I can call version webscript that will return all the versions of the node and then I can display all the versions

2017-02-08 11:36:05 GMT <Tichodroma> Hiten: if you use JS, you can unse the versions API of a ScriptNode

2017-02-08 11:37:29 GMT <Hiten> I can do a remote call to version webscript from share controller but how can I call it from my custom ftl template

2017-02-08 11:59:04 GMT <AFaust> yreg: Is your server running in the correct timezone / with a correctly set clock?

2017-02-08 12:01:03 GMT <yreg> AFaust, I assume so, since I get correct timings after transaction commit when I check the node properties

2017-02-08 12:03:48 GMT <yreg> AFaust, also commandline date on the server says : Wed Feb 8 13:03:25 CET 2017

2017-02-08 14:15:20 GMT <fcorti> In 45 minutes the Tech Talk Live #102 will start here

2017-02-08 14:15:22 GMT <fcorti> https://www.alfresco.com/events/webinars/tech-talk-live-102-v1-rest-apis

2017-02-08 14:15:23 GMT <alfbot> Title: Tech Talk Live #102: v1 REST APIs | Alfresco (at www.alfresco.com)

2017-02-08 14:15:37 GMT <fcorti> Today about Alfresco REST API v1 with Gavin Cornwell

2017-02-08 14:51:27 GMT <yreg> is there a way to have the URL for the stream without having to fill in contact details again ?

2017-02-08 14:54:59 GMT <angelborroy> yreg, yes, waiting for fcorti posting here :D

2017-02-08 14:58:03 GMT <fcorti> Here the link

2017-02-08 14:58:04 GMT <fcorti> http://youtu.be/cpSksoy-zkk

2017-02-08 14:58:16 GMT <fcorti> Starting in few minutes

2017-02-08 15:00:31 GMT <fcorti> We are live

2017-02-08 15:01:07 GMT <yreg> started a few minutes earlier than schedule :)

2017-02-08 15:01:19 GMT * resplin is scrambling to jioin

2017-02-08 15:01:32 GMT <yreg> s/minutes/seconds/

2017-02-08 15:02:17 GMT -yreg- In case any one has missed it, TTL 102 is online : http://youtu.be/cpSksoy-zkk

2017-02-08 15:02:33 GMT <alfbot> kgastaldo: Sent 1 day, 20 hours, and 58 minutes ago: <AFaust> Is it me or does the community.alfresco.com platform replace line delimiters when editing a syntax highlighting block? Line endings get lost that way and it is very annoying to correct these for proper display...

2017-02-08 15:14:15 GMT <resplin> Whoop, we lost Gavin.

2017-02-08 15:14:27 GMT <resplin> Oh, good he is back.

2017-02-08 15:14:28 GMT <fcorti> few seconds

2017-02-08 15:21:01 GMT <kgastaldo> @Axel - Sorry for the delay on responding. I regards to the Jive platform, is this editing after you post? Like changing an existing doc?

2017-02-08 15:24:40 GMT <fcorti> Tech Talk Live #102 about REST API is live here

2017-02-08 15:24:41 GMT <fcorti> https://www.youtube.com/watch?v=cpSksoy-zkk

2017-02-08 15:25:11 GMT <AFaust> kgastaldo: Yes, it is editing after I posted a comment / reply

2017-02-08 15:25:43 GMT <AFaust> I.e. when I just want to correct a small typo in a large example code snippet I provided...

2017-02-08 15:26:00 GMT <yreg> You can create people when you are not admin ?

2017-02-08 15:26:31 GMT <fcorti> done

2017-02-08 15:26:43 GMT <AFaust> I wouldn't mind loosing the technical line breaks only in the edit view, but it does have an effect on how it is displayed too, e.g. when I don't correct it and just hit save again

2017-02-08 15:27:04 GMT <AFaust> yreg: It depends on which route the call takes, but yes

2017-02-08 15:27:43 GMT <AFaust> E.g. I have seen some bad implementation code that "assumed" a user was existing and just called getPerson(userName), creating new cm:person objects on the fly

2017-02-08 15:28:02 GMT <AFaust> Problem was that the "userName" part could be freely provided by an end user

2017-02-08 15:28:16 GMT <Yaz> Can you export the PostMan collection and add it as an attachment to the video? So we can play with it?

2017-02-08 15:28:36 GMT <fcorti> asking...

2017-02-08 15:29:06 GMT <AFaust> yreg: And since getPerson does not require admin privileges (as opposed to createPerson()) it can create all the cm:person nodes it needs

2017-02-08 15:29:29 GMT <yreg> hh

2017-02-08 15:29:45 GMT <AFaust> yreg: And even if the transaction is read-only, it will work because getPerson creates a nested read-write transaction in that case

2017-02-08 15:30:24 GMT <Yaz> Thank you

2017-02-08 15:30:29 GMT <resplin> fcorti: Should put a link to the slides in the video description.

2017-02-08 15:30:35 GMT <fcorti> Yaz: you are welcome

2017-02-08 15:30:47 GMT <fcorti> resplin: ok, will do

2017-02-08 15:30:53 GMT <ohej> Might be worth just extracting that link and put it directly into the video description when you're done :)

2017-02-08 15:30:57 GMT <AFaust> yreg: I forgot there is a TTL one - I hope I didn't pull your question out of context (I am still working here)

2017-02-08 15:32:36 GMT <yreg> np, assumed so already, I just asked because Gavin highlited that you need admin right to update people but did not mention that in regards to creating people, where I think he should've done the opposite

2017-02-08 15:32:44 GMT <yreg> creation does need admin rights

2017-02-08 15:32:54 GMT <yreg> and updating does not always need admin right

2017-02-08 15:33:01 GMT <binduwavell> @fcorti , while not part of the v1 API, there is a good restful endpoint for inspecting the model in a lot of detail. I believe it is called the classes API

2017-02-08 15:33:12 GMT <yreg> unless the modified person is not the same as the connected user

2017-02-08 15:34:00 GMT <ohej> Yeah creating users requires admin. Admin can also update any user, but non-admin users can only update their own user

2017-02-08 15:34:15 GMT <fcorti> binduwavell is it the one in the "private" area Gavin was mentioned?

2017-02-08 15:34:36 GMT <ohej> There's both a v0 and a private v1 that does similar things

2017-02-08 15:34:37 GMT <resplin> binduwavell: We have a long term plan to replace the classes API with a v1 version. But I believe you can also inspect the model via CMIS.

2017-02-08 15:34:43 GMT <ohej> I believe the one binduwavell means is a v0?

2017-02-08 15:35:29 GMT <binduwavell> I don't remember you can find it from/alfresco/s/index , so I guess it's not the one used by the model manager. It has also been around for a long time.

2017-02-08 15:35:46 GMT <AFaust> resplin: CMIS hides some classes, abstracts away some details - not usable for most cases unless you can standardize on the abstract CMIS layer

2017-02-08 15:37:34 GMT <ohej> Link to the API Explorer: https://api-explorer.alfresco.com

2017-02-08 15:37:37 GMT <alfbot> Title: Alfresco API Explorer (at api-explorer.alfresco.com)

2017-02-08 15:40:04 GMT <yreg> hehe sounds like alfresco is working on a 2 factor authentication module

2017-02-08 15:40:37 GMT * yreg can see a Twilio tab in postman; sounds like Gavin was experimenting with Twilio API

2017-02-08 15:49:37 GMT <resplin> yreg: Customers who need 2 factor auth should look at the SAML module

2017-02-08 15:51:50 GMT <sujaypillai> Can you ask Gavin to post that collection url into the youtube chat

2017-02-08 15:51:51 GMT <sujaypillai> ?

2017-02-08 15:52:17 GMT <yreg> done

2017-02-08 15:52:18 GMT <resplin> sujaypillai: fcorti is planning on adding it to the video description

2017-02-08 15:52:35 GMT <sujaypillai> thanks

2017-02-08 15:53:06 GMT <fcorti> :-)

2017-02-08 16:01:31 GMT <resplin> Thank you Gavin!

2017-02-08 16:03:37 GMT <binduwavell> Why is there no version info in the URL for discovery?

2017-02-08 16:04:21 GMT <binduwavell> I'm lagging, but big thanks too the team for sharing this great material!

2017-02-08 16:06:11 GMT <ohej> binduwavell: we discussed that quite a bit

2017-02-08 16:06:30 GMT <ohej> the thinking is that the discovery api is essential when building a client and it should be the #1 thing to ping to know about the capabilities

2017-02-08 16:07:14 GMT <ohej> for example, imagine in the future when we have 3 different versions of the APIs

2017-02-08 16:07:27 GMT <ohej> from a API client point of view, how would you know? (other than trial and error)

2017-02-08 16:07:35 GMT <ohej> but pinging the discovery api could tell you

2017-02-08 16:07:42 GMT <binduwavell> So you guys simply may never make backward incompatible changes to this endpoint. Seams reasonable in this case...

2017-02-08 16:19:12 GMT <fcorti> I updated the video description with the links to the slides and postman collection (thanks to Gavin) Yaz

2017-02-08 16:19:15 GMT <fcorti> https://www.getpostman.com/collections/e28cf833734602fb4609

2017-02-08 16:19:20 GMT <fcorti> http://www.slideshare.net/gavincornwell/tech-talk-live-52-rest-apis

2017-02-08 16:19:21 GMT <alfbot> Title: Tech Talk Live - 5.2 REST APIs (at www.slideshare.net)

2017-02-08 17:17:27 GMT <jaawerth> I have a folder rule that automatically disables permission inheritance, and then sets a few permissions. It works, but one thing I noticed is that Site Owners can no longer see or control the folder either when I do it this way. I set the perms with the ScriptNode API and am trying to add the Site Owners to the folder with document.setPermission('Coordinator', 'site_content-library_SiteManager'); but it doesn't seem to like it - is what I'm attempting

2017-02-08 17:17:28 GMT <jaawerth> possible?

2017-02-08 17:42:05 GMT <jaawerth> hmm weird, I have it adding it such that it adds a cordinator with a blank name in the permissions, but when I delete that, THEN it adds the site_content-library_SiteManager

2017-02-08 17:44:04 GMT <jaawerth> I suppose the ScriptNode API bypasses the site stuff, and then the act of modifying it through the documentLibrary triggers whatever automatically gives the site owner access

2017-02-08 18:22:57 GMT <jaawerth> ahh, just needed to use <site>.setPermissions(node, perms) instead and it handles the owner automatically

2017-02-08 18:22:58 GMT <jaawerth> nice

2017-02-08 21:27:37 GMT *** david__ is now known as David-C

End of Daily Log

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