Refresh problem and duplicate comments

Hi,

Some of our users have reported an annoying problem with RT. If we press the refresh button in IE after we have add a comment to a ticket and pressed the submit button, the comment is displayed two times (or several times if we press refresh again). I assume this is because of some sessions variables that isn’t deleted or something like that.

Is there a way to solve this problem, without a configuration in every file in RT?

Hilde Therese Lauvset Rafaelsen
IT-avdelingen, Universitetet i Tromsø
Tlf: +47 77 64 58 01

That’s not a problem with RT. When you press the button to submit
a comment an HTTP POST is done. If you refresh the page the POST
is done again.

There are ways this could be avoided by changing RT but it is a
common problem among web apps.

-ToddOn Mon, Oct 10, 2005 at 04:00:50PM +0200, Hilde T Lauvset Rafaelsen wrote:

Hi,

Some of our users have reported an annoying problem with RT. If we press the refresh button in IE after we have add a comment to a ticket and pressed the submit button, the comment is displayed two times (or several times if we press refresh again). I assume this is because of some sessions variables that isn’t deleted or something like that.

Is there a way to solve this problem, without a configuration in every file in RT?

That’s not a problem with RT. When you press the button to submit
a comment an HTTP POST is done. If you refresh the page the POST
is done again.

There are ways this could be avoided by changing RT but it is a
common problem among web apps.

Indeed it is, and that common fix is that the reply from a POST is a
redirect to the GET that displays the data, rather than merely
returning the data itself.

I wonder how hard the structure of RT makes it to change that; it bites
me occasionally… although my browser warns me before rePOSTing it.

I thought everyone’s browser did…

Cheers,
– jra
Jay R. Ashworth jra@baylink.com
Designer Baylink RFC 2100
Ashworth & Associates The Things I Think '87 e24
St Petersburg FL USA http://baylink.pitas.com +1 727 647 1274

"NPR has a lot in common with Nascar... we both turn to the left."
	- Peter Sagal, on Wait Wait, Don't Tell Me!

At Monday 10/10/2005 06:32 PM, Jay R. Ashworth wrote:

I wonder how hard the structure of RT makes it to change that; it bites
me occasionally… although my browser warns me before rePOSTing it.

I thought everyone’s browser did…

No, Opera for one doesn’t.

Steve

Jay R. Ashworth wrote:>On Mon, Oct 10, 2005 at 11:02:50AM -0400, Todd Chapman wrote:

That’s not a problem with RT. When you press the button to submit
a comment an HTTP POST is done. If you refresh the page the POST
is done again.

There are ways this could be avoided by changing RT but it is a
common problem among web apps.

Indeed it is, and that common fix is that the reply from a POST is a
redirect to the GET that displays the data, rather than merely
returning the data itself.

I wonder how hard the structure of RT makes it to change that; it bites
me occasionally… although my browser warns me before rePOSTing it.

I thought everyone’s browser did…

Cheers,
– jra

Redirect to Dislpay.html

$m->comp('Display.html', TicketObj => $TicketObj, %ARGS);

Roy