<?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: Addressability - ticket in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22729#M10970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ludo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OK I've taken a look at this. Looks like there are several different issues:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Access of a TemplateContentServlet URL via web-services:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Both the template (bbdb0d02-bf1e-11da-b13d-a3865ffc66cb) and the content(df37eedb-a2c6-11da-8077-1ba20ed81776) referred to in this URL live under the "Guest Home" space and are hence, password free.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I think the problem is that you are missing the "guest=true" URL argument - this is mandatory for the login page not to be displayed by default, which is why it works once you login as admin. If this argument is not being supplied on your URL then you will be getting the login page HTML returned as the response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Use of a TICKET url with the TemplateContentServlet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;A href="http://pc3678.imec.be:8080/alfresco/template/workspace/SpacesStore/f6670007-ca0a-11da-9d40-1b26ba64545d/workspace/SpacesStore/8543a421-ca09-11da-9d40-1b26ba64545d?ticket=TICKET_8991a967-cb8e-11da-8775-850563619a4e" rel="nofollow noopener noreferrer"&gt;http://pc3678.imec.be:8080/alfresco/template/workspace/SpacesStore/f6670007-ca0a-11da-9d40-1b26ba64545d/workspace/SpacesStore/8543a421-ca09-11da-9d40-1b26ba64545d?ticket=TICKET_8991a967-cb8e-11da-8775-850563619a4e&lt;/A&gt;&lt;BR /&gt;I get an exception report again, despite the fact that content, template and ticket references are correct. However, if I print the URL and copy/paste it in a browser, I get the correct page.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;It looks like the TemplateContentServlet is not compatible with TICKET style URL access! Unfortunately the code for the default template model generation requires the "current user" object to be available in the web-session, but the TICKET authentication code path does not perform that step when authenticating an existing TICKET string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a bug. We will raise and fix that issue. Hopefully though the "guest=true" URL argument will allow you to use the servlet for now.&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, 21 Apr 2006 14:37:17 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2006-04-21T14:37:17Z</dc:date>
    <item>
      <title>Addressability - ticket</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22725#M10966</link>
      <description>Hi,I do like the TemplateContentServlet facility. I'd like to use it to develop a custom web interface on top of Alfresco. This works fine for content to be served from the "Guest Home", because you don't need to specify account credentials. What about content that is protected by a username/passwor</description>
      <pubDate>Fri, 24 Mar 2006 07:46:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22725#M10966</guid>
      <dc:creator>omegerard</dc:creator>
      <dc:date>2006-03-24T07:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Addressability - ticket</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22726#M10967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ludo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the ticket can be passed to this servlet as the parameter ?ticket=the-current-ticket-value appended to the URL.&amp;nbsp; This is the same way authentication information is also sent to the download servlet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are calling from a web service client then you will have the ticket available to you for the session (supplied by the AuthenticationWebService), otherwise you can get the ticket from the AuthenticationService Java API using getCurrentTicket().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 10:49:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22726#M10967</guid>
      <dc:creator>rwetherall</dc:creator>
      <dc:date>2006-03-24T10:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Addressability - ticket</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22727#M10968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Roy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tested it in a PHP environment. With partial success. The ticket supplied as a parameter in the URL appears to be insufficient. The user needs to be logged on to the web interface for it to take effect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the AuthenticationService PHP API to obtain a ticket from Alfresco (e.g. TICKET_1ce38104-d025-11da-909e-e9c04a70233d). When I add this ticket as a parameter to the TemplateContentServlet URL, I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;type Exception report&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;description The server encountered an internal error () that prevented it from fulfilling this request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.error.AlfrescoRuntimeException: Error during template servlet processing: Current User is mandatory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.alfresco.web.app.servlet.TemplateContentServlet.doGet(TemplateContentServlet.java:205)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:689)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:802)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The full URL used is: &lt;/SPAN&gt;&lt;A href="http://server:8080/alfresco/template/workspace/SpacesStore/f6670007-ca0a-11da-9d40-1b26ba64545d/workspace/SpacesStore/8543a421-ca09-11da-9d40-1b26ba64545d?ticket=TICKET_1ce38104-d025-11da-909e-e9c04a70233d" rel="nofollow noopener noreferrer"&gt;http://server:8080/alfresco/template/workspace/SpacesStore/f6670007-ca0a-11da-9d40-1b26ba64545d/workspace/SpacesStore/8543a421-ca09-11da-9d40-1b26ba64545d?ticket=TICKET_1ce38104-d025-11da-909e-e9c04a70233d&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, if I open up a new tab in my browser to log on to Alfresco via the "standard" web interface, and I reload the URL, the requested content IS displayed in the expected Freemarker template. This appears to work even if I log on with another account as with the one I obtained the ticket.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your information, I'm testing Alfresco on a Linux platform&amp;nbsp; (Current version 1.2.1 schema 12 - Installed version 1.2.0 (RC2)&amp;nbsp; schema 5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anybody else observed a similar behaviour?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ludo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 04:43:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22727#M10968</guid>
      <dc:creator>omegerard</dc:creator>
      <dc:date>2006-04-20T04:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Addressability - ticket</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22728#M10969</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;Let me just add one detail which I think is important here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the TemplateContentServlet URL produces the reported error message and I log on to Alfresco on another computer (with whatever account), I still get the same error. This sems to point in the direction of a cookie issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ludo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 08:28:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22728#M10969</guid>
      <dc:creator>omegerard</dc:creator>
      <dc:date>2006-04-20T08:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Addressability - ticket</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22729#M10970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ludo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OK I've taken a look at this. Looks like there are several different issues:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Access of a TemplateContentServlet URL via web-services:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Both the template (bbdb0d02-bf1e-11da-b13d-a3865ffc66cb) and the content(df37eedb-a2c6-11da-8077-1ba20ed81776) referred to in this URL live under the "Guest Home" space and are hence, password free.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I think the problem is that you are missing the "guest=true" URL argument - this is mandatory for the login page not to be displayed by default, which is why it works once you login as admin. If this argument is not being supplied on your URL then you will be getting the login page HTML returned as the response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Use of a TICKET url with the TemplateContentServlet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;A href="http://pc3678.imec.be:8080/alfresco/template/workspace/SpacesStore/f6670007-ca0a-11da-9d40-1b26ba64545d/workspace/SpacesStore/8543a421-ca09-11da-9d40-1b26ba64545d?ticket=TICKET_8991a967-cb8e-11da-8775-850563619a4e" rel="nofollow noopener noreferrer"&gt;http://pc3678.imec.be:8080/alfresco/template/workspace/SpacesStore/f6670007-ca0a-11da-9d40-1b26ba64545d/workspace/SpacesStore/8543a421-ca09-11da-9d40-1b26ba64545d?ticket=TICKET_8991a967-cb8e-11da-8775-850563619a4e&lt;/A&gt;&lt;BR /&gt;I get an exception report again, despite the fact that content, template and ticket references are correct. However, if I print the URL and copy/paste it in a browser, I get the correct page.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;It looks like the TemplateContentServlet is not compatible with TICKET style URL access! Unfortunately the code for the default template model generation requires the "current user" object to be available in the web-session, but the TICKET authentication code path does not perform that step when authenticating an existing TICKET string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a bug. We will raise and fix that issue. Hopefully though the "guest=true" URL argument will allow you to use the servlet for now.&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, 21 Apr 2006 14:37:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22729#M10970</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-04-21T14:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Addressability - ticket</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22730#M10971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;JIRA task for the TICKET issue with TemplateContentServlet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.alfresco.org/jira/browse/AWC-635" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/jira/browse/AWC-635&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2006 16:50:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22730#M10971</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-04-21T16:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Addressability - ticket</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22731#M10972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kevin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;1. Access of a TemplateContentServlet URL via web-services&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think the problem is that you are missing the "guest=true" URL argument&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Correct. If I add the argument, there's no login page anymore.&lt;/UL&gt;&lt;BR /&gt;&lt;UL&gt;2. Use of a TICKET url with the TemplateContentServlet:&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is a bug. We will raise and fix that issue.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;That's a relief. At least, for me.&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Ludo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 06:36:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22731#M10972</guid>
      <dc:creator>omegerard</dc:creator>
      <dc:date>2006-04-24T06:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Addressability - ticket</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22732#M10973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to let you know that I downloaded a 1.3.0 prerelease version from subversion and tested this again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can confirm that the ticket authentication is in working order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for dealing with it so promptly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ludo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 09:00:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22732#M10973</guid>
      <dc:creator>omegerard</dc:creator>
      <dc:date>2006-05-12T09:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Addressability - ticket</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22733#M10974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No problem, it was a bug I introduced after all &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&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, 12 May 2006 09:41:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/addressability-ticket/m-p/22733#M10974</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-05-12T09:41:43Z</dc:date>
    </item>
  </channel>
</rss>

