<?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 WARNING - deployment receiver is DANGEROUS in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120443#M84884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not one response from Alfresco on my previous post, eh?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know a little bit more about this now. It's completely repeatable, and has&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to do with, apparently, only the initial deploy to a "fresh" deployment receiver.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Be very cautious when you define the value for "root" in the targetData&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;property. It should be a completely empty directory, except for a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;single sub-directory named "ROOT". If you have any files in either the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;target directory or in the ROOT subdirectory that are not managed by&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco, the deployment receiver will remove them for you on the first&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;deployment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that the first deployment is the key. The deployment receiver must&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;establish some sort of base-line from that first run. Afterwards, you can&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;add non-Alfresco stuff and it won't be deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At least as far as I know. I wish I could be sure of this last point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What happened to me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My web site's root was "/usr/www/ROOT". As I mentioned before, I am&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;using Alfresco for only a small subset of the site. So /usr/www was&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;filled with lots of stuff, as was, of course, /usr/www/ROOT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I set "target" to "/usr/www".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a single folder with 2 files in Alfresco and did a deploy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The files deployed nicely. And the deployment receiver deleted&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;everything in /usr/www and in /usr/www/ROOT except for the newly&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;deployed files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd call this a very dangerous bug!&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;Fred&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2007 20:34:06 GMT</pubDate>
    <dc:creator>ftoth</dc:creator>
    <dc:date>2007-12-13T20:34:06Z</dc:date>
    <item>
      <title>WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120443#M84884</link>
      <description>Hi again,Not one response from Alfresco on my previous post, eh?I know a little bit more about this now. It's completely repeatable, and hasto do with, apparently, only the initial deploy to a "fresh" deployment receiver.Be very cautious when you define the value for "root" in the targetDataproperty</description>
      <pubDate>Thu, 13 Dec 2007 20:34:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120443#M84884</guid>
      <dc:creator>ftoth</dc:creator>
      <dc:date>2007-12-13T20:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120444#M84885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It depends on where you set the target, for example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have created a webproject (website1) and want to maintain within Alfresco WCM then you need to have complete project in Alfresco WCM and while setting the deployment folder, make sure it deploys to the correct location&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;like, in Tomcat, the webapplication should go to &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;…webapps\website1 and alfresco will manage(delete, update, add..etc) the content within this website1 only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–Vijay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 22:00:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120444#M84885</guid>
      <dc:creator>vijay_alfresco</dc:creator>
      <dc:date>2007-12-13T22:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120445#M84886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By default, WCM wants to deploy to "ROOT", right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, by your logic, like in tomcat, you would want deployment to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;go to "/webapps/ROOT". To accomplish this, you have to set the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;deployment receiver's target to "/webapps".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm calling a bug is that, if you do the above, the deployment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;receiver will happily delete everything else under /webapps. If you happen&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to have other webapps there, they're now gone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not a bug?&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;Fred&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 22:41:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120445#M84886</guid>
      <dc:creator>ftoth</dc:creator>
      <dc:date>2007-12-13T22:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120446#M84887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It does sound like a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please raise in &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com" rel="nofollow noopener noreferrer"&gt;JIRA&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 22:54:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120446#M84887</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2007-12-13T22:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120447#M84888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually, I have extended alfresco to edit the ROOT webappfolder while creating the webproject, you can find this at &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.alfresco.com/viewtopic.php?t=9499" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/viewtopic.php?t=9499&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and hence I can specify the target as ….webapps/website1, so that only the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;website1 will be managed and not entire webapps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 15:34:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120447#M84888</guid>
      <dc:creator>vijay_alfresco</dc:creator>
      <dc:date>2007-12-14T15:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120448#M84889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Everyone:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco ensures that when you deploy a snapshot, what you get on the remote end is what you have in your snapshot, excepting for any limitations you put on source path and excludes (newly exposed in our upcoming 2.2 in our new deployment configuration wizard).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whether deploying to a remote file system or remote Alfresco server, the sending server connects and verifies what snapshot exists on the second machine.&amp;nbsp; If everything is OK, the sending side calcs deltas and send over a stream of files (to elimate unnecessary over the wire comparisons).&amp;nbsp; It then snapshots the remote server, which in the case of a remote FS receiver means updating book-keeping entries (computed hash values to compare in future deployments) to note the transactionally delivered snapshot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are deploying for the first time, or if something is awry in the remote server such that the snapshot it thinks it has is not indeed correct (site was hacked files were removed, for example), Alfresco does a FULL synchronization.&amp;nbsp; That includes what you saw; it removes things that as far is it knows should not be there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The server does source regex excludes in the event you do need to deploy your content to a root source but leave certain non-managed files or directories on the remote end.&amp;nbsp; That capability is not exposed for configuration via our GUI until release 2.2 in the next few weeks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The deployment receiver is doing exactly as intends; it is dangerous only in that if not targeted in the right way with the right config, you will get exactly what it's intended to do.&amp;nbsp; If it succeeds, what you thought you were deploying it exactly what is on the other server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will take note to put a warning in our wiki that what transactional deployment means is that the remote server is essentially slave to the sending server.&amp;nbsp; Whatever your target directory is, do take care:&amp;nbsp; aside from our 2.2 excludes, that directory is a strongly managed one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Dec 2007 04:14:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120448#M84889</guid>
      <dc:creator>kvc</dc:creator>
      <dc:date>2007-12-16T04:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120449#M84890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your explanation, Kevin. However, this behavior is a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;show-stopper for me. Here's why…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me start with observed behavior:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. On an initial deploy, the receiver will synchronize completely. This&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;means that anything under the target that alfresco doesn't know about&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;will be removed. If your target happens to be &amp;lt;tomcat_home&amp;gt;/webapps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you will lose all of your webapps other than ROOT. And ROOT will&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;be cleaned out of any extra files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. After the intial deploy, however, this extra synchronization no longer takes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;place. The target can have any number of non-alfresco files and folders&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and the deployment receiver will ignore them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Until your post, I thought #1 was a bug, but #2 was a work-around&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I could live with. According to your post, #2 may well be a bug! You're&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;warning us that the target is "strongly managed". So it sounds like&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't rely on #2. Some future version might allow later deploys to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delete non-alfresco stuff.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I've mentioned before, we are attempting to manage just a portion&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of our site with alfresco. For example, we have several high-level &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;categories, "news", "reviews", "research", "reports", etc. We are &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attempting to deploy alfresco to help manage our "news" section.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears that I have to abandon the deployment receiver, or wall it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;off somehow in a safe sandbox where it can't do any harm to the rest&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of my site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So one engineer, Mike, said that #1 was a bug and asked me to raise&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a JIRA issue. &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/browse/WCM-996" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/WCM-996&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now Kevin has said #1 is not a bug and observed behavior #2 may not&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;be reliable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Further clarification would we welcome.&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;Fred&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Dec 2007 15:55:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120449#M84890</guid>
      <dc:creator>ftoth</dc:creator>
      <dc:date>2007-12-16T15:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120450#M84891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Fred:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, #2 is the bug … #1 is expected behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aside from exposing exclude paths in our 2.2 deployment config wizard, there are probably two other enhancements to note here for future releases:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*&amp;nbsp; Expose ability to 'test' deployments.&amp;nbsp; The server supports a dry-run&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; facility to show what would deploy if it really did.&amp;nbsp; You'd have been&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; able to catch the unexpected (even if intended) behavior in that case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; That capability even in 2.2 is not exposed in the web client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*&amp;nbsp; Support a 'dont_delete' option.&amp;nbsp; This was intended to be in the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; original version of the FSR, but ultimately it did not make the cut.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Really, although we are doing what we think is the right thing, you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; may want different behavior.&amp;nbsp; It should be a configuration option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I do apologize for your troubles.&amp;nbsp; At a minimum, this points to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;better documentation on our wiki so that others know what to expect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when deployment happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And in advance of that, your sharing your experience on the forums is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;appreciated.&amp;nbsp; I hope everyone is reading this thread!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 14:27:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120450#M84891</guid>
      <dc:creator>kvc</dc:creator>
      <dc:date>2007-12-17T14:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120451#M84892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am seeing the same behaviour at the moment and I am using the recent ENT 3.1 release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a solution to this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like Fred I am using Alfresco to manage only the static content of my site, so cannot have the FSR deleting non-alfresco content when deploying snapshots.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin, if you are around can you shed some light on if there has been any progress on this for 3.1? or is this still the behaviour? Is it configurable at all? you mentioned a "do not delete option"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fred, if you are still around, how did you address this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 02:59:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120451#M84892</guid>
      <dc:creator>scottf</dc:creator>
      <dc:date>2009-04-15T02:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120452#M84893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://wiki.alfresco.com/wiki/FSR" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/FSR&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The behaviour of the FSR was changed in the 3.0 to only delete content managed by Alfresco.&amp;nbsp;&amp;nbsp;&amp;nbsp; Are you using a V3 FSR?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you start up a V3 FSR you should see messages in the log relating to validating the filesystem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 08:17:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120452#M84893</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-04-15T08:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120453#M84894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Scott,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm still around!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, we're still running 2.1 community, so I'm not sure if my solution is still relevant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We ended up taking advantage of the "post deploy" feature of the deployer. We point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the deployment receiver to a safe directory that it's free to manage. We then have&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a post deploy script that runs on every deploy. Our script is free to do whatever we&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;need, including ignoring alfresco delete commands if necessary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fred&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 11:04:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120453#M84894</guid>
      <dc:creator>ftoth</dc:creator>
      <dc:date>2009-04-15T11:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120454#M84895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks very much for the replies guys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mrogers - yes I am using a 3.1 FSR, but the "errorOnOverwrite" was set to the default false. I'll change it to true and re-test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fred - thanks for the information. That's definitely a good option if I don't get the out-of-the-box functionality I need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll post back here after I run some tests to let others know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scott.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 13:15:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120454#M84895</guid>
      <dc:creator>scottf</dc:creator>
      <dc:date>2009-04-15T13:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120455#M84896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Some interesting behaviour.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've retested after setting errorOnOverWrite to true and restarting my FSR.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Within Alfresco Explorer I then created a webapp sub-folder I know already exists in my deployment location and I added a single file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then submitted my changes and deployed to that FSR. With errorOnOverWrite set to true an error is thrown and the deployment fails. I think this is expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;09:59:26,385 WARN&amp;nbsp; [org.alfresco.deployment.impl.server.DeploymentReceiverServiceImpl] writing to pre-existing directory, path:C:\Toolkit\Stores\WebContent\StoreOne\javascript&lt;BR /&gt;09:59:26,385 ERROR [org.alfresco.deployment.impl.server.DeploymentReceiverTransportImpl] error in mkdir ticket:b4bd1304-228f-4c9e-a9b9-7ece18fa9f2e, path:/javascript, guid:7f16cbc7-6f8f-4372-9f98-c81d19562074&lt;BR /&gt;org.alfresco.deployment.impl.DeploymentException: directory already exists, path:C:\Toolkit\Stores\WebContent\StoreOne\javascript&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;In this case the new file doesn't get pushed to the FSR.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the FSR with errorOnOverWrite set to false the following happens:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Within Alfresco Explorer I created another webapp sub-folder I know already exists in my deployment location and I added a single file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I then browsed the file system the folder was there but all it now contains is the single file I added through the client, all my non-alfresco files and folders that were stored in the same folder on the file system have now been deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the deployment.log file it does mention that it is writing to a pre-existing directory, but it still goes ahead and deletes that folder's contents anyway….seems odd:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 09:30:28,167 WARN&amp;nbsp; [org.alfresco.deployment.impl.server.DeploymentReceiverServiceImpl] writing to pre-existing directory, path:C:\Toolkit\Stores\WebContent\StoreOne\css&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;To re-cap I am using Alfresco 3.1 on windows XP, derby DB (for evaluating and testing), and a 3.1 FSR also on windows XP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the standard behavior for 3.1? or is this a bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I need is for the FSR the be able to copy content into an existing folder, but not delete the non-alfresco content in that folder. Is this possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to get this working as the plan is to use Alfresco for managing the static content of a very large website.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mrogers - any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 14:53:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120455#M84896</guid>
      <dc:creator>scottf</dc:creator>
      <dc:date>2009-04-15T14:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120456#M84897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've just checked the code and it looks like a bug &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&amp;nbsp;&amp;nbsp; Alfresco taking over the directory "C:\Toolkit\Stores\WebContent\StoreOne\css" has been too agressive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you raise your scenario in Jira please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As an immediate work around deploy from alfresco first and then copy in your extra content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or if you want to patch your source code replace the DeploymentReceiverServiceImpl.java lines #276-281 with if(!f.exists()) { f.mkdir(); }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 15:41:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120456#M84897</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-04-15T15:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120457#M84898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;wow…that is bad news, thanks for investigating.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added an issue in JIRA (my first one, so it might be incorrect), but I could only mark it againts labs, not ENT 3.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe you could move it? &lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALFCOM-2784" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/ALFCOM-2784&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently not working from SVN, so the code change is not really an option at the moment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 16:24:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120457#M84898</guid>
      <dc:creator>scottf</dc:creator>
      <dc:date>2009-04-15T16:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING - deployment receiver is DANGEROUS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120458#M84899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ALFCOM-2784 is now fixed on HEAD.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 16:53:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/warning-deployment-receiver-is-dangerous/m-p/120458#M84899</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-04-15T16:53:29Z</dc:date>
    </item>
  </channel>
</rss>

