Bug 235158
Summary: | report error when clone a cert whose component = "Component/Peripheral" | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Ready Certification Tests | Reporter: | heyinglong <nobody+yhe> | ||||
Component: | web site | Assignee: | XINSUN <xisun> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Yu Shao <yshao> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 1.0 | CC: | bxu, rlandry, xiqin, ykun, yshao | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | (2.18rh) 2008/05/23 push | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2008-06-23 07:43:55 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 238457 | ||||||
Attachments: |
|
Description
heyinglong
2007-04-04 03:41:54 UTC
This may no longer be an issue after the DB change, will leave open to investigate/fix. Created attachment 305355 [details]
Pls review.
The bug is caused by the below codes:
my $cert_type = $::FORM{'internal_whiteboard'};
.......
y $status = "Compatible";
if ($cert_type ne "Component/Peripheral") {
$cert_type = "SYSTEM";
$status = "Certified";
} else {
# Find the test type (AUDIO/NETWORK/STORAGE/etc) and use that as cert_type
# This should just work if each of the uploaded packages are similar in
tests and
# the test ran besides INFO is the type of component being tested.
foreach my $i (keys %tests) {
foreach my $type (keys %{$tests{$i}}) {
next if $type eq 'INFO';
$cert_type = $type;
}
}
}
my $cert_id = CreateCertRecord($id, $cert_type, "false", $status, "now()");
When the $cert_type eq "Component/Peripheral", $cert_type needs to be taint
before insert it into db.
Best Regards!
Nicho
if this tests cleanly, please check-in Have tested well, have checked into cvs. Nicho |