Skip to content

Commit

Permalink
Merge pull request #830 from tschmidtb51/changes-csv
Browse files Browse the repository at this point in the history
`changes.csv`: Clarify quoting
  • Loading branch information
santosomar authored Nov 27, 2024
2 parents d8fd250 + f090e06 commit bbf7729
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
17 changes: 12 additions & 5 deletions csaf_2.1/prose/edit/src/distributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,18 +194,25 @@ The index.txt file within MUST provide a list of all filenames of CSAF documents
### Requirement 13: changes.csv

The file changes.csv MUST contain the filename as well as the value of `/document/tracking/current_release_date` for each
The file `changes.csv` contains a list of CSAF documents in the current TLP level that were changed recently.
Therefore, it MUST contain the filename as well as the value of `/document/tracking/current_release_date` for each
CSAF document in the sub-directories without a heading; lines MUST be sorted by the `current_release_date` timestamp with the latest one first.
The `changes.csv` SHALL be a valid comma separated values format as defined by [cite](#RFC4180) without double quotes.

> Note: As a consequence of section [sec](#requirement-2-filename) Requirement 2 for filenames and section [sec](#requirement-11-one-folder-per-year)
> Requirement for directory names, there must not be any characters within the `changes.csv` that would require quoting.
*Example 1:*

```
"2023/esa-2023-09953.json","2023-07-01T10:09:07Z"
"2021/esa-2021-03676.json","2023-07-01T10:09:01Z"
"2022/esa-2022-02723.json","2022-04-17T15:08:41Z"
"2021/esa-2021-31916.json","2022-03-01T06:01:00Z"
2023/esa-2023-09953.json,2023-07-01T10:09:07Z
2021/esa-2021-03676.json,2023-07-01T10:09:01Z
2022/esa-2022-02723.json,2022-04-17T15:08:41Z
2021/esa-2021-31916.json,2022-03-01T06:01:00Z
```

> Note: As CSAF 2.0 requires quotes, an [cite](#RFC4180) parser can read both format revisions.
### Requirement 14: Directory listings

Directory listing SHALL be enabled to support manual navigation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ RFC2119
RFC3339
: Klyne, G. and C. Newman, "Date and Time on the Internet: Timestamps", RFC 3339, DOI 10.17487/RFC3339, July 2002, <https://www.rfc-editor.org/info/rfc3339>.

RFC4180
: Shafranovich, Y., "Common Format and MIME Type for Comma-Separated Values (CSV) Files", RFC 4180, DOI 10.17487/RFC4180, October 2005, <https://www.rfc-editor.org/info/rfc4180>.

RFC7464
: Williams, N., "JavaScript Object Notation (JSON) Text Sequences", RFC 7464, DOI 10.17487/RFC7464, February 2015, <https://www.rfc-editor.org/info/rfc7464>.

Expand Down

0 comments on commit bbf7729

Please sign in to comment.