Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Devel

[RTIR] Bulk Abandon - 3.7.13

 

 

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded


wcyoung at buffalo

Mar 5, 2008, 9:12 AM

Post #1 of 4 (368 views)
Permalink
[RTIR] Bulk Abandon - 3.7.13

Has anyone come across this error when trying to do a BulkAbandon on a
group of [RTIR] tickets:

System error
error: Can't call method "CurrentUser" on an undefined value at /opt/
rt3/share/html/RTIR/Elements/UpdateData line 71.
context:
...
67:
68: if ( $type eq 'Incident' ) {
69: push @parents, $Ticket->id;
70: } else {
71: my $tickets = RT::Tickets->new( $Ticket->CurrentUser() );
72: $tickets->FromSQL( "Queue = 'Incidents' AND HasMember = ".
$Ticket->id );
73: while ( my $parent = $tickets->Next ) {
74: push @parents, $parent->id;
75: }
...
code stack: /opt/rt3/share/html/RTIR/Elements/UpdateData:71
/opt/rt3/share/html/RTIR/Incident/Elements/ReplyForm:43
/opt/rt3/share/html/Widgets/TitleBox:51
/opt/rt3/share/html/RTIR/Incident/Elements/ReplyForm:47
/opt/rt3/share/html/RTIR/Incident/BulkAbandon.html:67
/opt/rt3/share/html/autohandler:298


The only syslog errors I have been seeing are:

RT: Use of uninitialized value in pattern match (m//) at /opt/rt3/
share/html/Callbacks/RTIR/Elements/SelectOwner/UpdateObjectList line
13. (/opt/rt3/share/html/Callbacks/RTIR/Elements/SelectOwner/
UpdateObjectList:13)

RT: Use of uninitialized value in join or string at /opt/rt3/share/
html/RTIR/Incident/Elements/ReplyForm line 39. (/opt/rt3/share/html/
RTIR/Incident/Elements/ReplyForm:39)

RT: Use of uninitialized value in string eq at /opt/rt3/share/html/
RTIR/Elements/UpdateData line 68. (/opt/rt3/share/html/RTIR/Elements/
UpdateData:68)


it seems like $Ticket is not being passed to the UpdateData form, but
I can't seem to figure out why. I'm currently drilling down through
the html file into UpdateData, just wanted to throw this out there to
see if i'm chasing my tail.


--
Wes Young
Network Security Analyst
CIT - University at Buffalo
-----------------------------------------------
| my OpenID: | http://tinyurl.com/2zu2d3 |
-----------------------------------------------






_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel


wcyoung at buffalo

Mar 6, 2008, 8:36 AM

Post #2 of 4 (340 views)
Permalink
Re: [RTIR] Bulk Abandon - 3.7.13 [In reply to]

Figured I'd follow up with my own fix here (if only so I can search on
it later... :))

adding:

return unless($Ticket) to UpdateData: ~65

seems to do a quick and dirty sanity check dropping the error when
you're not doing the action (ie: just viewing the bulkabandon page).

--
Wes Young
Network Security Analyst
CIT - University at Buffalo
-----------------------------------------------
| my OpenID: | http://tinyurl.com/2zu2d3 |
-----------------------------------------------






_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel


ruz at bestpractical

Mar 7, 2008, 1:08 AM

Post #3 of 4 (340 views)
Permalink
Re: [RTIR] Bulk Abandon - 3.7.13 [In reply to]

We've fixed that problem in new versions.

On Thu, Mar 6, 2008 at 7:36 PM, Wes Young <wcyoung[at]buffalo.edu> wrote:
> Figured I'd follow up with my own fix here (if only so I can search on
> it later... :))
>
> adding:
>
> return unless($Ticket) to UpdateData: ~65
>
> seems to do a quick and dirty sanity check dropping the error when
> you're not doing the action (ie: just viewing the bulkabandon page).
>
>
>
> --
> Wes Young
> Network Security Analyst
> CIT - University at Buffalo
> -----------------------------------------------
> | my OpenID: | http://tinyurl.com/2zu2d3 |
> -----------------------------------------------
>
>
>
>
>
>
> _______________________________________________
> List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>



--
Best regards, Ruslan.
_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel


wcyoung at buffalo

Mar 7, 2008, 5:52 AM

Post #4 of 4 (347 views)
Permalink
Re: [RTIR] Bulk Abandon - 3.7.13 [In reply to]

Yea, I was flipping through the cvs ... (err svn) tree's and saw.
Kinda sparked some other thought which lead to the sanity check.

Thanks! :-)

On Mar 7, 2008, at 4:08 AM, Ruslan Zakirov wrote:

> We've fixed that problem in new versions.
>
> On Thu, Mar 6, 2008 at 7:36 PM, Wes Young <wcyoung[at]buffalo.edu> wrote:
>> Figured I'd follow up with my own fix here (if only so I can search
>> on
>> it later... :))
>>
>> adding:
>>
>> return unless($Ticket) to UpdateData: ~65
>>
>> seems to do a quick and dirty sanity check dropping the error when
>> you're not doing the action (ie: just viewing the bulkabandon page).
>>
>>
>>
>> --
>> Wes Young
>> Network Security Analyst
>> CIT - University at Buffalo
>> -----------------------------------------------
>> | my OpenID: | http://tinyurl.com/2zu2d3 |
>> -----------------------------------------------
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>>
>
>
>
> --
> Best regards, Ruslan.
>

--
Wes Young
Network Security Analyst
CIT - University at Buffalo
-----------------------------------------------
| my OpenID: | http://tinyurl.com/2zu2d3 |
-----------------------------------------------






_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.