AnsweredAssumed Answered

CMIS Folder.addToFolder(target, true) fails?

Question asked by aweber1nj on Nov 28, 2012
Latest reply on Dec 8, 2012 by jpotts
I keep getting an exception thrown when trying to "link" an existing folder to another existing-folder-location (for multiple locations).

The exception says:
org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Object is not a document!
   at org.alfresco.opencmis.AlfrescoCmisServiceImpl.addObjectToFolder(
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.

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)?  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?

Has anyone else tried using this method to link a folder to a second (or more) location in the repository successfully?