AnsweredAssumed Answered

Alfresco RestFull Api and Metadata

Question asked by albertogarcía on Jun 4, 2014
Latest reply on Jun 5, 2014 by albertogarcía
Hi,

I'm new to the page and to Alfresco.

I'm developing a basic Alfresco Java proyect and need some advice. I have to upload, download and delete files from alfresco (already done with similar code)

Next step, I have to modify the properties of a node. I can access to the properties with the URL, but when I try to change any property I always get the following error:

Expression node is undefined on line 10, column 6 in org/alfresco/cmis/item.put.atomentry.ftl.


This is the code:
         String urlStringPut = "http://192.168.0.33:8070/alfresco/service/api/node/workspace/SpacesStore/689ab69e-39ab-4e50-ac02-8663d9824a8a?alf_ticket="
               + authTicket;
         
         PutMethod mPut = new PutMethod(urlStringPut);
         Part[] parts = {
               new StringPart("cm:description", "description")
         };
         mPut.setRequestEntity(new MultipartRequestEntity(parts, mPut
               .getParams()));
         
         int statusCode2 = client.executeMethod(mPut);
                        mPut.releaseConnection();


The conection works well since I can get the xml with the same URL. I can't use Spring since the code is not mine.

Thanks in advance

Outcomes