Hi Markus, please send all communication to the mailing list.
On Tue, 2008-05-06 at 21:02 +0200, Markus M. May wrote:
> Well,
> probably it is a mismatch in my configuration or something in SCM, i
> am very unsure.
>
> I have added the following lines to Bugzilla.pm:
>
> } elsif ( $self->is_version_up_to_2_22() || $self->is_version_latest() )
> {
> # AppendComment was fixed in Bugzilla 2.22. Should use the
> # native version
> open FILEOUT, ">>/var/log/scmbug/debug.log";
> print FILEOUT "Reached Bugzilla call to login_to_id \n";
> close FILEOUT;
>
> #my $userid = Bugzilla::User::login_to_id( $username );
> use Bugzilla::User;
> my $userid = login_to_id( $username );
>
> open FILEOUT, ">>/var/log/scmbug/debug.log";
> print FILEOUT "After call to method \n";
> close FILEOUT;
>
> In debug.log, I get to the first message. The error.log shows now:
>
> Can't locate object method "dbh" via package "Bugzilla" at
> /usr/share/perl5/Bugzilla/User.pm line 1664, <STDIN> line 34.
>
> Bugzilla is running fine on my machine. In my SCM daemon.conf
> configuration I have edited the Bugzilla-Path to /var/www/bugzilla31,
> that's why I am unsure, if this is the correct location it is calling.
>
> Any hints?Yes. As I said: > > Essentially to use: > > > > use Bugzilla; > > > > ...before the call to login_to_id. So write the following code: use Bugzilla; my $userid = Bugzilla::User::login_to_id( $username ); > Mylyn) the XML-RPC and instead calling the Bugzilla-Stuff directly. > Wouldn't it make sense to call Bugzilla via XML-RPC, so that Bugzilla > could even be on a remote server? Bugzilla can still be on a remote server without XML-RPC. That's what the daemon accomplishes. Also note that XML-RPC is not available for Bugzilla 2.14-2.20(?). Switching to XML-RPC for newer Bugzilla versions may be beneficial, but we haven't seen the benefits yet. Also we are still defining additional activities that the RPC interface may not support, such as building a VDD.
signature.asc
Description: This is a digitally signed message part
_______________________________________________ scmbug-users mailing list [email protected] http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
