<?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 Url Addressability-Direct download to no guest users in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/url-addressability-direct-download-to-no-guest-users/m-p/111388#M78309</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;After reading carefully the wiki documentation about the URL Addressability some doubts remain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;My situation is the following&lt;/EM&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a &lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;custom web application that access the Alfresco repository &lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;(Alfresco 1.4 but 2.0 in the very next future) calling c&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;ustom web services &lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;published into the Alfresco installation itself. These web services are built on top of the Alfresco core APIs, are public available like other Alfresco ws and execute a specialised task upon the Alfresco repository objects, obviously each ws opens a new session, authenticates the current user, execute a task, then close the session. As a consequence, I suppose the user ticket is available only during the session itself and is automatically destroyed when the session is closed. &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;My custom web application needs to access directly some contents in the Alfresco repository, for both viewing and downloading.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to use the &lt;/SPAN&gt;&lt;STRONG&gt;DownloadContentServlet &lt;/STRONG&gt;&lt;SPAN&gt;passing a URL with the reference to the content to download, but….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Due to the authentication mechanism, the only way to perform this task is to provide a valid ticket as a parameter to the URL, but I think I am not allowed to do it because I don't have a valid ticket inside my custom web application. So, what other mechanism to download contents should I use?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to use the &lt;/SPAN&gt;&lt;STRONG&gt;GuestDownloadContentServlet&lt;/STRONG&gt;&lt;SPAN&gt;, it works if and only if the Alfresco content is available to a guest user, but I don't have guest users in my custom web application, I have only registered ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, what is the best solution for my problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps, should I write a custom Java class that uses the Alfresco APIs to authenticate a user and deploy it directly inside the Tomcat installation for my custom web app? Should this class create a new session with the logged user, get a user ticket, invoking the direct download servlet, then close the session?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hoping someone could help me with this task,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;all the best.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sergio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2007 09:17:27 GMT</pubDate>
    <dc:creator>sergio</dc:creator>
    <dc:date>2007-04-12T09:17:27Z</dc:date>
    <item>
      <title>Url Addressability-Direct download to no guest users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/url-addressability-direct-download-to-no-guest-users/m-p/111388#M78309</link>
      <description>Hi all.After reading carefully the wiki documentation about the URL Addressability some doubts remain.My situation is the following:I have a custom web application that access the Alfresco repository (Alfresco 1.4 but 2.0 in the very next future) calling custom web services published into the Alfres</description>
      <pubDate>Thu, 12 Apr 2007 09:17:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/url-addressability-direct-download-to-no-guest-users/m-p/111388#M78309</guid>
      <dc:creator>sergio</dc:creator>
      <dc:date>2007-04-12T09:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Url Addressability-Direct download to no guest users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/url-addressability-direct-download-to-no-guest-users/m-p/111389#M78310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No one interested in replying to this basic problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to hear something from the Alfresco engineers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All the best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sergio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 11:52:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/url-addressability-direct-download-to-no-guest-users/m-p/111389#M78310</guid>
      <dc:creator>sergio</dc:creator>
      <dc:date>2007-04-20T11:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Url Addressability-Direct download to no guest users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/url-addressability-direct-download-to-no-guest-users/m-p/111390#M78311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I would like to use the &lt;STRONG&gt;DownloadContentServlet &lt;/STRONG&gt;passing a URL with the reference to the content to download, but….&lt;BR /&gt;Due to the authentication mechanism, the only way to perform this task is to provide a valid ticket as a parameter to the URL, but I think I am not allowed to do it because I don't have a valid ticket inside my custom web application. So, what other mechanism to download contents should I use?&lt;BR /&gt;&lt;BR /&gt;I tried to use the &lt;STRONG&gt;GuestDownloadContentServlet&lt;/STRONG&gt;, it works if and only if the Alfresco content is available to a guest user, but I don't have guest users in my custom web application, I have only registered ones.&lt;BR /&gt;&lt;BR /&gt;So, what is the best solution for my problem?&lt;BR /&gt;&lt;BR /&gt;Perhaps, should I write a custom Java class that uses the Alfresco APIs to authenticate a user and deploy it directly inside the Tomcat installation for my custom web app? Should this class create a new session with the logged user, get a user ticket, invoking the direct download servlet, then close the session?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes that is probably the best way. You require a ticket - it is essential for the security of the repository that you login to access the content. A simple webservices call is enough to retrieve a valid ticket.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 13:06:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/url-addressability-direct-download-to-no-guest-users/m-p/111390#M78311</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-04-20T13:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Url Addressability-Direct download to no guest users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/url-addressability-direct-download-to-no-guest-users/m-p/111391#M78312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Kevin!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At least an answer from the Alfresco engineers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sergio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 14:19:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/url-addressability-direct-download-to-no-guest-users/m-p/111391#M78312</guid>
      <dc:creator>sergio</dc:creator>
      <dc:date>2007-04-20T14:19:11Z</dc:date>
    </item>
  </channel>
</rss>

