<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">To better illustrate what I'm seeing, here's a screen cap.  </span><a href="http://i.imgur.com/FTlLGYO.jpg" target="_blank" style="font-family:arial,sans-serif;font-size:12.727272033691406px">http://i.imgur.com/FTlLGYO.jpg</a><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
On the top is what I see when I tried to comment on a ticket.</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">On the bottom is a clip from the history, where you can see one person commenting, RT changing ownership to them, and then they immediately return ownership.</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">I have a theory as to what might be happening.  Could it be possible that the scrips are processed before the changes?  If so, perhaps my scrip is changing ownership of the ticket, and then RT sees on the right in the "Ticket and Transaction" section a different owner than the ticket now has, and the user changes it?</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><div>This is all I can really find in the log as far as anything useful.  Below you can see that scrip 2 fires off when my scrip forcefully changes ownership.  It then immediately fires off again because the user has given ownership back to the original owner.  </div>
<div><br></div><div>I've noticed that if I revoke the ModifyTicket permission the RT scrip will change the owner to them, and then they are aunable to change the owner back.  The result at the top is a message saying the comment was added, followed by a line that reads "Permission Denied".  As far as I can tell, this achieves the desired effect.  However, a lot of people aren't happy about doing it this way.</div>
<div><br></div><div>I just tried removing all scrips from the queue except my scrip that changes owner, and the result was the same.  So it's not a problem w/ another scrip that's running.  Below is a log snippet.</div>
<div><br></div><div>Nov  6 09:56:39 rt RT: [30613] <rt-4.2.0-30613-1383749799-1974.57417-8-0@XXX.com> #57417/999085 - Scrip 8 On Comment Notify AdminCcs as Comment</div><div>Nov  6 09:56:39 rt RT: [30613] <rt-4.2.0-30613-1383749799-1974.57417-8-0@XXX.com> sent  Bcc: XXX@XXX.com, XXX@XXX.com</div>
<div>Nov  6 09:56:39 rt RT: [30613] <rt-4.2.0-30613-1383749799-497.57417-9-0@XXX.com> #57417/999085 - Scrip 9 On Comment Notify Other Recipients as Comment</div><div>Nov  6 09:56:39 rt RT: [30613] <rt-4.2.0-30613-1383749799-497.57417-9-0@XXX.com> No recipients found. Not sending.</div>
<div>Nov  6 09:56:39 rt RT: [30613] Auto assign ticket #57417 to user #230355</div><div>Nov  6 09:56:39 rt RT: [30613] <rt-4.2.0-30613-1383749799-436.57417-2-0@XXX.com> #57417/999087 - Scrip 2 On Owner Change Notify Owner</div>
<div>Nov  6 09:56:39 rt RT: [30613] <rt-4.2.0-30613-1383749799-436.57417-2-0@XXX.com> No recipients found. Not sending.</div><div>Nov  6 09:56:39 rt RT: [30613] <rt-4.2.0-30613-1383749799-1566.57417-2-0@XXX.com> #57417/999089 - Scrip 2 On Owner Change Notify Owner</div>
<div>Nov  6 09:56:39 rt RT: [30613] <rt-4.2.0-30613-1383749799-1566.57417-2-0@XXX.com> sent  To: XXX@XXX.com</div><div>Nov  6 09:56:39 rt RT: [30613] Use of uninitialized value in concatenation (.) or string at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 1793.</div>
<div>Nov  6 09:56:39 rt RT: [30613] More than 50 possible Owners found for Queue 41; switching to autocompleter</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 6, 2013 at 10:54 AM, Asif Iqbal <span dir="ltr"><<a href="mailto:vadud3@gmail.com" target="_blank">vadud3@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Wed, Nov 6, 2013 at 10:04 AM, Chris Hall <span dir="ltr"><<a href="mailto:hiro24@gmail.com" target="_blank">hiro24@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm officially stumped.  This apparently is an issue that doesn't effect everybody, but the people it does I can't pin down why.  I did a separate RT installation on another server and verified that my scrip works.  This wasn't a problem before 4.2, so it must be some sort of fail safe I'm guessing.  So here's what I've noticed..<div>



<br></div><div>The logs show a scrip firing twice that emails the owner when the owner changes.</div><div>In the history it shows RT forcefully changing the owner.</div><div>The next thing that happens is the new owner "gives" the ticket to the old owner.</div>



<div>Some people in some queues are not affected. </div><div><br></div><div>I've double, triple checked permissions on people and groups.  I've re-read through all my scrips and nothing except my scrip is changing ownership.  No queues have any special scrips, they are all global.  I'm at a complete loss what could be causing this anomaly.  Is there somewhere I can go or something I can turn on that will enable like a debug mode so I can see what's happening on a step by step basis when something happens like a comment?</div>


</div></blockquote><div><br></div><div><br></div></div><div>Some log related to one of this event would help, even if you have to sanitize it first.</div><div>But make sure you provide complete logs, so no scrip action gets skipped while you are</div>


<div>pasting it here.</div><div class="im"><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 5, 2013 at 3:45 PM, Alex Vandiver <span dir="ltr"><<a href="mailto:alexmv@bestpractical.com" target="_blank">alexmv@bestpractical.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Tue, 2013-11-05 at 15:36 -0500, Chris Hall wrote:<br>
> Still haven't found anything.  What's odd is that it's not a problem<br>
> w/ the scrip.  The scrip still works.  RT force changes the owner to<br>
> whoever made the comment.  It even shows up in the history.  But it's<br>
> like the very next thing that happens is the new owner "gives" the<br>
> ownership back to the original owner.  I can't seem to figure out why.<br>
<br>
</div>Look at your logs; I suspect you have a second scrip which is firing to<br>
give it back.<br>
<span><font color="#888888"> - Alex<br>
<br>
<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a><br>
A: Because it messes up the order in which people normally read text.<br>

Q: Why is top-posting such a bad thing?<br><br>
</font></span></div></div>
</blockquote></div><br></div>