Alfresco discussion and collaboration. Stick around a few hours after asking a question.
Official support for Enterprise subscribers: support.alfresco.com.
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.
More help is available in this list of resources.
2018-02-21 06:48:51 GMT <tanisha> hi everyone
2018-02-21 06:50:43 GMT <tanisha> I kanow a way in java by using NodeRef parent = nodeService.getPrimaryParent(source).getParentRef();
2018-02-21 07:08:06 GMT <twen> god morning
2018-02-21 07:23:04 GMT <yreg> Morning everyone
2018-02-21 07:23:08 GMT <yreg> morning twen
2018-02-21 07:23:17 GMT <twen> o/
2018-02-21 07:23:18 GMT <yreg> tanisha, node.parent should do !
2018-02-21 07:23:19 GMT <twen> How are you ?
2018-02-21 07:23:23 GMT <yreg> fine fine
2018-02-21 07:29:39 GMT <tanisha> I have done
2018-02-21 07:29:42 GMT <tanisha> var str = model.nodeRef;
2018-02-21 07:29:57 GMT <tanisha> var parentNodeRef = str.parent;
2018-02-21 07:30:28 GMT <tanisha> on printing the value of parentNodeRef,it is giving undefined
2018-02-21 07:40:46 GMT <yreg> if model.nodeRef is of type string, then you need to locate the ScriptNode object first
2018-02-21 07:43:04 GMT <yreg> tanisha, so if you put in "search.findNode(model.nodeRef)"
2018-02-21 07:43:36 GMT <yreg> and you provide a an existing not orphan node
2018-02-21 07:43:57 GMT <yreg> and that node is not in the first level of your store
2018-02-21 07:44:24 GMT <yreg> the parent should give you a valid ScriptNode object
2018-02-21 07:44:54 GMT <yreg> if you then want to access the string representation of that parent noderef use the appropriate accessor for that
2018-02-21 07:59:15 GMT *** alfbot` is now known as alfbot
2018-02-21 08:05:40 GMT <tanisha> when I have written
2018-02-21 08:05:41 GMT <tanisha> var str = search.findNode(model.nodeRef);
2018-02-21 08:05:58 GMT <tanisha> var parentNodeRef = str.parent;
2018-02-21 08:06:30 GMT <tanisha> it is showing "ReferenceError: "search" is not defined. "
2018-02-21 08:12:49 GMT <Loftux> tanisha: explains a lot, there is no "parent" in Share webscripts, only repository (unless the fetch from repo populated a json with the data).
2018-02-21 08:22:32 GMT <alfbot> Title: Surf root objects | Alfresco Documentation (at docs.alfresco.com)
2018-02-21 08:24:15 GMT <tanisha> hi loftux
2018-02-21 08:24:33 GMT *** angelborroy_ is now known as angelborroy
2018-02-21 08:24:40 GMT <Loftux> AFaust: I was more thinking of a higher level concept page/tutorial, not many even understands that Share and Repo are separate applications. Going from there and break down what each does and has available.
2018-02-21 08:24:57 GMT <tanisha> sorry for asking this,but did u mean that parent property is not available in share side js
2018-02-21 08:25:12 GMT <AFaust> You mean this: https://docs.alfresco.com/community/concepts/dev-arch-overview.html
2018-02-21 08:25:13 GMT <alfbot> Title: Alfresco Community Edition architecture | Alfresco Documentation (at docs.alfresco.com)
2018-02-21 08:25:14 GMT <Loftux> tanisha: yes
2018-02-21 08:25:33 GMT <tanisha> thanks loftux
2018-02-21 08:26:46 GMT <fcorti> Morning all, morning Loftux and AFaust
2018-02-21 08:27:36 GMT <fcorti> Loftux, does the page AFaust shared enough for you?
2018-02-21 08:29:29 GMT <Loftux> AFaust: That could be it, but then maybe also something that spells it out the common misunderstanding of the concept/separation of Share and Repo. Users coming here wants the quick fix… that is a lot of reading (they should)
2018-02-21 08:30:18 GMT <AFaust> So, an essentially an "Alfresco for (impatient) Dummies" overview?
2018-02-21 08:30:34 GMT <Loftux> tanisha: Study the page AFaust linked earlier
2018-02-21 08:31:43 GMT <Loftux> AFaust: Yea, something that can be linked in MOTD and pasted whenever we stumble upon this
2018-02-21 08:32:32 GMT <fcorti> Maybe the green picture, below in the page can help.
2018-02-21 08:32:53 GMT <fcorti> https://docs.alfresco.com/sites/docs.alfresco.com/files/public/images/docs/defaultcommunity/alfresco_overview.png
2018-02-21 08:32:58 GMT <tanisha> okie loftux I will study this
2018-02-21 08:33:25 GMT <fcorti> Then you could point them of the Alfresco Community Edition architecture page
2018-02-21 08:34:04 GMT <fcorti> and if they want more details, the page below
2018-02-21 08:34:05 GMT <fcorti> https://docs.alfresco.com/community/concepts/dev-extensions-share-architecture-extension-points.html
2018-02-21 08:34:06 GMT <alfbot> Title: Share Architecture | Alfresco Documentation (at docs.alfresco.com)
2018-02-21 08:34:20 GMT <tanisha> Loftux,just one more thing is how to find the parent of a noderef in share side js
2018-02-21 08:35:26 GMT <Loftux> tanisha: That you will understand when you read the docs (i.e if not returned by the repo webscript, you would have to do a remote call from share to repo)
2018-02-21 08:37:26 GMT <tanisha> so you mean I have to call the webscript that gives the parent of a noderef
2018-02-21 08:38:17 GMT <Loftux> fcorti: It actually looks very solid these docs, I just didn't find them the other day, I usually start from the search page, and search has a lot to wish for…
2018-02-21 08:42:42 GMT <fcorti> Loftux: good! (thanks to AFaust) Yes, search is a weakness of the entire documentation's website. The good news is that we are starting to face it.
2018-02-21 08:43:16 GMT *** ChanServ sets mode: +o fcorti
2018-02-21 08:45:24 GMT *** fcorti changes topic to "Alfresco discussion and collaboration. Stick around a few hours after asking a question. Logs: http://chat.alfresco.com Channel help: https://community.alfresco.com/ Official support for Enterprise subscribers: http://support.alfresco.com. Next event is Office Hours, the 23rd of February, on presenting the Alfresco 6 new features: https://youtu.be/cXzlmVhKefw."
2018-02-21 09:37:35 GMT <yreg> fcorti, this new doc for share and surf is awesome
2018-02-21 09:38:29 GMT <yreg> it's a shame that it took this long for it to come
2018-02-21 09:39:44 GMT <fcorti> yreg: kudos to documentation's team.
2018-02-21 09:45:52 GMT <owerfelli> Morning all !
2018-02-21 09:47:44 GMT <owerfelli> please, is there a way to create a custom url filter programmatically in Alfresco ?
2018-02-21 09:50:59 GMT <owerfelli> I'm tried to add a HandlerInterceptor but it doesn't work
2018-02-21 10:10:26 GMT <dgradecak> morning all
2018-02-21 10:11:11 GMT <dgradecak> I must be missing something about process services, is that intended to be a commercial service only?
2018-02-21 10:11:48 GMT <dgradecak> I though we could run it also like the search services, but seems it is not
2018-02-21 10:13:55 GMT <angelborroy> owerfelli something like this? https://github.com/keensoft/alfresco-agreement-filter/blob/master/agreement-filter-share/src/main/java/es/keensoft/share/filter/AgreementFilter.java
2018-02-21 10:13:56 GMT <alfbot> Title: alfresco-agreement-filter/AgreementFilter.java at master · keensoft/alfresco-agreement-filter · GitHub (at github.com)
2018-02-21 10:14:26 GMT <angelborroy> dgradecak you can use Activiti Community
2018-02-21 10:14:37 GMT <angelborroy> dgradecak what are you missing?
2018-02-21 10:16:00 GMT <dgradecak> was expecting to see something like "process services" on the community page too, not much more
2018-02-21 10:16:41 GMT <angelborroy> https://community.alfresco.com/community/bpm
2018-02-21 10:16:43 GMT <yreg> dgradecak, it's the enterprise version of activiti
2018-02-21 10:16:44 GMT <alfbot> Title: Alfresco Process Services & Activiti (BPM) | Alfresco Community (at community.alfresco.com)
2018-02-21 10:16:51 GMT <angelborroy> https://www.activiti.org/download-bpm?_ga=2.32515901.2006487214.1519028598-1400640241.1358545795
2018-02-21 10:16:52 GMT <alfbot> Title: Download Now | Activiti.org (at www.activiti.org)
2018-02-21 10:17:05 GMT <yreg> they just tried to make it have a very different name to avoid confusion
2018-02-21 10:17:10 GMT <angelborroy> It looks like Activiti is Community and APS is Enteprise
2018-02-21 10:17:58 GMT <dgradecak> angelborroy: that is what I ma talking about
2018-02-21 10:18:12 GMT <yreg> dgradecak, if your project can wait, you are probably better off waiting for activiti 7 to be released, it's gonna be far more interesting than 6 or 5
2018-02-21 10:20:27 GMT <owerfelli> angelborroy, I'm searching a way to add a filter programmatically, with this type of filters I should add a configuration in web.xml, but if there is no way I will make a filter like that
2018-02-21 10:21:01 GMT <angelborroy> owerfelli did you check the sample I gave you?
2018-02-21 10:21:08 GMT <angelborroy> It’s exactly that
2018-02-21 10:21:23 GMT <angelborroy> you can use annotations or web-fragments
2018-02-21 10:21:34 GMT <angelborroy> just not to change Alfresco default web.xml
2018-02-21 10:22:16 GMT <owerfelli> ah, it works without configuration ?
2018-02-21 10:22:18 GMT <yreg> angelborroy, does that annotation gets discovered automatically or did you have to add something to a context file ?
2018-02-21 10:22:34 GMT <angelborroy> it’s discovered automatically
2018-02-21 10:22:39 GMT <yreg> nice
2018-02-21 10:22:43 GMT <angelborroy> but you cannot configure the order
2018-02-21 10:22:51 GMT <angelborroy> is then only thing missing (afaik)
2018-02-21 10:22:52 GMT <yreg> wasn't aware that was possible!
2018-02-21 10:23:03 GMT <yreg> that was my nex question hehe
2018-02-21 10:23:22 GMT <owerfelli> so it works with the annotation
2018-02-21 10:23:28 GMT <angelborroy> yes
2018-02-21 10:23:38 GMT <yreg> I was going to ask if it would be possible to set it to be before or after an other filter
2018-02-21 10:23:43 GMT <owerfelli> thanks, I will try
2018-02-21 10:40:47 GMT <owerfelli> I'm on Alfresco CE 4.2.c and @WebFilter not available in this version, because it uses Dynamic Web Module facet 2.4 and this annotation available only with 3.0
2018-02-21 10:42:03 GMT <angelborroy> owerfelli then you have to modify web.xml
2018-02-21 10:43:31 GMT <angelborroy> owerfelli this kind of patch https://github.com/keensoft/alf-21757-repo
2018-02-21 10:43:32 GMT <alfbot> Title: GitHub - keensoft/alf-21757-repo: Patch to ALF-21757 and ALF-21521 (at github.com)
2018-02-21 10:45:45 GMT <dgradecak> owerfelli: I did not follow the begining but you could use spring mvc with alfresco-mvc
2018-02-21 10:45:55 GMT <dgradecak> and therfore use any interceptor etc easily
2018-02-21 10:46:25 GMT <dgradecak> sure alfresco-mvc is a separate module that allows spring mvc in alfresco without changing anything since it is a webscript
2018-02-21 10:46:53 GMT <dgradecak> works on your version and on any alfresco version
2018-02-21 10:47:02 GMT <ankur> hello everyone,
2018-02-21 10:47:30 GMT <fcorti> hi ankur
2018-02-21 10:48:00 GMT <owerfelli> <angelborroy> you think that will not affect general behavior if I modify web.xml version ?
2018-02-21 10:48:27 GMT <ankur> can anyone tell me if there is any out of the box webscript that gives the parent folder of a node in alfresco
2018-02-21 10:48:31 GMT <angelborroy> you can modify general behaviour, but it looks like is what you are trying to do
2018-02-21 10:48:39 GMT <angelborroy> owerfelli what are you trying to do?
2018-02-21 10:50:09 GMT <angelborroy> ankur not by default
2018-02-21 10:52:25 GMT <ankur> angelborroy,so if we need to get the parent of a node in share-side js,then it means that we have to write our own webscript
2018-02-21 10:52:43 GMT <angelborroy> I think so
2018-02-21 10:52:56 GMT <angelborroy> but probably you can also use something from “slingshot” webscrips family
2018-02-21 10:53:19 GMT <angelborroy> these are scripts for Share, but now I’m sure that they are not going to be changed in years
2018-02-21 10:53:20 GMT <owerfelli> angelborroy: I want to prevent some users to access some url referring to custom conditions
2018-02-21 10:53:27 GMT <angelborroy> So they can be considered safe to use
2018-02-21 10:53:44 GMT <angelborroy> owerfelli in Share or in Repo?
2018-02-21 10:53:54 GMT <owerfelli> in Share
2018-02-21 10:54:27 GMT <angelborroy> so you can use some Surf configuration for that
2018-02-21 10:54:29 GMT <angelborroy> let me find it
2018-02-21 10:54:43 GMT <ankur> @angelborroy u mean webscripts from slingshot family
2018-02-21 10:55:13 GMT <angelborroy> http://locahost:8080/alfresco/s/slingshot...
2018-02-21 10:58:25 GMT <angelborroy> owerfelli IMO you should create a new web-fragmet like this https://github.com/covolution/enablecors/blob/master/src/main/resources/META-INF/web-fragment.xml
2018-02-21 10:58:26 GMT <alfbot> Title: enablecors/web-fragment.xml at master · covolution/enablecors · GitHub (at github.com)
2018-02-21 10:58:30 GMT <angelborroy> And include your own Filter
2018-02-21 10:58:41 GMT <angelborroy> I don’t see any other way to get it running
2018-02-21 11:01:30 GMT <owerfelli> I will try, thanks a lot angelborroy
2018-02-21 14:10:21 GMT *** CptLuxx_ is now known as CptLuxx
2018-02-21 14:56:51 GMT <yreg> resplin, ping
2018-02-21 16:42:55 GMT <MorganP> Anybody knows where is the deletion time recorded in the database?
2018-02-21 16:43:02 GMT <MorganP> before I start looking everywhere
2018-02-21 16:47:13 GMT <MorganP> I meant while the document is still in the trashcan
2018-02-21 16:47:21 GMT <MorganP> at that time, the orphan_time is still NULL normally
2018-02-21 16:47:46 GMT <bmejias> hi MorganP
2018-02-21 16:47:57 GMT <bmejias> I'm checking the alf_node table;
2018-02-21 16:47:58 GMT <MorganP> But Share knows when it has been deleted since it is printed on the UI... So just wondering where this information is kept since it is apparently not the audit_modifier
2018-02-21 16:48:21 GMT <bmejias> I'm observing the same
2018-02-21 16:49:00 GMT <bmejias> a node on the archive store (trashcan) with NULL on the audit_modified column
2018-02-21 16:51:18 GMT <MorganP> Yes absolutely...
2018-02-21 16:51:46 GMT <MorganP> A customer asked me a query to retrieve information about items in the trashcan so I gave him a query found on one of my blog post
2018-02-21 16:51:55 GMT <MorganP> but he also asked me to have the deletion time
2018-02-21 16:51:59 GMT <MorganP> and that I cannot find :D
2018-02-21 16:55:41 GMT <bmejias> me neither.
2018-02-21 16:56:00 GMT <bmejias> probably the sample db I'm using is too empty/vanilla
2018-02-21 16:57:46 GMT <MorganP> Ok I will continue this later
2018-02-21 16:57:56 GMT <MorganP> Thanks for the check bmejias
2018-02-21 16:58:17 GMT <bmejias> just to complete the search
2018-02-21 16:58:50 GMT <bmejias> I loaded another database, and in that I can observed the audit_modified value as valid when the alf_node is on the archive store
2018-02-21 16:59:05 GMT <bmejias> so, I assume that would be the query
2018-02-21 16:59:56 GMT <MorganP> Hm I will recheck tomorrow then because I saw some dates that I think didn't match
2018-02-21 17:00:01 GMT <MorganP> Thanks
2018-02-21 17:00:24 GMT <bmejias> select audit_modified from alf_node where store_id='<the id of the archive store>' and uuid='<?>';
2018-02-21 17:00:26 GMT <bmejias> something like that
2018-02-21 17:00:28 GMT <bmejias> cheers
2018-02-21 17:03:23 GMT <resplin> yreg: Sorry, lots of meetings today.
2018-02-21 17:03:30 GMT <resplin> But we are going to have a Community Edition release ready tomorrow!
2018-02-21 17:03:40 GMT <resplin> The ACS 6.0 EA probably won't be ready until next month.
2018-02-21 17:04:09 GMT <resplin> (fcorti and I were just discussing how we get your team access to the Docker images, and it unfortunately isn't ready yet.)
The other logs are at http://esplins.org/hash_alfresco