Fix 6.2.5#691
Conversation
|
Sorry, I don't really understand - why would you expect an error message in test file that obviously does not have an initial release date of |
|
You are absolutely right! |
…imum UTC timestamp
|
or should i use rev_history.inplace_sort_by_date_then_number()? |
…ce_sort_by_date_then_number())
|
I adopted it to use the provided function "inplace_sort_by_date_then_number()" |
I'm confused. Could you please detail where the "upstream bug" is/was? I looked at https://github.com/oasis-tcs/csaf/blob/master/csaf_2.0/test/validator/data/optional/oasis_csaf_tc-csaf_2_0-2021-6-2-05-01.json and https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#625-older-initial-release-date-than-revision-history - but I'm not seeing it atm. |
|
Hi! You are completely right, and I owe you a big apology—there is no upstream bug in the OASIS test cases or the specification. The confusion was entirely on my end due to a logical knot I tied myself into while debugging. I mistakenly flipped the comparison operator after misidentifying a valid CSAF 2.0 test file as a failing one, which corrupted the timestamp ordering and broke the CSAF 2.1 validation output. The Fix: Thanks a lot for double-checking and calling this out—it completely put me back on the right track! |
|
If I see it correctly, the pull request
but contains no substantial contribution or change in logic. |
|
yes, you see that right. but it seems that these tests were already implemented (besides the None->Some change in 6.3.11), so we were a bit confused. |
|
You surely can implement these tests. We have a lot covered for CSAF 2.0, but still missing the 2.1 implementation. Meaning all issues labeled with csaf 2.1 or having "test for csaf 2.1" in their title and have a corresponding test in CSAF 2.0 may already have an implementation which works for CSAF 2.0 files. You have to check if it also works for CSAF 2.1 files and possibly change the implementation so it works for both versions. Please also update the validation.rs file and the README to reflect the implementation status. If necessary, add additional supplementary test cases (may alread be there for 2.0, missing for 2.1). |
Fixed test code for test 6.2.5