<?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 Re: set cm:description properties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275803#M228933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is versionState of null valid?&amp;nbsp;&amp;nbsp; There's a value of NONE to mean no version state.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2012 16:55:00 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2012-03-15T16:55:00Z</dc:date>
    <item>
      <title>set cm:description properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275802#M228932</link>
      <description>Hello!I try to set the cm:descripion properties by a document/folder by using openCMIS in alfresco.My test code is&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ublic class Testing{&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String args[])&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(Testing.class.getName() + " started");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SessionFactory sessionFactory = SessionFacto</description>
      <pubDate>Thu, 15 Mar 2012 16:30:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275802#M228932</guid>
      <dc:creator>ccc_chen</dc:creator>
      <dc:date>2012-03-15T16:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: set cm:description properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275803#M228933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is versionState of null valid?&amp;nbsp;&amp;nbsp; There's a value of NONE to mean no version state.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 16:55:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275803#M228933</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2012-03-15T16:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: set cm:description properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275804#M228934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi mrogers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is versionState of null valid?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes. Its valid. and even I tried to upload the document with version state as MAJOR. But I am getting the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If remove the line,&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; properties.put("cm:description", "My document");&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;document is uploading successfully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the problem lies in this line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to do any server side modifications to use these tags?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please provide some suggestions to solve this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Naresh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 06:37:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275804#M228934</guid>
      <dc:creator>narithota</dc:creator>
      <dc:date>2013-01-15T06:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: set cm:description properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275805#M228935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry don't know too much about CMIS. :mrgreen:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just realised cm:description is on the titled aspect,&amp;nbsp; that could be part of your problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see there is this example of setting titled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://code.google.com/a/apache-extras.org/p/alfresco-opencmis-extension/" rel="nofollow noopener noreferrer"&gt;http://code.google.com/a/apache-extras.org/p/alfresco-opencmis-extension/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 10:05:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275805#M228935</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2013-01-15T10:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: set cm:description properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275806#M228936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is that issue resolved? I'm facing similar issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I'm executing a POST by using curl -X POST -uadmin:admin "&lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/s/cmis/p/testfolder5/children" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/cmis/p/testfolder5/children&lt;/A&gt;&lt;SPAN&gt;" -H "Content-Type: application/atom+xml" -d @C:\Books\CMIS\test.atom.xml, then it is setting description correctly. test.atom.xml looks below -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt; &amp;lt;entry xmlns="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2005/Atom" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2005/Atom&lt;/A&gt;&lt;SPAN&gt;" xmlns:cmisra="&lt;/SPAN&gt;&lt;A href="http://docs.oasisopen.org/ns/cmis/restatom/200908/" rel="nofollow noopener noreferrer"&gt;http://docs.oasisopen.org/ns/cmis/restatom/200908/&lt;/A&gt;&lt;SPAN&gt;"&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;xmlns:cmis="&lt;/SPAN&gt;&lt;A href="http://docs.oasisopen.org/ns/cmis/core/200908/" rel="nofollow noopener noreferrer"&gt;http://docs.oasisopen.org/ns/cmis/core/200908/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;title&amp;gt;sample.doc&amp;lt;/title&amp;gt;&amp;lt;summary&amp;gt;A sample Doc&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;content type="application/text"&amp;gt;&amp;lt;/content&amp;gt;&amp;lt;cmisra&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bject&amp;gt;&amp;lt;cmis&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;roperties&amp;gt;&amp;lt;cmis&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ropertyId propertyDefinitionId="cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectTypeId"&amp;gt;&amp;lt;cmis:value&amp;gt;cmis:document&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ropertyId&amp;gt;&amp;lt;/cmis&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;roperties&amp;gt;&amp;lt;/cmisra&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bject&amp;gt;&amp;lt;/entry&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I'm executing through java code then I'm getting error : Property 'cm:description' is not valid for this type! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Folder newFolder = root.createFolder(folderProperties);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String name = "testdata5.text";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Map&amp;lt;String, Object&amp;gt; contentProperties = new HashMap&amp;lt;String, Object&amp;gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; contentProperties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; contentProperties.put(PropertyIds.NAME, name);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; contentProperties.put("cm:description", "Test");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; byte[] content = "This is a test".getBytes();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; InputStream stream = new ByteArrayInputStream(content);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ContentStream contentStream = new ContentStreamImpl(name, new BigInteger(content), "text/plain", stream);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Document document =&amp;nbsp; newFolder.createDocument(contentProperties, contentStream, null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please advice!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 21:26:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275806#M228936</guid>
      <dc:creator>sumantapakira</dc:creator>
      <dc:date>2013-01-16T21:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: set cm:description properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275807#M228937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;sumantapakira,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please follow the example Mark Rogers linked to in his post. The description is part of the titled aspect. You must therefore use the OpenCMIS extension for Alfresco because CMIS 1.0 does not support aspects. The page he referenced has the exact example of setting the description field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that doesn't work, respond with the specific version of OpenCMIS you are using, your Alfresco version, which binding you are using, your CMIS URL, and any error message you are seeing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 20:05:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275807#M228937</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2013-01-18T20:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: set cm:description properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275808#M228938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am getting the same error (Bad Request) like the folks above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Alfresco 3.4.a (unfortunately stuck their). OpenCmis (0.8.0) and alfresco-opencmis-extension (0.8)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;..&lt;BR /&gt;parameter.put(SessionParameter.ATOMPUB_URL, "&lt;A href="http://localhost:8101/alfresco/service/cmis" rel="nofollow noopener noreferrer"&gt;http://localhost:8101/alfresco/service/cmis&lt;/A&gt;");&lt;BR /&gt;parameter.put(SessionParameter.BINDING_TYPE,BindingType.ATOMPUB.value());&lt;BR /&gt;parameter.put(SessionParameter.OBJECT_FACTORY_CLASS,"org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And the part where I want to add the metadata:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;metadata.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document,P:cm:titled");&lt;BR /&gt;metadata.put("cm:description", "DY Description");&lt;BR /&gt;//metadata is something like: {cm:description=DY Description, cmis:objectTypeId=cmis:document,P:cm:titled, cmis:name=Some Benefits Guide}&lt;BR /&gt;try{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; document = parentFolder.createDocument(metadata, contentStream, null);&amp;nbsp; //This throws the error&lt;BR /&gt;….&lt;BR /&gt;…&lt;BR /&gt;} catch (CmisInvalidArgumentException ciae) {&lt;BR /&gt;//…IT COMES HERE Saying :&lt;BR /&gt;//org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Bad Request&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;As the gentlmas stated, if I removed the P:cm:titled and the cm:description, the document loads but I am not sure what I am doing wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 03:43:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-cm-description-properties/m-p/275808#M228938</guid>
      <dc:creator>dawit</dc:creator>
      <dc:date>2014-08-28T03:43:00Z</dc:date>
    </item>
  </channel>
</rss>

