<kein Betreff>

We have a urgent issue with search builder:

In an customized Module we used SearchBuilder.
What is does is: In order to allow People to enter new users we auto generate user Ids and use the Realname fpor display.

In RT 3.4 on Mysql the code worked just fine.
On RT 3.4 on Postgres 8.0 we had the following error:

It seems that SearchBuilder is not capable of getting $users->OrderBy(FIELD=>‘id’);

Any ideas why this is happening?

START RT error message:
error:
Can’t call method “Id” on an undefined value at /usr/local/share/request-tracker3.4/html/Elements/CustomiseCreateUser.html line 285.

context:

281:

282:
my $users = new RT::Users($session{‘CurrentUser’});

283:
$users->OrderBy(FIELD=>‘id’);

284:
my $user = $users->Last;

285:
my $uid = $user->Id+1;

286:
#my $uid=‘tst45’;

287:

288:
my $current_tab;

289:
my $UserObj = new RT::User($session{‘CurrentUser’});

code stack:
/usr/local/share/request-tracker3.4/html/Elements/CustomiseCreateUser.html:285
/usr/local/share/request-tracker3.4/html/autohandler:215

Can’t call method “Id” on an undefined value at /usr/local/share/request-tracker3.4/html/Elements/CustomiseCreateUser.html line 285.

Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception(‘Can’t call method “Id” on an undefined value at /usr/local/share/request-tracker3.4/html/Elements/CustomiseCreateUser.html line 285.^J’) called at /usr/local/share/request-tracker3.4/html/Elements/CustomiseCreateUser.html line 285
HTML::Mason::Commands::ANON(‘Create’, 1, ‘Create’, 1) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x9e5d1b0)’, ‘Create’, 1, ‘Create’, 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 1251
eval {…} at /usr/share/perl5/HTML/Mason/Request.pm line 1245
HTML::Mason::Request::comp(undef, undef, ‘Create’, 1, ‘Create’, 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 914
HTML::Mason::Request::call_next(‘HTML::Mason::Request::ApacheHandler=HASH(0x9d4c8c8)’, ‘Create’, 1) called at /usr/local/share/request-tracker3.4/html/autohandler line 215
HTML::Mason::Commands::ANON(‘Create’, 1) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x9ca42a0)’, ‘Create’, 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 1246
eval {…} at /usr/share/perl5/HTML/Mason/Request.pm line 1245
HTML::Mason::Request::comp(undef, undef, undef, ‘Create’, 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 459
eval {…} at /usr/share/perl5/HTML/Mason/Request.pm line 459
eval {…} at /usr/share/perl5/HTML/Mason/Request.pm line 411
HTML::Mason::Request::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0x9d4c8c8)’) called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0x9d4c8c8)’) called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 832
HTML::Mason::ApacheHandler::handle_request(‘HTML::Mason::ApacheHandler=HASH(0x85227c0)’, ‘Apache=SCALAR(0x8526494)’) called at /usr/share/request-tracker3.4/libexec/webmux.pl line 125
eval {…} at /usr/share/request-tracker3.4/libexec/webmux.pl line 125
RT::Mason::handler(‘Apache=SCALAR(0x8526494)’) called at /dev/null line 0
eval {…} at /dev/null line 0
Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179

Jörg Ungermann wrote:

We have a urgent issue with search builder:

In an customized Module we used SearchBuilder.
What is does is: In order to allow People to enter new users we auto generate user Ids and use the Realname fpor display.

In RT 3.4 on Mysql the code worked just fine.

I’d expect it to fail.

On RT 3.4 on Postgres 8.0 we had the following error:

It seems that SearchBuilder is not capable of getting $users->OrderBy(FIELD=>‘id’);

Any ideas why this is happening?

282:
my $users = new RT::Users($session{‘CurrentUser’});

283:
$users->OrderBy(FIELD=>‘id’);

You need a $users->UnLimit here.

signature.asc (191 Bytes)