<?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 hidden aspect using cmis in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/hidden-aspect-using-cmis/m-p/66181#M22313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to add a hidden secondary type to a document using CMIS but can't seem to get it to stay.&amp;nbsp; Here is an example using the groovy console from CMIS Workbench:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; org&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;apache&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;chemistry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;opencmis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;commons&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;*&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; org&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;apache&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;chemistry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;opencmis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;commons&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;data&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;*&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; org&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;apache&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;chemistry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;opencmis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;commons&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;enums&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;*&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; org&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;apache&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;chemistry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;opencmis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;client&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;api&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;*&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; org&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;apache&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;chemistry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;opencmis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;client&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;util&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;*&lt;BR /&gt;&lt;BR /&gt;def cmiso &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; session&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getObjectByPath&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"/User Homes/JoshWasHere.txt"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;def secondaryTypes &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; cmiso&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getPropertyValue&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"cmis:secondaryObjectTypeIds"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;secondaryTypes&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;add&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"P:dp:restrictable"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;secondaryTypes&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;add&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"P:sys:hidden"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;def properties &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;HashMap&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;String&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Object&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;properties&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;put&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"cmis:secondaryObjectTypeIds"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; secondaryTypes&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;cmiso&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;updateProperties&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt; cmiso&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getPropertyValue&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"cmis:secondaryObjectTypeIds"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The Result:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Result: [P:dp:restrictable, P:cm:titled, P:cm:generalclassifiable, P:sys:localized, P:cm:taggable, P:cm:author]&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So one of the two secondary types I've added stays.&amp;nbsp; I don't see any errors in the web server logs. The closest thing I see that might be related is&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;PolicyTypeDefintionWrapper [http-nio-8080-exec-5]: Not a policy: {http://www.alfresco.org/model/cmis/1.0/cs01ext}aspects &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Are there limitation on what secondary types can be added to specific types?&amp;nbsp; Why can't I add the hidden secondary type to this document?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2018 17:20:36 GMT</pubDate>
    <dc:creator>jaxtell</dc:creator>
    <dc:date>2018-08-28T17:20:36Z</dc:date>
    <item>
      <title>hidden aspect using cmis</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/hidden-aspect-using-cmis/m-p/66181#M22313</link>
      <description>I'm trying to add a hidden secondary type to a document using CMIS but can't seem to get it to stay.&amp;nbsp; Here is an example using the groovy console from CMIS Workbench:import org.apache.chemistry.opencmis.commons.*import org.apache.chemistry.opencmis.commons.data.*import org.apache.chemistry.opencmis.</description>
      <pubDate>Tue, 28 Aug 2018 17:20:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/hidden-aspect-using-cmis/m-p/66181#M22313</guid>
      <dc:creator>jaxtell</dc:creator>
      <dc:date>2018-08-28T17:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: hidden aspect using cmis</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/hidden-aspect-using-cmis/m-p/66182#M22314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works for me on my machine as-written with no changes other than changing the path to the object and removing the P:db:restrictable addition:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="margin-top: 0;"&gt;Result: [P:cm&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;wnable, P:cm:titled, P:sys:cascadeUpdate, P:cm:taggable, P:sys:localized, P:cm:author, P:sys:hidden]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Do a cmiso.getAllowableActions() call and make sure CAN_UPDATE_PROPERTIES is in the list:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Result: Allowable Actions [allowable actions=[CAN_DELETE_OBJECT, CAN_UPDATE_PROPERTIES, CAN_GET_PROPERTIES, CAN_GET_OBJECT_RELATIONSHIPS, CAN_GET_OBJECT_PARENTS, CAN_MOVE_OBJECT, CAN_DELETE_CONTENT_STREAM, CAN_CHECK_OUT, CAN_SET_CONTENT_STREAM, CAN_GET_ALL_VERSIONS, CAN_ADD_OBJECT_TO_FOLDER, CAN_REMOVE_OBJECT_FROM_FOLDER, CAN_GET_CONTENT_STREAM, CAN_GET_APPLIED_POLICIES, CAN_CREATE_RELATIONSHIP, CAN_GET_RENDITIONS, CAN_GET_ACL, CAN_APPLY_ACL]][extensions=null]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is Alfresco Community Edition 5.2 (201707-GA) and an ancient version of Workbench (0.11.0) hitting the browser binding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 22:18:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/hidden-aspect-using-cmis/m-p/66182#M22314</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-08-29T22:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: hidden aspect using cmis</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/hidden-aspect-using-cmis/m-p/66183#M22315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response.&amp;nbsp; That is interesting.&amp;nbsp; I'm running Alfresco&lt;/P&gt;&lt;PRE style="color: #000000;"&gt;Community v6.0.7 (rb4fe76b5-b113) schema 10,201 &lt;/PRE&gt;&lt;P&gt;and Workbench&lt;/P&gt;&lt;P&gt;Version: 1.1.0 / Revision: 1789681 / Build: 2017-03-31T15:16:03+0200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll see if I can reproduce the issue in 5.2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt; It works for me on my 5.2 installation.&amp;nbsp; Either it's an issue with 6.0, or I somehow managed to partially break my 6.0 installation.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT:&amp;nbsp;&lt;/STRONG&gt;I just followed the instructions at&amp;nbsp;&lt;A href="https://community.alfresco.com/community/ecm/blog/2018/07/12/deploying-alfresco-content-services-community-edition-201806-ga" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/community/ecm/blog/2018/07/12/deploying-alfresco-content-services-community-edition-201806-ga&lt;/A&gt;&amp;nbsp; and deployed the latest using docker-compose.&amp;nbsp; Version&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #000000;"&gt;Community Early Access v6.1.0 (r9b51cf44-b140) schema 10,301&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;I have the same issue on 6.1.0-EA that I have on my 6.0.7 installation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 14:13:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/hidden-aspect-using-cmis/m-p/66183#M22315</guid>
      <dc:creator>jaxtell</dc:creator>
      <dc:date>2018-08-30T14:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: hidden aspect using cmis</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/hidden-aspect-using-cmis/m-p/66184#M22316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can confirm that the script I used that worked on 5.2 does not work when run against 6.0 (201806 GA) from Workbench 1.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should look in Jira and see if there is an issue related to this and file one, if not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 21:27:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/hidden-aspect-using-cmis/m-p/66184#M22316</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-09-07T21:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: hidden aspect using cmis</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/hidden-aspect-using-cmis/m-p/66185#M22317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; I opened&amp;nbsp;&lt;A class="link-titled" href="https://issues.alfresco.com/jira/browse/ALF-22019" title="https://issues.alfresco.com/jira/browse/ALF-22019" rel="nofollow noopener noreferrer"&gt;[ALF-22019] Unable to set secondary type "P:sys:hidden" on document using CMIS client - Alfresco JIRA&lt;/A&gt;&amp;nbsp;&amp;nbsp;and it was closed as expected behavior.&amp;nbsp; Apparently being able to add sys secodary types via cmis client in 5.2 is a bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 12:49:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/hidden-aspect-using-cmis/m-p/66185#M22317</guid>
      <dc:creator>jaxtell</dc:creator>
      <dc:date>2018-09-10T12:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: hidden aspect using cmis</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/hidden-aspect-using-cmis/m-p/66186#M22318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just in case others don't follow the Jira link, Alfresco considers this not to be a bug but an intentional change in behavior. They no longer allow you to add aspects in the "sys" namespace to objects via CMIS. Those aspects are considered internal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 17:34:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/hidden-aspect-using-cmis/m-p/66186#M22318</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-09-11T17:34:21Z</dc:date>
    </item>
  </channel>
</rss>

