--On 07 June 2007 09:18 -0400 Amir Mistric <[email protected]> wrote:

> Not sure about 2.1.5...
> I have never used that version myself.
> 
> I am also waiting to see if this issue is fixed.

I Googled some more for this as a Tomcat issue.  I found some discussion of
it, and that the authentication popup is produced by a header.  So I added
that to my 401.jsp file, and now when the authentication is cancelled, the
rest of that file is displayed.  So my 401.jsp now looks like:

<%
response.addHeader("WWW-Authenticate", "BASIC realm=\"OCTO\"");
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
String contextName = request.getContextPath();
String newLocn = contextName + "/401.html";
response.setHeader("Location",newLocn);
%>
<p>Sorry - that page required a valid login, which you did not supply.</p>

The crucial problem is that in this case, the redirection to a Magnolia
page from the repository is not possible.  So as a work around, I am
duplicating the bits of the templates that build the header, footer and
menu in my 401.jsp file, which will get me what I want. (I will, of course,
also strip out the ineffective redirection that is still there.)

Paul




----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to