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 this error automatic besides parsing the servlet response.
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.
Is there a way to change the redirect behavior? The guest download template seems to operate like i described it in the previous paragraph.
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?