[rt-users] Error
JJussi
rt-users at jjussi.com
Thu Jan 28 12:52:01 EST 2010
On Thursday, 28. Januaryta 2010 19:21:00 Kevin Falcone wrote:
Hi!
Yes and no.. Actually it was that password what was not set to anything
'Password =>,' :-(
(stupid simple typo-error)
> On Thu, Jan 28, 2010 at 11:59:35AM +0200, JJussi wrote:
> > Hi!
> > (using RT 3.8.7)
> > I have made simple Perl script to add users and queues to database.
> > However, I get next error message:
> > RT::User::Validate Unimplemented in RT::Record.
> > (/opt/rt3/lib/RT/Record.pm line 267)
>
> Most likely, one of the elements of %vars is undef and causing the
> list you're passing to Create to contain an empty key.
>
> -kevin
>
> > Script is:
> > #!/usr/bin/perl
> > # luojono -perl scripti
> > use warnings;
> > use strict;
> > use RT::Interface::CLI qw(CleanEnv);
> > use RT::User;
> > use RT::Queue;
> > use RT::Queues;
> >
> > RT::LoadConfig();
> > RT::Init();
> >
> > my $user = RT::User->new($RT::SystemUser);
> > my $queues = new RT::Queues($RT::SystemUser);
> >
> > my $domainosa = 'domain.fi';
> >
> > my $uid = $user->Create(
> > Name => $vars{nimi},
> > EmailAddress => $vars{oemail},
> > RealName => $vars{omistaja},
> > FreeformContactInfo
> > => 'Tiketti omistaja: '.$vars{kuvaus},
> > NickName => '',
> > Privileged => 1,
> > Password => ,
> > Address1 => '',
> > Address2 => '',
> > City => '',
> > State => '',
> > Zip => '',
> > Country => '',
> > WorkPhone => '',
> > MobilePhone => '',
> > );
> >
> > my $qid = $queues->Create(
> > Name => $vars{nimi},
> > Description => $vars{kuvaus},
> > CorrespondAddress => $vars{nimi}.'@'.$domainosa,
> > CommentAddress => $vars{nimi}.'-comment@'.$domainosa,
> > InitialPriority => $vars{minpri},
> > FinalPriority => $vars{maxpri},
> > DefaultDueIn => $vars{maxaika},
> > );
>
--
Skype-puhelut: jjussi
Jussi Jääskeläinen http://www.jjussi.com
<doogie> Culus: my bug with openssh appears to be fixed in 2.5.2, but
master runs 2.3.0
<Culus> Don't even start
<doogie> I just did.
<Culus> You guys are going to drive me to build a huge giant robot and
destroy all of texas, aren't you?
More information about the rt-users
mailing list