<?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 Accessing a File (URL) without uuid (by folder or folderId) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/accessing-a-file-url-without-uuid-by-folder-or-folderid/m-p/267814#M220944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;lets imagine some files in a Site Share Documents&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/testfolder/testsubfolder/test-1.png&lt;BR /&gt;/testfolder/testsubfolder/test-2.png&lt;SPAN class="line-numbers-rows"&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;the normal access to the file (to use as a link) is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost/share/proxy/alfresco/api/node/content/workspace/SpacesStore/39d8b5b5-6f66-4aae-a284-5a7f6487d64d/test-1.png" rel="nofollow noopener noreferrer"&gt;http://localhost/share/proxy/alfresco/api/node/content/workspace/SpacesStore/39d8b5b5-6f66-4aae-a284-5a7f6487d64d/test-1.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://localhost/share/proxy/alfresco/api/node/content/workspace/SpacesStore/8b5b39d5-84aa-664e-a6f2-f64864d7d5a7/test-2.png" rel="nofollow noopener noreferrer"&gt;http://localhost/share/proxy/alfresco/api/node/content/workspace/SpacesStore/8b5b39d5-84aa-664e-a6f2-f64864d7d5a7/test-2.png&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&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;what i like to have is something like that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost/share/proxy/alfresco/api/node/content/workspace/SpacesStore/{folder_ID}/test.png" rel="nofollow noopener noreferrer"&gt;http://localhost/share/proxy/alfresco/api/node/content/workspace/SpacesStore/{folder_ID}/test.png&lt;/A&gt;&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;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost/share/proxy/alfresco/api/node/content/workspace/SpacesStore/testfolder/testsubfolder/test.png" rel="nofollow noopener noreferrer"&gt;http://localhost/share/proxy/alfresco/api/node/content/workspace/SpacesStore/testfolder/testsubfolder/test.png&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;is something like that possible&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2011 16:18:08 GMT</pubDate>
    <dc:creator>alpe</dc:creator>
    <dc:date>2011-12-06T16:18:08Z</dc:date>
    <item>
      <title>Accessing a File (URL) without uuid (by folder or folderId)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-a-file-url-without-uuid-by-folder-or-folderid/m-p/267814#M220944</link>
      <description>lets imagine some files in a Site Share Documents/testfolder/testsubfolder/test-1.png/testfolder/testsubfolder/test-2.png‍‍the normal access to the file (to use as a link) is:http://localhost/share/proxy/alfresco/api/node/content/workspace/SpacesStore/39d8b5b5-6f66-4aae-a284-5a7f6487d64d/test-1.pngh</description>
      <pubDate>Tue, 06 Dec 2011 16:18:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-a-file-url-without-uuid-by-folder-or-folderid/m-p/267814#M220944</guid>
      <dc:creator>alpe</dc:creator>
      <dc:date>2011-12-06T16:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a File (URL) without uuid (by folder or folderId)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-a-file-url-without-uuid-by-folder-or-folderid/m-p/267815#M220945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I have a question about "does Alfresco have a URL that does XXXX?" I always start by looking at the Web Script Index. The Web Script Index for repository web scripts is accessible at &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/index" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/index&lt;/A&gt;&lt;SPAN&gt; while the Web Script Index for the Share web scripts is accessible at &lt;/SPAN&gt;&lt;A href="http://localhost:8080/share/service/index" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/service/index&lt;/A&gt;&lt;SPAN&gt;. (The web script engine runs on both the repo tier and the Share tier, each with a different set of web scripts and capabilities).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "getContent" URL you are referring to is a repository tier web script. You can tell that because the URL you provided uses Share's proxy servlet. In this case, Share is proxying that request back to the repository tier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you go to the repository Web Script index and search for something like "/api/node/content" you'll find the getContent web script. You'll note it has several possible URLs bound to it and that a few of them use the path rather than the node reference:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/alfresco/s/api/path/content{property}/{store_type}/{store_id}/{nodepath}?a={attach?}&amp;amp;streamId={streamId?}&lt;BR /&gt;/alfresco/s/api/path/{store_type}/{store_id}/{nodepath}/content{property}?a={attach?}&amp;amp;streamId={streamId?}&lt;BR /&gt;/alfresco/s/cmis/p/{path}/content{property}?a={attach?}&amp;amp;streamId={streamId?}&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;So, in your example, assuming your files were in a Share site called test-site-1, you could get to those documents like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost:8080/alfresco/s/api/path/content/workspace/SpacesStore//Sites/test-site-1/documentLibrary/testfolder/testsubfolder/test-1.png" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/api/path/content/workspace/SpacesStore//Sites/test-site-1/documentLibrary/testfolder/testsubfolder/test-1.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/s/api/path/content/workspace/SpacesStore//Sites/test-site-1/documentLibrary/testfolder/testsubfolder/test-2.png" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/api/path/content/workspace/SpacesStore//Sites/test-site-1/documentLibrary/testfolder/testsubfolder/test-2.png&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&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;(Even if you had found the right web script, that "documentLibrary" part of the path might have thrown you off because it isn't visible in the UI. To find stuff like that you should use the Node Browser, either in Explorer or in Alfresco 4 Share).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you wanted to hit the same web script through Share's proxy servlet, you would use this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost:8080/share/proxy/alfresco/api/path/content/workspace/SpacesStore//Sites/test-site-1/documentLibrary/testfolder/testsubfolder/test-1.png" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/api/path/content/workspace/SpacesStore//Sites/test-site-1/documentLibrary/testfolder/testsubfolder/test-1.png&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 15:06:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-a-file-url-without-uuid-by-folder-or-folderid/m-p/267815#M220945</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2011-12-08T15:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a File (URL) without uuid (by folder or folderId)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-a-file-url-without-uuid-by-folder-or-folderid/m-p/267816#M220946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually, in testing out the proxy version of that URL I think I may have found a bug. The proxy servlet appears to be stripping out the extra slash. I've filed a Jira on it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALF-11942" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/ALF-11942&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 15:41:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-a-file-url-without-uuid-by-folder-or-folderid/m-p/267816#M220946</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2011-12-08T15:41:37Z</dc:date>
    </item>
  </channel>
</rss>

