Strange bug in Update.html -- maybe cookie related

Hi:

RT-3.8.7
Mysql,Apache2, mod_perl v2.000004; HTML::Mason v1.39;

When updating 2 tickets (tickets 1,2 as an example) at the same time, using 1 browser and 2 tabs:
If I upload files A and B into ticket 1, and while waiting for the file upload to complete I decide to update ticket 2, the second file (file B) is attached to the second ticket (ticket 2), and when I then go back to ticket 1 and click on Update Ticket, only file A is attached …

This is strange one and I have always struggled in how to debug the cookie and session handling within RT, so I am hoping someone out there can help me with this problem, where to start looking?

I have tested this on firefox (from windows xp and a linux desktops) and also in Internet explorer 8

Any help will truly be appreciated, the consequences of this bug can be very embarrassing.

Regards;
Roy

Raed,

Maybe it’s cache related and you can set the RT_SiteConfig.pm to reload
cache for each session/ticket?

Just a shot in the dark here.

Kenn
LBNLOn Wed, Mar 2, 2011 at 4:10 AM, Raed El-Hames < Raed.El-Hames@daisygroupplc.com> wrote:

Hi:

RT-3.8.7
Mysql,Apache2, mod_perl v2.000004; HTML::Mason v1.39;

When updating 2 tickets (tickets 1,2 as an example) at the same time, using
1 browser and 2 tabs:
If I upload files A and B into ticket 1, and while waiting for the file
upload to complete I decide to update ticket 2, the second file (file B) is
attached to the second ticket (ticket 2), and when I then go back to ticket
1 and click on Update Ticket, only file A is attached …

This is strange one and I have always struggled in how to debug the cookie
and session handling within RT, so I am hoping someone out there can help me
with this problem, where to start looking?

I have tested this on firefox (from windows xp and a linux desktops) and
also in Internet explorer 8

Any help will truly be appreciated, the consequences of this bug can be
very embarrassing.

Regards;
Roy

Hi:

RT-3.8.7
Mysql,Apache2, mod_perl v2.000004; HTML::Mason v1.39;

When updating 2 tickets (tickets 1,2 as an example) at the same time, using 1 browser and 2 tabs:
If I upload files A and B into ticket 1, and while waiting for the file upload to complete I decide to update ticket 2, the second file (file B) is attached to the second ticket (ticket 2), and when I then go back to ticket 1 and click on Update Ticket, only file A is attached …

This is strange one and I have always struggled in how to debug the cookie and session handling within RT, so I am hoping someone out there can help me with this problem, where to start looking?

Attachments are tied to your session
I believe ruz pushed a branch with a proposed fix, but nothing has
been merged and is likely to be a 4.2 fix since it is a large change.
It may be 4.2/web-attachs-processing

-kevin

Hi:

RT-3.8.7
Mysql,Apache2, mod_perl v2.000004; HTML::Mason v1.39;

When updating 2 tickets (tickets 1,2 as an example) at the same time, using 1 browser and 2 tabs:
If I upload files A and B into ticket 1, and while waiting for the file upload to complete I decide to update ticket 2, the second file (file B) is attached to the second ticket (ticket 2), and when I then go back to ticket 1 and click on Update Ticket, only file A is attached …

This is strange one and I have always struggled in how to debug the cookie and session handling within RT, so I am hoping someone out there can help me with this problem, where to start looking?

Attachments are tied to your session
I believe ruz pushed a branch with a proposed fix, but nothing has
been merged and is likely to be a 4.2 fix since it is a large change.
It may be 4.2/web-attachs-processing

Yep, that’s right. Working on tests right now.

-kevin

Best regards, Ruslan.

OK Thanks Ruz.
Ist possible you give me some pointers where to look for so I can patch my 3.8.7, the next upgrade for me is in ~ 6 months time, so anything that can help me avoid this from happening for now will be useful, just knowing which modules/pages to start with will be good.

Thanks;
Roy

OK Thanks Ruz.
Ist possible you give me some pointers where to look for so I can patch my 3.8.7, the next upgrade for me is in ~ 6 months time, so anything that can help me avoid this from happening for now will be useful, just knowing which modules/pages to start with will be good.

It’s not going to be easy, but you do something like that:

git clone rt
cd rt
git co 4.2/web-attachs-processing
git co -b tmp
git rebase -i rt-3.8.7

pick all commits from the branch and may be some earlier in addition
to lower number of conflicts. Then you resolve conflicts, I’m pretty
sure there will be conflicts. Run tests.

git diff rt-3.8.7 > RT-3.8.7-isolate_attachments_from_different_actions.patch

Something like that.

Thanks;
Roy

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-
bounces@lists.bestpractical.com] On Behalf Of Ruslan Zakirov
Sent: 03 March 2011 09:53
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Strange bug in Update.html – maybe cookie related

Hi:

RT-3.8.7
Mysql,Apache2, mod_perl v2.000004; HTML::Mason v1.39;

When updating 2 tickets (tickets 1,2 as an example) at the same time,
using 1 browser and 2 tabs:
If I upload files A and B into ticket 1, and while waiting for the file
upload to complete I decide to update ticket 2, the second file (file B)
is attached to the second ticket (ticket 2), and when I then go back to
ticket 1 and click on Update Ticket, only file A is attached …

This is strange one and I have always struggled in how to debug the
cookie and session handling within RT, so I am hoping someone out there
can help me with this problem, where to start looking?

Attachments are tied to your session
I believe ruz pushed a branch with a proposed fix, but nothing has
been merged and is likely to be a 4.2 fix since it is a large change.
It may be 4.2/web-attachs-processing

Yep, that’s right. Working on tests right now.

-kevin


Best regards, Ruslan.

Best regards, Ruslan.