<?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: [SOLVED]recover a deleted site? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/solved-recover-a-deleted-site/m-p/268973#M222103</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;this appears to be a bug - the undeletable aspect should still be present when the node is transferred to the archive. This may have something to do how the SiteService supresses the behavior - this also supresses the copy of the aspect, which then leads to an inconsistent state in the archive as the aspect is configured as being mandatory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to reconstruct your site after a JavaScript-based modification while it is still in archive. Write and execute a script action that re-adds the aspect on the site node before trying to recover it.&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>Mon, 23 Jul 2012 11:28:42 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2012-07-23T11:28:42Z</dc:date>
    <item>
      <title>[SOLVED]recover a deleted site?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-recover-a-deleted-site/m-p/268972#M222102</link>
      <description>Hi,my problem is as follows:we have deleted a site, and it's now in the archive space. I can see it trough the trashcan, but if I try to recover it alfresco gives me an exception:2012-07-23 12:53:19,702&amp;nbsp; ERROR [node.integrity.IntegrityChecker] [http-8080-48] Found 1 integrity violations:Mandatory as</description>
      <pubDate>Mon, 23 Jul 2012 11:00:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-recover-a-deleted-site/m-p/268972#M222102</guid>
      <dc:creator>steves</dc:creator>
      <dc:date>2012-07-23T11:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED]recover a deleted site?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-recover-a-deleted-site/m-p/268973#M222103</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;this appears to be a bug - the undeletable aspect should still be present when the node is transferred to the archive. This may have something to do how the SiteService supresses the behavior - this also supresses the copy of the aspect, which then leads to an inconsistent state in the archive as the aspect is configured as being mandatory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to reconstruct your site after a JavaScript-based modification while it is still in archive. Write and execute a script action that re-adds the aspect on the site node before trying to recover it.&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>Mon, 23 Jul 2012 11:28:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-recover-a-deleted-site/m-p/268973#M222103</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-07-23T11:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED]recover a deleted site?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-recover-a-deleted-site/m-p/268974#M222104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot Axel!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This worked: execute a simple script (in the admin console for example):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var node = search.findNode("archive://SpacesStore/f755fb6e-1637-40d1-8c6e-f14d2ae6b13e");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;logger.log(node.name + " (" + node.typeShort + "): " + node.nodeRef);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;node.addAspect("{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/system/1.0}undeletable" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/system/1.0}undeletable&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then recover (for example with curl):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;curl -X PUT -u ADMIN_USER:ADMIN_PASSWORD "&lt;/SPAN&gt;&lt;A href="http://alfrescohost/alfresco/service/api/archive/archive/SpacesStore/f755fb6e-1637-40d1-8c6e-f14d2ae6b13e" rel="nofollow noopener noreferrer"&gt;http://alfrescohost/alfresco/service/api/archive/archive/SpacesStore/f755fb6e-1637-40d1-8c6e-f14d2ae6b13e&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 14:12:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-recover-a-deleted-site/m-p/268974#M222104</guid>
      <dc:creator>steves</dc:creator>
      <dc:date>2012-07-23T14:12:19Z</dc:date>
    </item>
  </channel>
</rss>

