Tracker: Bugs

5 Scmbug integration fails with multiple Bug IDs - ID: 2023663
Last Update: Comment added ( sits )

I found a strange bug that passed me by when I was helping with the Scmbug integration.

The create Topic will fail if more than one Bug ID is supplied. This is caused by the list of bug IDs getting spaces inseted between the comas. Fix for this is simple, in the file ScmBug.pm function getDiff replace:

my $affected_files_list = $self->{scmbug}->get_affected_files( $bugids );

with:

my $raw_bugids = $bugids;
$raw_bugids =~ s/ //g;

my $affected_files_list = $self->{scmbug}->get_affected_files( $raw_bugids );

Thanks

Rob


rob_webset ( rob_webset ) - 2008-07-21 08:22:52 PDT

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comment ( 1 )

Date: 2008-07-21 17:58:54 PDT
Sender: sitsProject Admin


Thanks - I've put the following in:

# Remove spaces from the comma-separated list of bug ids so that
# "123, 456" is transformed to "123,456" which is the form
# Scmbug::ActivityUtilities expects.
$bugids =~ s/ //g;
my $affected_files_list =
$self->{scmbug}->get_affected_files($bugids);



Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2008-07-21 17:58:54 PDT sits
resolution_id None 2008-07-21 17:58:54 PDT sits
close_date - 2008-07-21 17:58:54 PDT sits