ASF Bugzilla – Attachment 21046 Details for
Bug 43687
after repeated authentication tomcat again sends page with login form instead of protected static resource
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch so that complient browsers don't think the login page is the real page
fa.diff (text/plain), 1.14 KB, created by
william.barker
on 2007-10-25 19:20:51 UTC
(
hide
)
Description:
Patch so that complient browsers don't think the login page is the real page
Filename:
MIME Type:
Creator:
william.barker
Created:
2007-10-25 19:20:51 UTC
Size:
1.14 KB
patch
obsolete
>Index: FormAuthenticator.java >=================================================================== >--- FormAuthenticator.java (revision 586983) >+++ FormAuthenticator.java (working copy) >@@ -313,6 +313,9 @@ > context.getServletContext().getRequestDispatcher > (config.getLoginPage()); > try { >+ // Disallow caching the login page as the actual page. BZ 43687 >+ response.setHeader("Pragma", "No-cache"); >+ response.setHeader("Cache-Control", "no-cache"); > disp.forward(request.getRequest(), response.getResponse()); > response.finishResponse(); > } catch (Throwable t) { >@@ -334,6 +337,9 @@ > context.getServletContext().getRequestDispatcher > (config.getErrorPage()); > try { >+ // Disallow caching the error page as the actual page. BZ 43687 >+ response.setHeader("Pragma", "No-cache"); >+ response.setHeader("Cache-Control", "no-cache"); > disp.forward(request.getRequest(), response.getResponse()); > } catch (Throwable t) { > log.warn("Unexpected error forwarding to error page", t);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 43687
:
21032
|
21046
|
21057
|
21063