Thanks very much for the patch in CommentAuthenticatorServlet. The
below given patch solves this bug on IE with below code in
commentauthenticatorservlet.
public void doGet(HttpServletRequest request, HttpServletResponse
response)
throws IOException, ServletException {
response.setContentType("text/html; charset=utf-8");
response.addHeader("Pragma", "no-cache");
response.addHeader("Cache-Control", "no-cache");
response.addHeader("Expires", "-1");
PrintWriter out = response.getWriter();
out.println(this.authenticator.getHtml(null, request, response));
}
Regards
Riteshkumar Jayeshkumar Banker
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
[EMAIL PROTECTED]
08/31/2006 10:33 AM
Please respond to
[email protected]
To
[email protected]
cc
Subject
Re: Help me solve Comment Authentication Error in Internet Explorer
I have to try the below patch. But I changed the property
comment.authenticator.classname=org.apache.roller.presentation.velocity.MathCommentAuthenticator
to:-
comment.authenticator.classname=org.apache.roller.presentation.velocity.DefaultCommentAuthenticator.
As math question was irrelevant to me. I changed it. Now its working fine.
Regards
Riteshkumar Jayeshkumar Banker
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
"Anil Gangolli" <[EMAIL PROTECTED]>
08/31/2006 10:20 AM
Please respond to
[email protected]
To
<[email protected]>
cc
Subject
Re: Help me solve Comment Authentication Error in Internet Explorer
Thanks for this patch. I'll get this into trunk and the 3.0 branch.
Should I put it in the 2.3 branch too for 2.3.1 ?
--a.
----- Original Message -----
From: "Max Rudman" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 30, 2006 12:50 PM
Subject: Re: Help me solve Comment Authentication Error in Internet
Explorer
>I don't know if this is limited to 6 but this definitely seems to be
> IE-specific problem. The issue is that the include generated by
> CommentAuthenticatorServlet is getting cached. So, when you post a
> comment and the page gets redisplayed, IE includes cached HTML
> fragment which has the previous math question. The solution is to
> output cache-defeating headers in CommentAuthenticatiorServlet.doGet
> () method:
>
> response.addHeader("Pragma", "no-cache");
> response.addHeader("Cache-Control", "no-cache");
> response.addHeader("Expires", "-1");
>
>
> Max
>
>
> On Aug 30, 2006, at 9:39 AM, Dave Johnson wrote:
>
>> Is this an IE6 only problem?
>>
>> Do you need the comment authenticator for your blog? If it's an
>> internal portal, then you can probably live without it -- and you can
>> turn it off.
>>
>> - Dave
>
>
ForwardSourceID:NT000021BE
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
ForwardSourceID:NT0000221A