Hi Kristis,
 Thanks a lot for your reply.I tried with the patch for the version 3.4.1.
 my postcommit hook is not failing and i am able to commit.

 *But I am unable to see any difference in bugzilla.there is no change in
the status.**
** I was expecting the status should be changed from assigned to
resolved.and the comment what i had given during the comment should be
included.I am not sure this was my expectation*.

 in demon.conf file i have given my version as '3.4.1'.

For your reference i am attaching my demon.conf ,glue.conf and the log
file.Please let me know if i am missing something somewhere.

Thanks,
Debasis


On Fri, Nov 20, 2009 at 11:31 PM, Kristis Makris <[email protected]> wrote:

> 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: activity.log
Description: Binary data

Attachment: daemon.conf
Description: Binary data

Attachment: glue.conf
Description: Binary data

_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to