Transaction batch doesn't always get executed

I have this weird problem:

Two non-privileged user send a support request, Zonker’s email fires a
TransactionBatch scrip, but Harris’ email does not. TransactionCreate scrip
are fired for both users. They come from different domain,

There is no other difference in the users other than their email addresses.

If I take Harris’ email, change the email address to Zonker, it works fine.

Did anyone ever see that?

Any fix?

Thanks

Mathieu Longtin
1-514-803-8977

After firing up the old debugger, I found out that when RT is trying to
figure out what scrip to run in “TransactionBatch” mode, it gets a list of
transaction types by calling this:

join( ',', map $_->Type, grep defined, @{$batch} )

in Ticket_Overlay::DESTROY. Unfortunately, permissions get in the way, and
the Harris account is “Unprivileged”, but Zonker is “Privileged”. I didn’t
realize that until now.

Anyway, an unprivileged user is not allowed to see transaction types, so it
never runs TransactionBatch scrips.

The quick fix is to make Type public in
Transaction_Overlay::_OverlayAccessible.
Type => { public => 1},

But there is probably a reason why it’s not accessible. Is there a way for
one line of code to override the permission system?

Just lost a day figuring this out

Mathieu Longtin
1-514-803-8977On Thu, Dec 10, 2009 at 2:12 PM, Mathieu Longtin mathieu@closetwork.orgwrote:

I have this weird problem:

Two non-privileged user send a support request, Zonker’s email fires a
TransactionBatch scrip, but Harris’ email does not. TransactionCreate scrip
are fired for both users. They come from different domain,

There is no other difference in the users other than their email addresses.

If I take Harris’ email, change the email address to Zonker, it works fine.

Did anyone ever see that?

Any fix?

Thanks


Mathieu Longtin
1-514-803-8977