Warning during make upgrade-database for 4.4.1

When upgrading our RT database from 4.2.2 to 4.4.1 on Ubuntu 14.04 LTS, I’m
seeing this warning after the updates are successful all the way through 4.3.13:

[warning]: Use of uninitialized value in lc at ./etc/upgrade/4.4.1/content line
59, <$handle> line 1. (./etc/upgrade/4.4.1/content:59)

Line 59 is the next unless statement with the call to lc:

                my $content = $attr->Content;

                next unless lc($content->{SearchType}) eq 'chart';

After printing $content with Data::Dumper::Simple I can see that SearchType is
not defined in $content that produces the warnings and is set to 'Ticket’
otherwise. I also used rt-attributes-viewer to verify that SearchType is indeed
not present in the 26 or so Attributes that result in the warning.

I’m thinking this warning can probably be ignored. Our RT database dates back to
version 3.4.1.

Yes that warning can be ignored. We’ve fixed the causes in 4.4-trunk, but the change isn’t in a released version yet.

1 Like