<?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 How do I get the RootFolderID? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-the-rootfolderid/m-p/277027#M230157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am developing an iPhone app that should connect to an alfresco repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I have accomplished today is that I have been able to do the following using the REST interface:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Login&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Get repository Info&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I request the repository Info using the following call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/service/api/repository&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/service/api/cmis&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both calls give me the same response …&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The response is valid xml that contains all sorts of info about the repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The line that I am interested in is the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;cmis:rootFolderId&amp;gt;&lt;/SPAN&gt;&lt;A href="http://sub.mydomain.net:10265/alfresco/service/api/path/workspace/SpacesStore/Company%20Home" rel="nofollow noopener noreferrer"&gt;http://sub.mydomain.net:10265/alfresco/service/api/path/workspace/SpacesStore/Company%20Home&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/cmis:rootFolderId&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the rootFolderId that I need to call for instance the 'descendants' Service??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do that … I get an error (Not Found).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I trim the first bit off (and keep all after 'alfresco') I get a NotFound error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it is kinda strange that I get a URL as the rootFolderId … while 'all' other folder-id's are generated id's like 9f6000a8-9484-11dc-90b9-7fa4aa914986&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I login on the website and view the source of the pages, I do find some id's in the html … When I use these folder id's for the descendants call, I do get a very nice response!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I proceed from here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wouter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2011 11:40:44 GMT</pubDate>
    <dc:creator>wouter</dc:creator>
    <dc:date>2011-06-15T11:40:44Z</dc:date>
    <item>
      <title>How do I get the RootFolderID?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-the-rootfolderid/m-p/277027#M230157</link>
      <description>Hi,I am developing an iPhone app that should connect to an alfresco repository.What I have accomplished today is that I have been able to do the following using the REST interface:- Login- Get repository InfoI request the repository Info using the following call:/service/api/repositoryor/service/api</description>
      <pubDate>Wed, 15 Jun 2011 11:40:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-the-rootfolderid/m-p/277027#M230157</guid>
      <dc:creator>wouter</dc:creator>
      <dc:date>2011-06-15T11:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the RootFolderID?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-the-rootfolderid/m-p/277028#M230158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Wouter,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is the root folder id which is an id within the repository and there is the root folder collection which is represented by a URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to call getDescendants() you have to use the root folder collection URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look for:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;collection href="http://…"&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;atom:title&amp;gt;root collection&amp;lt;/atom:title&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cmisra:collectionType&amp;gt;root&amp;lt;/cmisra:collectionType&amp;gt;&lt;BR /&gt;&amp;lt;/collection&amp;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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Florian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 12:19:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-the-rootfolderid/m-p/277028#M230158</guid>
      <dc:creator>fmui</dc:creator>
      <dc:date>2011-06-15T12:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the RootFolderID?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-the-rootfolderid/m-p/277029#M230159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Florian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the repositoryInfo I did find the xml that you mentioned:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;collection href="&lt;A href="http://domain.com/alfresco/service/api/path/workspace/SpacesStore/Company%20Home/descendants" rel="nofollow noopener noreferrer"&gt;http://domain.com/alfresco/service/api/path/workspace/SpacesStore/Company%20Home/descendants&lt;/A&gt;" cmis:collectionType="root-descendants"&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;atom:title&amp;gt;root collection&amp;lt;/atom:title&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/collection&amp;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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;However, we access 'everything' over https, so we rewrite the url to what we want it to be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do that … I get the exact same error that I got earlier:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;The Web Script &amp;lt;a href="/corporate/alfresco/alfresco/service/api/node/workspace/SpacesStore/Company Home/descendants?alf_ticket=TICKET_xxx&amp;gt;/alfresco/service/api/node/workspace/SpacesStore/Company Home/descendants&amp;lt;/a&amp;gt; has responded with a status of 404 - Not Found.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;When I replace the 'Company%20Home' in the url that I call with a valid identifier (like 9f6000a8-9484-11dc-90b9-7fa4aa914986) … then I get a perfect response, so (the rest of) the url seems fine!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I must be doing something wrong, but I cannot figure out what.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps Alfresco does not like the fact that we rewrite the url (which the web server should be doing, I guess) ?? But that Alfresco only objects to that when requesting the RootFolderId … &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wouter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 13:16:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-the-rootfolderid/m-p/277029#M230159</guid>
      <dc:creator>wouter</dc:creator>
      <dc:date>2011-06-15T13:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the RootFolderID?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-the-rootfolderid/m-p/277030#M230160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't reproduce the URLs you are seeing. Is it possible that you are using a fairly old Alfresco release?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Florian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 19:16:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-the-rootfolderid/m-p/277030#M230160</guid>
      <dc:creator>fmui</dc:creator>
      <dc:date>2011-06-16T19:16:37Z</dc:date>
    </item>
  </channel>
</rss>

