<?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 FTP upload does not trigger import-ACP rule in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/ftp-upload-does-not-trigger-import-acp-rule/m-p/227674#M180804</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;BR /&gt;&lt;SPAN&gt;We are trying to import content to Enterprise 3.1 by uploading ACP files to a space with the "Import an Alfresco content package" rule applied. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a standalone Java app that creates ACPs and places them in the import space via FTP, as per&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Export_and_Import#Import_Action" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Export_and_Import#Import_Action&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ACP is successfully uploaded, but it does not appear to trigger the import rule. We've tried active and passive mode. There's nothing in the error logs and setting the rule to run in the background makes no difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the ACP is uploaded to the space via the Web Client interface, the rule is triggered and it is imported without any problems. However, due to the 4GB limit of the Zip format, we will have a large number of ACPs and would much rather automate this process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears this issue was raised in JIRA over a year ago but was closed despite not being fixed &lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/AR-2240" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/AR-2240&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Sep 2009 11:44:30 GMT</pubDate>
    <dc:creator>luminary_mj</dc:creator>
    <dc:date>2009-09-18T11:44:30Z</dc:date>
    <item>
      <title>FTP upload does not trigger import-ACP rule</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ftp-upload-does-not-trigger-import-acp-rule/m-p/227674#M180804</link>
      <description>Hi,We are trying to import content to Enterprise 3.1 by uploading ACP files to a space with the "Import an Alfresco content package" rule applied. We have a standalone Java app that creates ACPs and places them in the import space via FTP, as per&amp;nbsp; http://wiki.alfresco.com/wiki/Export_and_Import#Impo</description>
      <pubDate>Fri, 18 Sep 2009 11:44:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ftp-upload-does-not-trigger-import-acp-rule/m-p/227674#M180804</guid>
      <dc:creator>luminary_mj</dc:creator>
      <dc:date>2009-09-18T11:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: FTP upload does not trigger import-ACP rule</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ftp-upload-does-not-trigger-import-acp-rule/m-p/227675#M180805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Apologies, turns out this was an error in my FTP code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For info, I'm using the org.apache.commons.net.ftp library (&lt;/SPAN&gt;&lt;A href="http://commons.apache.org/net/" rel="nofollow noopener noreferrer"&gt;http://commons.apache.org/net/&lt;/A&gt;&lt;SPAN&gt;) to implement FTP functionality. The FtpClient class uses ASCII encoding by default - clearly not suitable for Zip files!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fix is to add the following line before calling the storeFile method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ftpClient.setFileType( FTP.BINARY_FILE_TYPE );&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;All works fine now, happy days.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 13:26:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ftp-upload-does-not-trigger-import-acp-rule/m-p/227675#M180805</guid>
      <dc:creator>luminary_mj</dc:creator>
      <dc:date>2009-09-18T13:26:07Z</dc:date>
    </item>
  </channel>
</rss>

