[rt-users] rt-crontool bug: Tickets_Overlay_SQL.pm:358

Jens Porup jens at cyber.com.au
Thu Jul 15 01:35:45 EDT 2004


G'day,

I'm trying to do a UserDefined condition with rt-crontool, like so:

	30 14 * * * /usr/bin/rt-crontool --search RT::Search::ActiveTicketsInQueue \
	--search-arg "AMHOCN Incoming Batch" \ --condition RT::Condition::UserDefined \
	--condition-arg "if ( ($self->TicketObj->Priority > 50)){return 1}; else {
	return undef;}" \ --action RT::Action::Notify \ --action-arg Owner \ --verbose

(For some reason crontab refuses to acknowledge the backslashed newlines, hence
the line noice...)

The cron error to /var/log/messages is:

	Jul 15 12:35:04 localhost RT: Use of uninitialized value in concatenation (.) or
	string at /usr/share/request-tracker3/lib/RT/Tickets_Overlay_SQL.pm line 358.

BUT, just to make see if I wasn't doing my custom condition incorrectly, I tried
the suggested rt-crontool example in rt-crontool --help:

	21 14 * * * /usr/bin/rt-crontool --search RT::Search::ActiveTicketsInQueue \
	--search-arg "AMHOCN Incoming Batch" \ --condition
	RT::Condition::UntouchedInHours --condition-arg 4 \ --action
	RT::Action::SetPriority --action-arg 99 \ --verbose

And indeed, this gives the same error message as before:

	Jul 15 14:21:04 localhost RT: Use of uninitialized value in concatenation (.) or
	string at /usr/share/request-tracker3/lib/RT/Tickets_Overlay_SQL.pm line 358.
	(/usr/share/request-tracker3/lib/RT.pm:250)

I've looked at line 358 of Tickets_Overlay_SQL.pm, but frankly it's all
gibberish to me. I'm using RT Version 3.0.11-1.

Can anyone explain what's going on here?

Thanks,

Jens




More information about the rt-users mailing list