<?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: Unable to create folder via OpenCMIS in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215781#M168911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome.&amp;nbsp; That seems to be working!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 May 2010 13:43:53 GMT</pubDate>
    <dc:creator>unknown-user</dc:creator>
    <dc:date>2010-05-04T13:43:53Z</dc:date>
    <item>
      <title>Unable to create folder via OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215772#M168902</link>
      <description>I am doing some basic exploration of CMIS and Alfresco.&amp;nbsp; I am running Alfresco 3.3. Community Edition locally and most things have worked well.Currently I am trying to use OpenCMIS.&amp;nbsp; I am able to login, get repository information and navigate without issue; what I can't seem to do is create a folder</description>
      <pubDate>Wed, 28 Apr 2010 16:50:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215772#M168902</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2010-04-28T16:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create folder via OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215773#M168903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After some digging, I am beginning to wonder if this is bug in OpenCMIS.&amp;nbsp; When I ran the test via the Atom bindings, it said that I needed to provide "cmisObjectTypeId", but I had done that!&amp;nbsp; So I started tracing the OpenCMIS code and I could see that where it validated my properties (something it does not do with the web service bindings) I could see clearly that it only had "cmis:name", something had removed "cmisObjectTypeId".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tracked this to PersistentObjectFactoryImpl, line 501 which gets invoked with the "READWRITE" and "ONCREATE" updatability filters ("…" is for code I have skipped)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;public PropertiesData convertProperties(Map&amp;lt;String, ?&amp;gt; properties, ObjectType type,&amp;nbsp; Set&amp;lt;Updatability&amp;gt; updatabilityFilter) {&lt;BR /&gt;…&lt;BR /&gt;// get the type&lt;BR /&gt;if (type == null) {&lt;BR /&gt;&amp;nbsp; Object typeId = properties.get(PropertyIds.CMIS_OBJECT_TYPE_ID);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; if (!(typeId instanceof String)) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;throw new IllegalArgumentException("Type or type property must be set!");&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; type = session.getTypeDefinition(typeId.toString());&lt;BR /&gt;}&lt;BR /&gt;…&lt;BR /&gt;// the big loop&lt;BR /&gt;for (Map.Entry&amp;lt;String, ?&amp;gt; property : properties.entrySet()) {&lt;BR /&gt;…&lt;BR /&gt;&amp;nbsp; String id = property.getKey();&lt;BR /&gt;&amp;nbsp; Object value = property.getValue();&lt;BR /&gt;…&lt;BR /&gt;&amp;nbsp; // get the property definition&lt;BR /&gt;&amp;nbsp; PropertyDefinition&amp;lt;?&amp;gt; definition = type.getPropertyDefintions().get(id);&lt;BR /&gt;..&lt;BR /&gt;&amp;nbsp; // check updatability&lt;BR /&gt;&amp;nbsp; if (updatabilityFilter != null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (!updatability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lt;SPAN&gt;I can see that the definition reports the updatability as "READONLY" for the type property and thus it gets skipped, meaning that later on it complains that "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" is missing.&amp;nbsp; I modified the values at run time and forced it to keep "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;nbsp; Creation worked perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This doesn't make much sense to me.&amp;nbsp; During creation you need to be able to set the object type, after that it is fixed.&amp;nbsp; So either I am invoking OpenCMIS incorrectly, Alfresco is reporting value incorrectly or there is a bug within OpenCMIS.&amp;nbsp; I hope this helps someone help me!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 17:31:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215773#M168903</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2010-04-28T17:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create folder via OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215774#M168904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having the same problem !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even after specifying 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 it asks for it !!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 09:52:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215774#M168904</guid>
      <dc:creator>nikes</dc:creator>
      <dc:date>2010-04-29T09:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create folder via OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215775#M168905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hey guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm dealing with CMIS since a few weeks within the scope of my pracitical work. Also I am using the OpenCMIS framework, which is honestly poorly documented. After browsing through the source code, i got a lot of things realized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here my way to create a folder:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ArrayList&amp;lt;Property&amp;lt;?&amp;gt;&amp;gt; propertyData = new ArrayList&amp;lt;Property&amp;lt;?&amp;gt;&amp;gt;();&lt;BR /&gt;&lt;BR /&gt;//Necessary properties&lt;BR /&gt;propertyData.add(session.getProvider().getObjectFactory().createPropertyStringData(PropertyIds.CMIS_NAME, "folderName"));&lt;BR /&gt;propertyData.add(session.getProvider().getObjectFactory().createPropertyIdData(PropertyIds.CMIS_OBJECT_TYPE_ID, "cmis:folder"));&lt;BR /&gt;&lt;BR /&gt;//Create folder&lt;BR /&gt;session.getProvider().getObjectService().createFolder(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; session.getRepositoryInfo().getId(), //Repository ID&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; session.getProvider().getObjectFactory().createPropertiesData(propertyData), //Properties&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; parentFolderId, //Parent folder ID&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; null, //Policies&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; null, //AccessControlList add&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; null, //AccessControlList remove&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; null); //ExtensionsData&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;/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;SPAN&gt;The id of the folder is returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards, gclaussn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 10:34:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215775#M168905</guid>
      <dc:creator>gclaussn</dc:creator>
      <dc:date>2010-04-29T10:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create folder via OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215776#M168906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wrote a lot of the OpenCMIS code, so I can comment on that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@J.I.: That's an Alfresco bug. The CMIS spec defines the updatability of 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 as ONCREATE but Alfresco returns READONLY. Since OpenCMIS filters all READONLY properties to create a spec compliant request, 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 is filtered as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@gclaussn: You are right, we have to work on the documentation. You are using the provider API (which was recently renamed to client binding API). For this API the CMIS specification could serve as the documentation. You already found the object factory. That should be all you need. You might want to switch to client API, though. It's more intuitive.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 13:20:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215776#M168906</guid>
      <dc:creator>fmui</dc:creator>
      <dc:date>2010-04-29T13:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create folder via OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215777#M168907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi fmui,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the advice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm already using a lot of CMIS material, especially the CMIS Specification Template (&lt;/SPAN&gt;&lt;A href="http://docs.oasis-open.org/cmis/CMIS/v1.0/cmis-spec-v1.0.html" rel="nofollow noopener noreferrer"&gt;http://docs.oasis-open.org/cmis/CMIS/v1.0/cmis-spec-v1.0.html&lt;/A&gt;&lt;SPAN&gt;), which should help beginners to deal with CMIS (hint from me for all others).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 13:45:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215777#M168907</guid>
      <dc:creator>gclaussn</dc:creator>
      <dc:date>2010-04-29T13:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create folder via OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215778#M168908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks fmui.&amp;nbsp; I thought I was going crazy.&amp;nbsp; I will see if I can raise a bug against Alfresco for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just create ALF-2637 &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/jira/browse/ALF-2637" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/jira/browse/ALF-2637&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have already read a lot of the spec, but it raises more questions than it answers.&amp;nbsp; &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I check for group membership?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I get a list of users with a specific permission? etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 13:47:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215778#M168908</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2010-04-29T13:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create folder via OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215779#M168909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for investigating and reporting this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We'll fix it for our imminent 3.3g Community release.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 08:59:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215779#M168909</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2010-04-30T08:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create folder via OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215780#M168910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The fix is now available in SVN HEAD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope to update cmis.alfresco.com to latest HEAD by end of today.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It'll be in 3.3g which will be released imminently.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 09:50:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215780#M168910</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2010-04-30T09:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create folder via OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215781#M168911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome.&amp;nbsp; That seems to be working!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 13:43:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-create-folder-via-opencmis/m-p/215781#M168911</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2010-05-04T13:43:53Z</dc:date>
    </item>
  </channel>
</rss>

