I want to create a new folder inside my site vie CMIS but it does not work. Error is 404, and i guess parent folder does not found according to its description in the documentation. But it exists
here is my code, can anyone help me to solve this error.
public static void makeDir(String name) throws Exception { long start = System.currentTimeMillis(); String host = "159.84.130.209"; int port = 8080; //Integer.parseInt("8080"); String username = "Admin"; String password = "admin"; //some comment String parentFolder = "FITMAN" ; ///"Company%20Home"; String site = "Mysite"; // site exists String container= "LMREALISATIONS"; //this is the first folder that exists in the site String folderName = "sales3"; String description = "sales space3";
You've tagged this post as "CMIS" but you aren't using CMIS at all. I would strongly recommend that you grab the OpenCMIS Java client from Apache Chemistry and use that to create your folder. It will save you a lot of work.