ASF Bugzilla – Attachment 21063 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 to disable conditionals headers on a replay for Form Auth
fa.diff (text/plain), 1.29 KB, created by
william.barker
on 2007-10-30 20:11:47 UTC
(
hide
)
Description:
Patch to disable conditionals headers on a replay for Form Auth
Filename:
MIME Type:
Creator:
william.barker
Created:
2007-10-30 20:11:47 UTC
Size:
1.29 KB
patch
obsolete
>Index: FormAuthenticator.java >=================================================================== >--- FormAuthenticator.java (revision 588480) >+++ FormAuthenticator.java (working copy) >@@ -402,12 +402,20 @@ > > MimeHeaders rmh = request.getCoyoteRequest().getMimeHeaders(); > rmh.recycle(); >+ boolean cachable = "GET".equalsIgnoreCase(saved.getMethod()) || >+ "HEAD".equalsIgnoreCase(saved.getMethod()); > Iterator names = saved.getHeaderNames(); > while (names.hasNext()) { > String name = (String) names.next(); >- Iterator values = saved.getHeaderValues(name); >- while (values.hasNext()) { >- rmh.addValue(name).setString( (String)values.next() ); >+ // The browser isn't expecting this conditional reposponse now. >+ // Assuming that it can quietly recover from an unexpected 412. >+ // BZ 43687 >+ if(!("If-Modified-Since".equalsIgnoreCase(name) || >+ (cachable && "If-None-Match".equalsIgnoreCase(name)))) { >+ Iterator values = saved.getHeaderValues(name); >+ while (values.hasNext()) { >+ rmh.addValue(name).setString( (String)values.next() ); >+ } > } > } >
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