<?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 CMIS Folder.addToFolder(target, true) fails? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-addtofolder-target-true-fails/m-p/253711#M206841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I keep getting an exception thrown when trying to "link" an existing folder to another existing-folder-location (for multiple locations).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The exception says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Object is not a document!&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.opencmis.AlfrescoCmisServiceImpl.addObjectToFolder(AlfrescoCmisServiceImpl.java:2030)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Well, that's correct, the object is a Folder, which also is a FileableCmisObject, so has the addToFolder() method, and is what I'm trying to add to the target folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will re-compile and re-test, but the only thing I can think of is that the error message is incorrect, and the complaint is in the second parameter to the addToFolder method (true = link all versions)?&amp;nbsp; One would think that would be ignored if it's not used for Folder nodes, but maybe that's what the exception is trying to tell me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else tried using this method to link a folder to a second (or more) location in the repository successfully?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AJ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2012 19:13:55 GMT</pubDate>
    <dc:creator>aweber1nj</dc:creator>
    <dc:date>2012-11-28T19:13:55Z</dc:date>
    <item>
      <title>CMIS Folder.addToFolder(target, true) fails?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-addtofolder-target-true-fails/m-p/253711#M206841</link>
      <description>I keep getting an exception thrown when trying to "link" an existing folder to another existing-folder-location (for multiple locations).The exception says&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rg.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Object is not a document!&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.opencmis.AlfrescoCmis</description>
      <pubDate>Wed, 28 Nov 2012 19:13:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-addtofolder-target-true-fails/m-p/253711#M206841</guid>
      <dc:creator>aweber1nj</dc:creator>
      <dc:date>2012-11-28T19:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Folder.addToFolder(target, true) fails?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-addtofolder-target-true-fails/m-p/253712#M206842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;According to the spec (page 35 of the PDF)…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Every folder object, except for one which is called the Root Folder, MUST have one and only one parent folder.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Folder objects are not multi-fileable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2012 07:20:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-addtofolder-target-true-fails/m-p/253712#M206842</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-12-08T07:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Folder.addToFolder(target, true) fails?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-addtofolder-target-true-fails/m-p/253713#M206843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah, RTFM, huh? &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I take it this is a CMIS limitation, not an Alfresco one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AJ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2012 15:02:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-addtofolder-target-true-fails/m-p/253713#M206843</guid>
      <dc:creator>aweber1nj</dc:creator>
      <dc:date>2012-12-08T15:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Folder.addToFolder(target, true) fails?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-addtofolder-target-true-fails/m-p/253714#M206844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I believe the underlying Alfresco API supports multi-filing of folders.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2012 15:09:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-folder-addtofolder-target-true-fails/m-p/253714#M206844</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-12-08T15:09:40Z</dc:date>
    </item>
  </channel>
</rss>

