Bug 32398

Summary: FIXME: Cannot create a new product without any components
Product: [Community] Bugzilla Reporter: David Lawrence <dkl>
Component: Bugzilla GeneralAssignee: David Lawrence <dkl>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.8   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-03-20 15:29:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Lawrence 2001-03-20 15:29:35 UTC
When creating a new product, you cannot got back to the query page and add
components to the new product because the query page breaks with an error
message.

Software error:
Can't use string ("") as an ARRAY ref while "strict refs" in use at
globals.pl line 502.

Need to figure out a way to add a component to a product with out
components.

One possibility is to have GenerateVersionTable to skip component lists
that do not have one or more components from the versioncache file.

Comment 1 David Lawrence 2001-03-20 16:28:20 UTC
Commented out the following code and it seems to have fixed the problem. For
some reason they had it where if the array was empty it would create the
variable as a scalar. Well this breaks in enter_bug.cgi and query.cgi because it
expects it to be a array reference.

#    foreach my $i (@list) {
#        if (!defined $::components{$i}) {
#            $::components{$i} = "";
#        }
#    }