<?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 addToFolder, removeFromFolder - CMIS in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/addtofolder-removefromfolder-cmis/m-p/294972#M248102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I have a doubt about the grants to user addToFolder, removeFromFolder when there more than one user related to the documents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have one application space (spaceA) which is owner by one user (userA). I have the same for user B (spaceB, userB). userB can read spaceA. I don't want to copy the docmuments twice but I want they to be accesible by the two spaces.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1- The application create a document using userA in spaceA called doc1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2- I excute doc1.addToFolder(spaceB) from userB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3- I can access to doc1 thought spaceA and spaceB. This is good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4- I want to remove doc1 from spaceB using userB becuse I just don't want any reference to the document in this space, but I want to maintain it in spaceA (where it was originally created) executing doc1.removeFromFolder(spaceB). ERROR!. I can't to remove it. userB must have Read/Write permission on spaceA to removeFromFolder(spaceB).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know why I must have read/write permission on spaceA to remove something from spaceB. Is this correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It could be a security hole if I don't want that userB modify any document from spaceA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What can I do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jul 2013 12:05:27 GMT</pubDate>
    <dc:creator>lodopidolo</dc:creator>
    <dc:date>2013-07-03T12:05:27Z</dc:date>
    <item>
      <title>addToFolder, removeFromFolder - CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/addtofolder-removefromfolder-cmis/m-p/294972#M248102</link>
      <description>Hello, I have a doubt about the grants to user addToFolder, removeFromFolder when there more than one user related to the documents.I have one application space (spaceA) which is owner by one user (userA). I have the same for user B (spaceB, userB). userB can read spaceA. I don't want to copy the do</description>
      <pubDate>Wed, 03 Jul 2013 12:05:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/addtofolder-removefromfolder-cmis/m-p/294972#M248102</guid>
      <dc:creator>lodopidolo</dc:creator>
      <dc:date>2013-07-03T12:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: addToFolder, removeFromFolder - CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/addtofolder-removefromfolder-cmis/m-p/294973#M248103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 14:33:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/addtofolder-removefromfolder-cmis/m-p/294973#M248103</guid>
      <dc:creator>lodopidolo</dc:creator>
      <dc:date>2013-07-05T14:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: addToFolder, removeFromFolder - CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/addtofolder-removefromfolder-cmis/m-p/294974#M248104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think the source of your problem is &lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALF-18330" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/ALF-18330&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I call &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;folder.removeFromFolder(ObjectId)&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; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.apache.chemistry.opencmis.commons.exceptions.CmisNotSupportedException: Method Not Allowed&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; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it's because of 405 http response. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 17:48:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/addtofolder-removefromfolder-cmis/m-p/294974#M248104</guid>
      <dc:creator>ekirin</dc:creator>
      <dc:date>2013-07-10T17:48:14Z</dc:date>
    </item>
  </channel>
</rss>

