Hi Debasis,

On Fri, 2009-11-20 at 19:12 +0530, Debasis Mishra wrote:
> Hi All,
>  I am using SCMBUG_RELEASE_0-26-15.
>  Bugzilla 3.4.1

Bugzilla 3.4 is not supported. Also, Scmbug 0.26.16 supports Bugzilla
3.2 so you may want to try that instead of 0.26.15.
 
> I had to modify Scmbug::Daemon::Bugzilla->integration_add_comment
> function
> 
> replacing AppendComment call with the following code

What version did you specify in daemon.conf ? You shouldn't be touching
AppendComment at all.

There's a patch to Scmbug to make it work with Bugzilla 3.4, but it may
not be very well tested:

http://bugzilla.mkgnu.net/show_bug.cgi?id=1422


> my $bug = Bugzilla::Bug->check($bugid);
> 
> my $user = new Bugzilla::User($username);
> 
> Bugzilla->set_user($user);

the patch shows first the call to set_user, and then the call to check

> $bug->add_comment($comment, {isprivate => 0, work_time => 0, type =>
> Bugzilla::Constants->CMT_NORMAL, extra_data => "this is extra
> data"} );
> 
> $bug->update(); 
> 
> After doing this I am getting the following error
> 
> 2009/11/20 19:07:46 Scmbug WARN>
> Process.pm:866:Scmbug::Daemon::Process::process_activity_commit -
> 192.168.104.136:1301 Processing an 'activity_commit' for bug id '5'
> from SCM user 'Debasis.mishra'
> 2009/11/20 19:07:46 Scmbug ERROR> Daemon.pm:634:main:: - Thread 3
> terminated abnormally: Invalid parameter passed to
> Bugzilla::User::_init. It must be numeric.
> 
> So i don't know how to proceed.

Could you perhaps try this patch ?

Attachment: 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

Reply via email to