On Mon, 2008-01-28 at 12:38 +0530, manjit wrote:
> I don't see any error message in the activity log when there is a status
> resolution failure. The commit is a success, but I don't see any updates in
> the bugs db or Bugzilla for that bug.

I'm not sure what the problem is.

It seems that Scmbug is doing all the right things in terms of calling
the Bugzilla API. I'm afraid we'll need your help to debug this. e.g. in
Bugzilla.pm.in.integration_add_comment add debugging statements. I've
attached a patch that may help in debugging this. Can you give it a
try ? 

I want to make sure we are at least calling
Bugzilla::Bug::AppendComment().


? Bugtracker.pm
? Bugzilla.pm
? Bugzilla.pm.in.ERR
? Bugzilla.pm.in.tdy
? Daemon.pm
? Integration.pm
? Mantis.pm
? Process.pm
? Request.pm
? RequestTracker.pm
? TestDirector.pm
? TestDirectorInterface.pl
? TestDirectorUtils.pm
? debug.patch
? perltidy
Index: Bugzilla.pm.in
===================================================================
RCS file: /projects/scmbug/cvsroot/system/src/lib/product/Daemon/Bugzilla.pm.in,v
retrieving revision 1.60
diff -u -r1.60 Bugzilla.pm.in
--- Bugzilla.pm.in	17 Jan 2008 21:21:09 -0000	1.60
+++ Bugzilla.pm.in	28 Jan 2008 21:46:25 -0000
@@ -492,7 +492,11 @@
     my $self = shift;
     my ( $bugid, $username, $comment ) = ( @_ );
 
+    open LOGFILE, ">> /tmp/logfile";
+    print LOGFILE "bugid: '$bugid', username: '$username', $comment: '$comment'\n";
+
     if ( $self->is_version_up_to_2_20() ) {
+        print LOGFILE "version is up to 2_20\n";
 	# Bugzilla 2.20 does not have AppendComment in globals.pl It
 	# was moved to Bugzilla::Bug. The original AppendComment takes
 	# the user ID instead of the user name, so we need to convert
@@ -501,26 +505,34 @@
 
 	if ( $userid > 0 ) {
 	    bugzilla_2_20_fixed_AppendComment( $bugid, $userid, $comment );
+            close LOGFILE;
 	    return 0;
 	} else {
 	    # This should never happen. Each user should have a
 	    # corresponding userid in the database schema
+            close LOGFILE;
 	    return 1, "Login '$username' could not be converted to an id in Bugzilla. Is username mapping setup correctly in daemon.conf ?\n" ;
 	}
     } elsif ( $self->is_version_up_to_2_22() || $self->is_version_latest() ) {
+        print LOGFILE "version is up to 2_22 or latest \n";
 	# AppendComment was fixed in Bugzilla 2.22. Should use the
 	# native version
 	my $userid = Bugzilla::User::login_to_id( $username );
 
 	if ( $userid > 0 ) {
 	    Bugzilla::Bug::AppendComment( $bugid, $userid, $comment );
+              print LOGFILE  "userid is $userid -- return 0\n";
+              close LOGFILE;
 	    return 0;
 	} else {
 	    # This should never happen. Each user should have a
 	    # corresponding userid in the database schema
+            close LOGFILE;
 	    return 1, "Login '$username' could not be converted to an id in Bugzilla. Is username mapping setup correctly in daemon.conf ?\n" ;
 	}
     } else {
+        print LOGFILE "version is something else\n";
+        close LOGFILE;
 	AppendComment( $bugid, $username, $comment );
 	return 0;
     }

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