The mentioned code results in successful upload of the document to the Alfresco site without any issues,but the title and description properties of the uploaded document were empty while checking in Alfresco UI.
Also I try setting the tags to a document as well.Tags were also empty while viewing the document in alfresco site.Below is the code snippet
Re: Issues in setting secondary properties to a document using cmis 1.1
Hi Angel Borroy
I changed the code as you have mentioned, still my document is not listed in the search space when I search something like title:test title (or) test title (which means title property is not applied to my document)
I made another change in my code as mentioned below which works perfectly fine.
List<Object> aspects = new ArrayList<Object>(); aspects.add("P:cm:titled"); properties.put(PropertyIds.SECONDARY_OBJECT_TYPE_IDS, aspects);