<?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: CMIS - Folder creation with namespace in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309509#M262639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you all for you replies. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i think i'm going to change the namespace of the already created folders with a sql script. is it possible ? if yes, which tables i have to use ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT : after looking into alfresco database the child associations are stored in the table : alf_child_assoc and the qname_ns_id define the id of the namespace.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2014 16:02:00 GMT</pubDate>
    <dc:creator>iv0id</dc:creator>
    <dc:date>2014-06-13T16:02:00Z</dc:date>
    <item>
      <title>CMIS - Folder creation with namespace</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309503#M262633</link>
      <description>Hi everyone,After upgrading alfresco environment from 3.4.d to 4.0.e if i create a folder with this code : Folder rootFolder = getSession().getRootFolder();Map&amp;lt;String, Object&amp;gt; lFolderProps = new HashMap&amp;lt;String, Object&amp;gt;();lFolderProps.put(PropertyIds.NAME, "folder test");lFolderProps.put(</description>
      <pubDate>Thu, 12 Jun 2014 15:54:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309503#M262633</guid>
      <dc:creator>iv0id</dc:creator>
      <dc:date>2014-06-12T15:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS - Folder creation with namespace</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309504#M262634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using 5.0&amp;nbsp; Its working for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT * FROM test:folder &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And does SELECT * FROM cmis:folder show your folder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT - Just spotted that your path is wrong.&amp;nbsp;&amp;nbsp; Its a cm:contains relationship and by convention that name is used to make an assoc name of cm:{sanitised name}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The app namespace for company home and a&amp;nbsp; few other folders is odd.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the node browser if you are unsure of the fully qualified path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PATH:"/app:company_home/cm:folder_x0020_test&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 16:54:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309504#M262634</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-06-12T16:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS - Folder creation with namespace</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309505#M262635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes both queries shows me the folder i created. the problem is only when i want to list documents with the query i posted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT : is there a solution to make my query work ? because we already have data from the version 3.4.d that's accessed with that query &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 17:03:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309505#M262635</guid>
      <dc:creator>iv0id</dc:creator>
      <dc:date>2014-06-12T17:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS - Folder creation with namespace</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309506#M262636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;SPAN&gt;The correct query is &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt; SELECT * FROM cmis:document D WHERE CONTAINS(D,'PATH:"/app:company_home/cm:folder_x0020_test//*"')&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Your query is wrong ,it will not work,becuase:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;test:folder_x0020_test&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; is the qualified name of the child association,it is made up using your PropertyIds.NAME("folder test") as local name and cm: as prefix.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 01:39:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309506#M262636</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-06-13T01:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS - Folder creation with namespace</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309507#M262637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;how come my query works with the existing folders (data from 3.4.d , we were using Alfresco WS to create folders and now CMIS) ? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 11:30:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309507#M262637</guid>
      <dc:creator>iv0id</dc:creator>
      <dc:date>2014-06-13T11:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS - Folder creation with namespace</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309508#M262638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So you used a different interface!&amp;nbsp;&amp;nbsp; That's a big difference.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is either a bug/feature in your code or alfresco's that its created an assoc with an unexpected namespace.&amp;nbsp;&amp;nbsp;&amp;nbsp; That's not necessarily wrong but there may be bits of alfresco (or your queries) expecting the cm namespace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the avoidance of doubt PATH:"/app:company_home/cm:folder_x0020_test is the correct path that I would expect and alfresco would create itself with "create folder" from one of the UIs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 11:46:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309508#M262638</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-06-13T11:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS - Folder creation with namespace</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309509#M262639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you all for you replies. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i think i'm going to change the namespace of the already created folders with a sql script. is it possible ? if yes, which tables i have to use ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT : after looking into alfresco database the child associations are stored in the table : alf_child_assoc and the qname_ns_id define the id of the namespace.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 16:02:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309509#M262639</guid>
      <dc:creator>iv0id</dc:creator>
      <dc:date>2014-06-13T16:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS - Folder creation with namespace</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309510#M262640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Folder name(in facts all nodes' name) are saved in alf_node_properties table,and parent-child relationship are saved in alf_child_assoc table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So you can update "qname" related columns in alf_node_properties and alf_child_assoc table and then rebuild index.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And make sure you have make a backup of these tables before you update them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jun 2014 06:27:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309510#M262640</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-06-14T06:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS - Folder creation with namespace</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309511#M262641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great that confirms my thoughts. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you again kaynezhang &amp;amp; mrogers for your replies and your time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jun 2014 11:20:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-creation-with-namespace/m-p/309511#M262641</guid>
      <dc:creator>iv0id</dc:creator>
      <dc:date>2014-06-14T11:20:37Z</dc:date>
    </item>
  </channel>
</rss>

