Scroll to navigation

CSAF::Validator::OptionalTests(3pm) User Contributed Perl Documentation CSAF::Validator::OptionalTests(3pm)

NAME

CSAF::Validator::OptionalTests

SYNOPSIS

    use CSAF::Validator::OptionalTests;
    my $v = CSAF::Validator::OptionalTests->new( csaf => $csaf );
    $v->exec_test('6.2.2');
    $v->TEST_6_2_2;

DESCRIPTION

Optional tests SHOULD NOT fail at a valid CSAF document without a good reason. Failing such a test does not make the CSAF document invalid. These tests may include information about features which are still supported but expected to be deprecated in a future version of CSAF.

    6.2.1 Unused Definition of Product ID (*)
    6.2.2 Missing Remediation
    6.2.3 Missing Score
    6.2.4 Build Metadata in Revision History
    6.2.5 Older Initial Release Date than Revision History
    6.2.6 Older Current Release Date than Revision History
    6.2.7 Missing Date in Involvements
    6.2.8 Use of MD5 as the only Hash Algorithm
    6.2.9 Use of SHA-1 as the only Hash Algorithm
    6.2.10 Missing TLP label
    6.2.11 Missing Canonical URL
    6.2.12 Missing Document Language
    6.2.13 Sorting (*)
    6.2.14 Use of Private Language
    6.2.15 Use of Default Language
    6.2.16 Missing Product Identification Helper
    6.2.17 CVE in field IDs
    6.2.18 Product Version Range without vers
    6.2.19 CVSS for Fixed Products
    6.2.20 Additional Properties (**)

(*) actually not tested in this CSAF distribution.

(**) tested in CSAF::Parser

METHODS

CSAF::Validator::OptionalTests inherits all methods from CSAF::Validator::Base and implements the following new ones.

Unused Definition of Product ID
Missing Remediation
Missing Score
Build Metadata in Revision History
Older Initial Release Date than Revision History
Older Current Release Date than Revision History
Missing Date in Involvements
Use of MD5 as the only Hash Algorithm
Use of SHA-1 as the only Hash Algorithm
Missing TLP label
Missing Canonical URL
Missing Document Language
Sorting
Use of Private Language
Use of Default Language
Missing Product Identification Helper
CVE in field IDs
Product Version Range without vers
CVSS for Fixed Products
Additional Properties

Tested in CSAF::Parser

SUPPORT

Bugs / Feature Requests

Please report any bugs or feature requests through the issue tracker at <https://github.com/giterlizzi/perl-CSAF/issues>. You will be notified automatically of any progress on your issue.

Source Code

This is open source software. The code repository is available for public review and contribution under the terms of the license.

<https://github.com/giterlizzi/perl-CSAF>

    git clone https://github.com/giterlizzi/perl-CSAF.git

AUTHOR

Giuseppe Di Terlizzi <gdt@cpan.org>

LICENSE AND COPYRIGHT

This software is copyright (c) 2023-2025 by Giuseppe Di Terlizzi.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2025-09-03 perl v5.40.1