-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compare_ds
tool is reporting that rules are not part of ssg-product-oval anymore
#10408
Comments
I guess this makes the compare_ds service kind of useless if there is always this kind of output |
Same observed in: #10403 (comment) |
Apparently it's loading the cpe-oval content instead of oval content: |
The new DS has a new entry of cpe in:
whereas the old datastream doesn't have:
The function: Lines 224 to 242 in 366ba8c
loads the date and since CPE also has the |
index 5eaf1c3de2..ae8696650d 100644
--- a/ssg/xml.py
+++ b/ssg/xml.py
@@ -234,6 +234,8 @@ class XMLContent(XMLElement):
filename = self.uris["#" + self.component_refs[comp_href]]
except KeyError:
continue
+ if "cpe" in filename:
+ continue
def_doc_dict[filename] = XMLComponent(def_doc)
component_doc_dict[check_spec[0]] = def_doc_dict
# This component matched one of the checking engines, If we skip loading the @jan-cerny can you take a look at this one? |
@ggbecker The fix seems to work. Thanks for the investigation! I think that when we are here we can make the method less clumsy and more generic. I will emit a PR. |
SCAP source data streams can reference multiple check components usually OCIL, OVAL and CPE OVAL. This commit fixes the situation when there is both OVAL and CPE OVAL needed for an XCCDF Benchmark. We improve the _find_all_component_contents and make it more generic and also refactor the code. Fixes: ComplianceAsCode#10408
As observed in #10406 (comment)
excerpt:
From this block of code:
content/ssg/content_diff.py
Lines 171 to 186 in 366ba8c
There is likely some change needed in the
content_diff.py
script to handle this exception properlyThe text was updated successfully, but these errors were encountered: