<?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: Prevent uploading of certain file types? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/prevent-uploading-of-certain-file-types/m-p/80990#M54138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi even am looking at disabling upload capability for certain files….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you tell me if there is a action that will move content to trashcan….cos under action i cannot see such an option while configuring rules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to write my own action by using &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this.nodeService.moveNode(actionedUponNodeRef, getArchiveRootRef(),&amp;nbsp; ContentModel.TYPE_FOLDER, assocRef.getQName());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get java.lang.NullPointerException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.node.db.DbNodeServiceImpl.setChildUniqueName(DbNodeServiceImpl.java:2037)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.node.db.DbNodeServiceImpl.moveNode(DbNodeServiceImpl.java:445)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;someone has any idea how to move a node to trashcan .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 May 2008 12:41:08 GMT</pubDate>
    <dc:creator>lakshmi</dc:creator>
    <dc:date>2008-05-05T12:41:08Z</dc:date>
    <item>
      <title>Prevent uploading of certain file types?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/prevent-uploading-of-certain-file-types/m-p/80988#M54136</link>
      <description>Is it possible to prevent users from uploading files with a certain extension?</description>
      <pubDate>Mon, 30 Jul 2007 19:11:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/prevent-uploading-of-certain-file-types/m-p/80988#M54136</guid>
      <dc:creator>natebsi</dc:creator>
      <dc:date>2007-07-30T19:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent uploading of certain file types?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/prevent-uploading-of-certain-file-types/m-p/80989#M54137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;use space rules for that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You have conditions that can detect files extension. As for the action I m not sure you can delete, but you can move the files with the forbidden extension to a "trashcan".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Seraphon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 02:47:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/prevent-uploading-of-certain-file-types/m-p/80989#M54137</guid>
      <dc:creator>seraphon</dc:creator>
      <dc:date>2007-07-31T02:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent uploading of certain file types?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/prevent-uploading-of-certain-file-types/m-p/80990#M54138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi even am looking at disabling upload capability for certain files….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you tell me if there is a action that will move content to trashcan….cos under action i cannot see such an option while configuring rules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to write my own action by using &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this.nodeService.moveNode(actionedUponNodeRef, getArchiveRootRef(),&amp;nbsp; ContentModel.TYPE_FOLDER, assocRef.getQName());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get java.lang.NullPointerException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.node.db.DbNodeServiceImpl.setChildUniqueName(DbNodeServiceImpl.java:2037)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.node.db.DbNodeServiceImpl.moveNode(DbNodeServiceImpl.java:445)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;someone has any idea how to move a node to trashcan .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 12:41:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/prevent-uploading-of-certain-file-types/m-p/80990#M54138</guid>
      <dc:creator>lakshmi</dc:creator>
      <dc:date>2008-05-05T12:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent uploading of certain file types?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/prevent-uploading-of-certain-file-types/m-p/80991#M54139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi I tried to move a node to Archive store…..by seeting the moveActiontoArchive as rule for content uploaded with specific mime type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On uploading a content with the specified mimetype the rule action initiates, i try to move the node by&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this.nodeService.moveNode(actionedUponNodeRef, getArchiveRootRef(),ContentModel.ASSOC_CHILDREN , QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "move"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but i get &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/73343938-1c26-11dd-b015-57bc895f54c2 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose the node is not created when the rule starts to execute…or what is the reason for this exception?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to solve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pls help out….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lakshmi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 11:19:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/prevent-uploading-of-certain-file-types/m-p/80991#M54139</guid>
      <dc:creator>lakshmi</dc:creator>
      <dc:date>2008-05-07T11:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent uploading of certain file types?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/prevent-uploading-of-certain-file-types/m-p/80992#M54140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok i managed to move node to Archive store….by selecting run in backgorund check box for the rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When i upload content and click OK the content node moves to archive space and when it returns to browse.jsp there is a message that is thrown::&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unable to find the repository item referenced by Id: d6cf8d47-1c3a-11dd-a78d-ff16be4206e4 - the record has probably been deleted from the database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is thrown as the node has been moved to archive node .Ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But i did like to throw my own custom message. How to throw custom error message from action class configured via rules?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 13:48:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/prevent-uploading-of-certain-file-types/m-p/80992#M54140</guid>
      <dc:creator>lakshmi</dc:creator>
      <dc:date>2008-05-07T13:48:43Z</dc:date>
    </item>
  </channel>
</rss>

