<?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 Alfresco Share cm:name uniqueness in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287461#M240591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in Alfresco Share I need to upload multiple documents with the SAME FILENAME into one folder. I have different versions of file content, each one saved separatedly in the file with the same name. Differencies between files are managed through my custom metadata. From Alfresco Share I need to download each file with the given (same) name. I can't use file versioning, the requirement is to have files separatedly in one folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem is with the default attribute cm:name, which cannot be the same for objects in one folder. I tried to change the default ContentModel.xml file, where is section: &amp;lt;type name="cm:folder"&amp;gt; and I changed type association value &amp;lt;duplicate&amp;gt; from FALSE to TRUE. I know, that extending default content model by that is not the best way, but it works. From this time I can upload more files with the same filename into one folder. Unfortunatelly, side effect of this change is impossibility to create new sites in Alfresco Share. In my log is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Method public org.alfresco.repo.jscript.ScriptableHashMap org.alfresco.repo.site.script.Site.listMembers(java.lang.String,java.lang.String,int,boolean) threw an exception when invoked on org.alfresco.repo.site.script.Site@15ac9ff with arguments of types [null,java.lang.String,java.lang.Integer,java.lang.Boolean,]&lt;BR /&gt;The problematic instruction:&lt;BR /&gt;———-&lt;BR /&gt;==&amp;gt; assignment: managers=site.listMembers(null, "SiteManager", 0, true)?keys [on line 48, column 17 in org/alfresco/repository/site/site.lib.ftl]&lt;BR /&gt; in user-directive siteJSONManagers [on line 2, column 1 in org/alfresco/repository/site/site.lib.ftl]&lt;BR /&gt; in user-directive siteLib.siteJSON [on line 2, column 1 in org/alfresco/repository/site/sites.post.json.ftl]&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know, that this is the result of enabling duplicates. I can normally create sites when I revert changes in the ContentModel.xml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please, don't you have eny experience or recomendations, how to make my goal in some different way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jun 2013 08:04:14 GMT</pubDate>
    <dc:creator>milhy</dc:creator>
    <dc:date>2013-06-07T08:04:14Z</dc:date>
    <item>
      <title>Alfresco Share cm:name uniqueness</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287461#M240591</link>
      <description>Hello everyone,in Alfresco Share I need to upload multiple documents with the SAME FILENAME into one folder. I have different versions of file content, each one saved separatedly in the file with the same name. Differencies between files are managed through my custom metadata. From Alfresco Share I</description>
      <pubDate>Fri, 07 Jun 2013 08:04:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287461#M240591</guid>
      <dc:creator>milhy</dc:creator>
      <dc:date>2013-06-07T08:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Share cm:name uniqueness</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287462#M240592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rather that allowing duplicates in the name which clearly has side effects, and is a modification to the core which is at best unwise, would it not be better to extend / customise the document library display so that the document title is displayed where the document name is usually displayed? If you swapped these 2 fields around then you could retain unique document names and a standard core (and hence system integrity) but your display would show the documents as seemingly named the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mechanism for extending / cusomising the document library display in this way is built into Alfresco from 4.0 onwards and is very strong in 4.2 - it takes a bit to get into your head but once there is very good and there are lots of examples on the web.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may (dependent on your exact needs) also need to override the download action so that it downloaded the file using the title not the name. Again, overriding / extending actions is something with very good support in Alfresco 4.0+&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bob Johnson&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 08:43:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287462#M240592</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2013-06-07T08:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Share cm:name uniqueness</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287463#M240593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, thanks for very quick response. I already tried switching cm:name and cm:title in Documentlibrary, so everything in Share were displaying correctly. Problem, where I stopped was file download, where i logically already downloaded different filename based on cm:name. Thanks for confirming, that this is possible way, so the last step for me now is override the download action based on cm:title. Thanks again for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 08:57:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287463#M240593</guid>
      <dc:creator>milhy</dc:creator>
      <dc:date>2013-06-07T08:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Share cm:name uniqueness</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287464#M240594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a unique constraint on the property name and the primary association name, which by convention is kept in sync with the name.&amp;nbsp;&amp;nbsp; Its just a configuration change to remove that constraint and have multiple files with the same name however it may then affect quite a lot of functionality since most applications expect unix/windows file folder conventions which don't allow duplicate named files.&amp;nbsp;&amp;nbsp; You are probably better off giving each file a unique name and using another property instead,&amp;nbsp; as the above post suggests using title or your own property.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 11:46:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287464#M240594</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2013-06-07T11:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Share cm:name uniqueness</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287465#M240595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, I understand reasons for that constraint. I hoped that there can be some possibility to override without side effects.. Now I'm working on solution based on switching name and title in Alfresco Share and overriding Download action as mentioned above. Thanks again both of you for info!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 11:53:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287465#M240595</guid>
      <dc:creator>milhy</dc:creator>
      <dc:date>2013-06-07T11:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Share cm:name uniqueness</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287466#M240596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have switched name and title, you could just build a custom download script which would replace the name and title too. Well, depending on the download manner, of course, if you connect via CIFS or something, it's a no-go. But if you download from share, it could work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jun 2013 17:32:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287466#M240596</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2013-06-09T17:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Share cm:name uniqueness</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287467#M240597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;can you please show me how to switch the cm:name with cm:title&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 09:19:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-cm-name-uniqueness/m-p/287467#M240597</guid>
      <dc:creator>sharifu</dc:creator>
      <dc:date>2013-09-18T09:19:53Z</dc:date>
    </item>
  </channel>
</rss>

