<?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: Download &amp; Template Servlet: Redirect? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/download-template-servlet-redirect/m-p/93245#M63788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If i have a invalid ticket or the user isn't authorized to access the document, a automatic redirect to the login page is performed. So there is no way to catch this error automatic besides parsing the servlet response.&lt;BR /&gt;&lt;BR /&gt;Why isn't the http status set to for example 401 - this could be caught by my application easily. As a side node: If i try to access a not existing alfresco node, a http 500 status is set.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Mainly because that was the mostly useful approach for our web-client app. It would be easy to make that change to the servlet (probably via a url argument). Please raise it in JIRA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a way to change the redirect behavior? The guest download template seems to operate like i described it in the previous paragraph.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The Guest Template Servlet should behave in the same way as it just calls the base template servlet but as the Guest user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a way to set the character encoding which is used for the output of the freemarker templates? This seems to be always latin 1 (ISO-8859-1). The mimetype could be set via a get parameter, why not the character set?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The charset can be set as part of the mimetype value i.e.&amp;nbsp; mimetype=text/html;charset=utf-8&amp;nbsp; however there was a bug in some of the template code that meant the charset was getting ignored in some cases. It should be fixed in 2.1.&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>Thu, 02 Aug 2007 10:53:34 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2007-08-02T10:53:34Z</dc:date>
    <item>
      <title>Download &amp; Template Servlet: Redirect?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/download-template-servlet-redirect/m-p/93244#M63787</link>
      <description>I'm using the download and the template servlet with a set of customized freemarker templates to provide customized xml to my application. If i have a invalid ticket or the user isn't authorized to access the document, a automatic redirect to the login page is performed. So there is no way to catch</description>
      <pubDate>Tue, 24 Jul 2007 08:05:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/download-template-servlet-redirect/m-p/93244#M63787</guid>
      <dc:creator>ironman77</dc:creator>
      <dc:date>2007-07-24T08:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Download &amp; Template Servlet: Redirect?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/download-template-servlet-redirect/m-p/93245#M63788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If i have a invalid ticket or the user isn't authorized to access the document, a automatic redirect to the login page is performed. So there is no way to catch this error automatic besides parsing the servlet response.&lt;BR /&gt;&lt;BR /&gt;Why isn't the http status set to for example 401 - this could be caught by my application easily. As a side node: If i try to access a not existing alfresco node, a http 500 status is set.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Mainly because that was the mostly useful approach for our web-client app. It would be easy to make that change to the servlet (probably via a url argument). Please raise it in JIRA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a way to change the redirect behavior? The guest download template seems to operate like i described it in the previous paragraph.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The Guest Template Servlet should behave in the same way as it just calls the base template servlet but as the Guest user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a way to set the character encoding which is used for the output of the freemarker templates? This seems to be always latin 1 (ISO-8859-1). The mimetype could be set via a get parameter, why not the character set?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The charset can be set as part of the mimetype value i.e.&amp;nbsp; mimetype=text/html;charset=utf-8&amp;nbsp; however there was a bug in some of the template code that meant the charset was getting ignored in some cases. It should be fixed in 2.1.&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>Thu, 02 Aug 2007 10:53:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/download-template-servlet-redirect/m-p/93245#M63788</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-08-02T10:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Download &amp; Template Servlet: Redirect?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/download-template-servlet-redirect/m-p/93246#M63789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An alternative approach is to wrap your freemarker template in a web script &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; You then have full control over the http status response codes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 11:59:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/download-template-servlet-redirect/m-p/93246#M63789</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-08-02T11:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Download &amp; Template Servlet: Redirect?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/download-template-servlet-redirect/m-p/93247#M63790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply. Using Web Scripts seems to be the best solution which overs additional features. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But first i have to upgrade to Alfresco 2.1, because Web Scripts are obviously a 2.1 only feature.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 09:11:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/download-template-servlet-redirect/m-p/93247#M63790</guid>
      <dc:creator>ironman77</dc:creator>
      <dc:date>2007-08-03T09:11:53Z</dc:date>
    </item>
  </channel>
</rss>

