<?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 Repository.getRootHome() and multitenancy in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/repository-getroothome-and-multitenancy/m-p/248531#M201661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;there is repositoryHelper bean, with org.alfresco.repo.model.Repository class, used in several places, including patches. Repository .getRootHome() is used as a starting point for the search, for example ActivitiesTemplatesUpdatePatch.getBaseTemplate()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem is, that getRootHome() is not tenancy-safe, it lazily stores rootRef. BTW, getCompanyHome() just nearby doesnt use getRootHome(), so it is tenancy safe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont understand, how it is supposed to work - was multitenancy ever tested in 4.0.d?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 11:31:48 GMT</pubDate>
    <dc:creator>valery_antonov</dc:creator>
    <dc:date>2012-05-30T11:31:48Z</dc:date>
    <item>
      <title>Repository.getRootHome() and multitenancy</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/repository-getroothome-and-multitenancy/m-p/248531#M201661</link>
      <description>there is repositoryHelper bean, with org.alfresco.repo.model.Repository class, used in several places, including patches. Repository .getRootHome() is used as a starting point for the search, for example ActivitiesTemplatesUpdatePatch.getBaseTemplate()Problem is, that getRootHome() is not tenancy-sa</description>
      <pubDate>Wed, 30 May 2012 11:31:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/repository-getroothome-and-multitenancy/m-p/248531#M201661</guid>
      <dc:creator>valery_antonov</dc:creator>
      <dc:date>2012-05-30T11:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Repository.getRootHome() and multitenancy</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/repository-getroothome-and-multitenancy/m-p/248532#M201662</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;BR /&gt;&lt;SPAN&gt;I'd assume any version of Alfresco Enterprise 4 is tested with multi-tenancy - I mean, the Alfresco Cloud is running on a variant of Alfresco 4. The question is: Has anybody tested the patches on a multi-tenant environment? Or do the patches that rely on the getRootHome() actually have to be tenancy safe - i.e. what if they are just one-off patches for newly installed repostories that can't yet have tenants?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IF you have found a case where these patches do not work, feel free to open a JIRA ticket in the &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com" rel="nofollow noopener noreferrer"&gt;Alfresco system&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can see that the current implementation of getRootHome() is problematic for any one that expects it to be tenancy safe - I would rather remove this method (since it is just a trivial piece) than see it fixed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2012 12:57:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/repository-getroothome-and-multitenancy/m-p/248532#M201662</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-06-03T12:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Repository.getRootHome() and multitenancy</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/repository-getroothome-and-multitenancy/m-p/248533#M201663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, getRootHome() is already known bug, it also affects web scripts. And yes, alfresco 4.0.d couldnt apply patches to multitenant repo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When we decided to support multitenancy, we reviewed our code, catching all stored node refs. After that we got several more bugs, and yes, now it is ok &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; Guess Alfresco team also need to do multitenancy reviews…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 10:40:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/repository-getroothome-and-multitenancy/m-p/248533#M201663</guid>
      <dc:creator>valery_antonov</dc:creator>
      <dc:date>2012-06-04T10:40:52Z</dc:date>
    </item>
  </channel>
</rss>

