<?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: Integrity Check problem when adding a node? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/integrity-check-problem-when-adding-a-node/m-p/119220#M84051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The cm:name field (the first parameter to the createNode() call) has restriction on the characters that can be used - so it is valid for CIFS/FTP/Windows/Webdav etc.etc. as this is the actual display name of the node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this is correct:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.addAspect("app:configurable");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj = obj.createNode("Some Config Folder", "app:configurations", "app:configurations");&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;You say:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;then the name of the resulting association is "cm:configurations"&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The association name should be 'app:configurations' as that is the third param to the call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've just tested this with a quick test script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;document.addAspect("app:configurable");&lt;BR /&gt;document.createNode("Some Config Folder", "app:configurations", "app:configurations");&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Running this (as a script action) against a document and then examining the document in the Node Browser shows that it has a single child node with the association type:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/application/1.0}configurations" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/application/1.0}configurations&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;and name of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}Some" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}Some&lt;/A&gt;&lt;SPAN&gt; Config Folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which is correct.&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>Wed, 24 Oct 2007 14:28:54 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2007-10-24T14:28:54Z</dc:date>
    <item>
      <title>Integrity Check problem when adding a node?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/integrity-check-problem-when-adding-a-node/m-p/119219#M84050</link>
      <description>Can someone please help me understand what's going on here?&amp;nbsp; Why does this:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.addAspect("app:configurable");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj = obj.createNode("app:configurations", "app:configurations", "app:configurations");‍‍‍produce this error:Invalid property value: &amp;nbsp;&amp;nbsp; Node: workspace://SpacesStore/c3764e1f-</description>
      <pubDate>Wed, 24 Oct 2007 13:59:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/integrity-check-problem-when-adding-a-node/m-p/119219#M84050</guid>
      <dc:creator>blatwurst</dc:creator>
      <dc:date>2007-10-24T13:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Integrity Check problem when adding a node?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/integrity-check-problem-when-adding-a-node/m-p/119220#M84051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The cm:name field (the first parameter to the createNode() call) has restriction on the characters that can be used - so it is valid for CIFS/FTP/Windows/Webdav etc.etc. as this is the actual display name of the node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this is correct:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.addAspect("app:configurable");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj = obj.createNode("Some Config Folder", "app:configurations", "app:configurations");&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;You say:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;then the name of the resulting association is "cm:configurations"&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The association name should be 'app:configurations' as that is the third param to the call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've just tested this with a quick test script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;document.addAspect("app:configurable");&lt;BR /&gt;document.createNode("Some Config Folder", "app:configurations", "app:configurations");&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Running this (as a script action) against a document and then examining the document in the Node Browser shows that it has a single child node with the association type:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/application/1.0}configurations" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/application/1.0}configurations&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;and name of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}Some" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}Some&lt;/A&gt;&lt;SPAN&gt; Config Folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which is correct.&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>Wed, 24 Oct 2007 14:28:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/integrity-check-problem-when-adding-a-node/m-p/119220#M84051</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-10-24T14:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Integrity Check problem when adding a node?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/integrity-check-problem-when-adding-a-node/m-p/119221#M84052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Kevin for the quick reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Node Browser, view a "person" node.&amp;nbsp; Look at the Children section of the report, and notice that the Child Name for the "configurations" child is "{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/application/1.0}configurations" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/application/1.0}configurations&lt;/A&gt;&lt;SPAN&gt;".&amp;nbsp; The interesting thing here is that the name "configurations" is not in the "cm" namespace but rather the "app" namespace.&amp;nbsp; I'm wondering how I reproduce this situation; to have the Child Name be in my own namespace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing I just noticed is that the actual "cm:name" property for this node is something different…it's the GUID of the node.&amp;nbsp; So I guess that name is different so that it satisfies the integrity contstraint on a name.&amp;nbsp; So then, maybe my question is how you can build a parent-child relationship such that the Child Name is one thing but the child node's "cm:name" property is something else (as is the case for person-&amp;gt;configurations).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe this doesn't matter much.&amp;nbsp; Maybe it's just the case that all nodes produced by the JavaScript API must have a Child Name that matches the "cm:name" property, and that name must always be in the "cm" namespace.&amp;nbsp; I just want to make sure…I'm thinking that without a namespace qualification, a collision will be somewhat inevitable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 15:12:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/integrity-check-problem-when-adding-a-node/m-p/119221#M84052</guid>
      <dc:creator>blatwurst</dc:creator>
      <dc:date>2007-10-24T15:12:49Z</dc:date>
    </item>
  </channel>
</rss>

