<?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: How to generate document location url for previous verions using OpenCMIS in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-document-location-url-for-previous-verions-using/m-p/20548#M9040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We answered this in a separate thread so I'm going to mark this one as answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2017 18:29:25 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2017-10-11T18:29:25Z</dc:date>
    <item>
      <title>How to generate document location url for previous verions using OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-document-location-url-for-previous-verions-using/m-p/20545#M9037</link>
      <description>Hello All,I want to generate a url for&amp;nbsp;a previous version of a document using OpenCMIS library and Alfresco 5.My understanding is that previous version is to be obtained from version store:{serverhost&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;ort/regionalContext}/d/d/versionStore/version2Store/{nodeId}/{fileName}but OpenCMIS doesnt give me</description>
      <pubDate>Tue, 03 Oct 2017 10:55:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-document-location-url-for-previous-verions-using/m-p/20545#M9037</guid>
      <dc:creator>longinus</dc:creator>
      <dc:date>2017-10-03T10:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate document location url for previous verions using OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-document-location-url-for-previous-verions-using/m-p/20546#M9038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krzysztof,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose I create a document, sample-a.pdf, in Alfresco, and I version it twice by uploading new versions of the file, sample-b.pdf, and sample-c.pdf. I will end up with a version tree that looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample-c.pdf 3.0 (Current)&lt;/P&gt;&lt;P&gt;sample-b.pdf 2.0&lt;/P&gt;&lt;P&gt;sample-a.pdf 1.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything you need to be able to construct a download URL for each of those three versions is available from CMIS. To prove that, I'll launch Apache Chemistry OpenCMIS Workbench and connect to my Alfresco 5.2 repository using this service URL:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser" title="http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key piece of info that you may be missing is that there is a special property called alfcmis:nodeRef that contains the Alfresco node reference. That's critical for being able to reconstruct an Alfresco download URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CMIS object ID, CMIS download URL, alfcmis:nodeRef, cmis:name, and Alfresco Download URLs for each of the major versions is shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Version 1.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CMIS Object ID: 716668a8-9b95-427d-9818-7adebf31cee5%3B1.0&lt;BR /&gt;CMIS Download URL: &lt;A href="http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=716668a8-9b95-427d-9818-7adebf31cee5%3B1.0&amp;amp;cmisselector=content" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=716668a8-9b95-427d-9818-7adebf31cee5%3B1.0&amp;amp;cmisselector=content&lt;/A&gt;&lt;/P&gt;&lt;P&gt;alfcmis:nodeRef: &lt;STRONG&gt;versionStore://version2Store/524adbd3-d381-41f4-b7c6-2c0ab632774f&lt;/STRONG&gt;&lt;BR /&gt;cmis:name: sample-a.pdf&lt;BR /&gt;Alfresco Download URL (Share): &lt;A href="http://localhost:8080/share/proxy/alfresco/api/node/content/versionStore/version2Store/524adbd3-d381-41f4-b7c6-2c0ab632774f/sample-a.pdf" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/api/node/content/versionStore/version2Store/524adbd3-d381-41f4-b7c6-2c0ab632774f/sample-a.pdf&lt;/A&gt;&lt;BR /&gt;Alfresco Download URL (Alfresco): &lt;A href="http://localhost:8080/alfresco/s/api/node/content/versionStore/version2Store/524adbd3-d381-41f4-b7c6-2c0ab632774f/sample-a.pdf" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/api/node/content/versionStore/version2Store/524adbd3-d381-41f4-b7c6-2c0ab632774f/sample-a.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Version 2.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CMIS Object ID: 716668a8-9b95-427d-9818-7adebf31cee5%3B2.0&lt;BR /&gt;CMIS Download URL: &lt;A href="http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=716668a8-9b95-427d-9818-7adebf31cee5%3B2.0&amp;amp;cmisselector=content" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=716668a8-9b95-427d-9818-7adebf31cee5%3B2.0&amp;amp;cmisselector=content&lt;/A&gt;&lt;/P&gt;&lt;P&gt;alfcmis:nodeRef &lt;STRONG&gt;versionStore://version2Store/e39b9279-a2f6-4cb7-902c-e94d7efd4362&lt;/STRONG&gt;&lt;BR /&gt;cmis:name: sample-b.pdf&lt;BR /&gt;Alfresco Download URL (Share): &lt;A href="http://localhost:8080/share/proxy/alfresco/api/node/content/versionStore/version2Store/e39b9279-a2f6-4cb7-902c-e94d7efd4362/sample-b.pdf" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/api/node/content/versionStore/version2Store/e39b9279-a2f6-4cb7-902c-e94d7efd4362/sample-b.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Alfresco Download URL (Alfresco): &lt;A href="http://localhost:8080/alfresco/s/api/node/content/versionStore/version2Store/e39b9279-a2f6-4cb7-902c-e94d7efd4362/sample-b.pdf" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/api/node/content/versionStore/version2Store/e39b9279-a2f6-4cb7-902c-e94d7efd4362/sample-b.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Version 3.0 (Current)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CMIS Object ID: 716668a8-9b95-427d-9818-7adebf31cee5%3B3.0&lt;BR /&gt;CMIS Download URL: &lt;A href="http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=716668a8-9b95-427d-9818-7adebf31cee5%3B3.0&amp;amp;cmisselector=content" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=716668a8-9b95-427d-9818-7adebf31cee5%3B3.0&amp;amp;cmisselector=content&lt;/A&gt;&lt;/P&gt;&lt;P&gt;alfcmis:nodeRef: &lt;STRONG&gt;workspace://SpacesStore/716668a8-9b95-427d-9818-7adebf31cee5&lt;/STRONG&gt;&lt;BR /&gt;cmis:name: sample-c.pdf&lt;BR /&gt;Alfresco Download URL (Share): &lt;A href="http://localhost:8080/share/proxy/alfresco/api/node/content/workspace/SpacesStore/716668a8-9b95-427d-9818-7adebf31cee5/sample-c.pdf" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/api/node/content/workspace/SpacesStore/716668a8-9b95-427d-9818-7adebf31cee5/sample-c.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Alfresco Download URL (Alfresco): &lt;A href="http://localhost:8080/alfresco/s/api/node/content/workspace/SpacesStore/716668a8-9b95-427d-9818-7adebf31cee5/sample-c.pdf" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/api/node/content/workspace/SpacesStore/716668a8-9b95-427d-9818-7adebf31cee5/sample-c.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few different URLs in Alfresco that can be used to download, but they all use the node reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 16:19:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-document-location-url-for-previous-verions-using/m-p/20546#M9038</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-10-06T16:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate document location url for previous verions using OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-document-location-url-for-previous-verions-using/m-p/20547#M9039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much, Jeff. This has solved my versioning problem with atompub. I missed that property, as I have seen it for latest version only which was matching object id.My mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I switch to browser binding using the same service url as you do (&lt;SPAN style="color: #6a8759;"&gt;/api/-default-/public/cmis/versions/1.1/browser) i am getting repository id not set. It just gets overwritten to null by&amp;nbsp;&lt;/SPAN&gt;getRepositoryInfos() call. So not sure if it requires additional setup?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 11:19:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-document-location-url-for-previous-verions-using/m-p/20547#M9039</guid>
      <dc:creator>longinus</dc:creator>
      <dc:date>2017-10-10T11:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate document location url for previous verions using OpenCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-document-location-url-for-previous-verions-using/m-p/20548#M9040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We answered this in a separate thread so I'm going to mark this one as answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 18:29:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-generate-document-location-url-for-previous-verions-using/m-p/20548#M9040</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-10-11T18:29:25Z</dc:date>
    </item>
  </channel>
</rss>

