<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: getChildAssocs(NodeRef) not returning all child nodes? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120916#M85225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are correct there is a timeout that will cause this - you can modify these properties from repository.properties by overriding them using the usual extension pattern:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;#&lt;BR /&gt;# Properties to limit resources spent on individual searches&lt;BR /&gt;#&lt;BR /&gt;# The maximum time spent pruning results&lt;BR /&gt;system.acl.maxPermissionCheckTimeMillis=10000&lt;BR /&gt;# The maximum number of results to perform permission checks against&lt;BR /&gt;system.acl.maxPermissionChecks=1000&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kev&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2009 09:10:13 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2009-06-05T09:10:13Z</dc:date>
    <item>
      <title>getChildAssocs(NodeRef) not returning all child nodes?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120910#M85219</link>
      <description>Hello,I am using Alfresco 2.1 Community, and I am trying to retrieve all the child nodes of a folder (sourceDir). So I use this code:ApplicationContext context = ApplicationContextHelper.getApplicationContext();ServiceRegistry serviceRegistry = (ServiceRegistry) context.getBean(ServiceRegistry.SERVI</description>
      <pubDate>Fri, 14 Dec 2007 09:05:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120910#M85219</guid>
      <dc:creator>fnduy</dc:creator>
      <dc:date>2007-12-14T09:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: getChildAssocs(NodeRef) not returning all child nodes?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120911#M85220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What users are you logging in as? Permissions are applied to the nodes and they are filtered out if the user does not have at least READ. Also, are you pointing to the same alf_data store when in debug mode?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 10:35:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120911#M85220</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2008-01-10T10:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: getChildAssocs(NodeRef) not returning all child nodes?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120912#M85221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; please tell how to use ApplicationContext..is that a class you created? If so, please show me how it looks like..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that i don't know how to give the path to a node, root for example, and involving this, what should be done before that..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to list the files of a folder, and also the files for a specific user..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; sidra&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 08:35:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120912#M85221</guid>
      <dc:creator>sidra</dc:creator>
      <dc:date>2008-03-27T08:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: getChildAssocs(NodeRef) not returning all child nodes?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120913#M85222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a similar error. I call getChildAssocs() on a ScriptNode object and when not running in debug mode (-Xdebug) I always get a NullPointer at org.alfresco.repo.jscript.ScriptNode.getChildAssocs(ScriptNode.java:510). But when debugging and stepping through the code I retrieve all the child associations (which are expected to be there…) Looking at the code in ScriptNode it seems most likely that the current javascript context is null when not stepping.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(I am running Alfresco Enterprise 2.2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Carl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:09:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120913#M85222</guid>
      <dc:creator>calle</dc:creator>
      <dc:date>2008-08-27T07:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: getChildAssocs(NodeRef) not returning all child nodes?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120914#M85223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An issue has been reported on this, see &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/jira/browse/ALFCOM-1666" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/jira/browse/ALFCOM-1666&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 09:43:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120914#M85223</guid>
      <dc:creator>calle</dc:creator>
      <dc:date>2008-08-27T09:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: getChildAssocs(NodeRef) not returning all child nodes?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120915#M85224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i don't think that NPE is related with the problem reported by fnduy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we had similar problem with WCM deployments report.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we implemented a method to automatically deploy all submitted contents and after only 7 days we started to notice performance issues and strange behavior including errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we investigated the problem and found out that the performance issue was caused by "too much deployment reports inside the webproject node" and the strange behavior/errors was caused by the getChildAssocs() not returning all nodes but only "someone of them" apparently at random.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it seems like if there is a timeout somewhere on that call that stop extracting child when it is reached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This means, for example, that when you cycle the webproject children to search for webusers or webforms you may not found some of them or, if there are many many reports (as in our case) you may either not found any of them at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;may be this is something related to the Database+Alfresco (which is oracle for us) or Architecture+Alfresco, we don't know at the moment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are further investigating and then we will officially report the issue to alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please provide any additional information on that issue, did you solved it? what database were you using? On which operating system (our was Linux)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we are using the 2.2 enterprise sp4.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 07:26:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120915#M85224</guid>
      <dc:creator>d_segato</dc:creator>
      <dc:date>2009-06-05T07:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: getChildAssocs(NodeRef) not returning all child nodes?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120916#M85225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are correct there is a timeout that will cause this - you can modify these properties from repository.properties by overriding them using the usual extension pattern:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;#&lt;BR /&gt;# Properties to limit resources spent on individual searches&lt;BR /&gt;#&lt;BR /&gt;# The maximum time spent pruning results&lt;BR /&gt;system.acl.maxPermissionCheckTimeMillis=10000&lt;BR /&gt;# The maximum number of results to perform permission checks against&lt;BR /&gt;system.acl.maxPermissionChecks=1000&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kev&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 09:10:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120916#M85225</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2009-06-05T09:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: getChildAssocs(NodeRef) not returning all child nodes?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120917#M85226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Kevin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was aware of this issue on the DM but I never encounter it since I've always worked with WCM 2.1 until lately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Increasing that value would only delay our problems to a later time (when deploymentattempts will be enough to brake the new limit)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use the unprotected node service (not proxed) it should always return me all the results, right? (either nodeService and Lucene)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think we have a bug here with deployment attempts management but this is off topic so I will not discuss this further here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 09:35:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120917#M85226</guid>
      <dc:creator>d_segato</dc:creator>
      <dc:date>2009-06-05T09:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: getChildAssocs(NodeRef) not returning all child nodes?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120918#M85227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The unprotectednodeservice will be much faster and yes will not be impacted by permission checks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kev&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 09:45:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getchildassocs-noderef-not-returning-all-child-nodes/m-p/120918#M85227</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2009-06-05T09:45:31Z</dc:date>
    </item>
  </channel>
</rss>

