spdx-spec icon indicating copy to clipboard operation
spdx-spec copied to clipboard

What is a standard URL to reference IETF RFC?

Open bact opened this issue 1 year ago • 8 comments

Currently, five styles of referencing IETF RFC found across spdx-spec and spdx-3-model

  1. https://tools.ietf.org/html/rfc1321 - Found in Normative References. Also used by References section in Bob's Word doc 2024-07-22.
  2. http://www.ietf.org/rfc/rfc3986.txt - packageVerificationCodeExcludedFile
  3. https://datatracker.ietf.org/doc/rfc1319/ - HashAlgorithm
  4. https://datatracker.ietf.org/doc/html/rfc7693 - HashAlgorithm
  5. https://www.rfc-editor.org/rfc/rfc4634 - HashAlgorithm

Additionally, there are other two styles of referencing IETF RFCs:

  1. https://www.rfc-editor.org/info/rfc2046 - Used by a bibtex produced from IETF Datatracker (click on "Formats: bibtex" button).
  2. https://doi.org/10.17487/RFC3986 - Digital object identifier (DOI) for RFC, according to RFC 7669

These seven URLs land on different pages, but few of them are actually redirections:

  • (4)-style redirects to (1)-style
  • (7)-style redirects to (6)-style

In terms of functionality, they are all pretty much the same, as all of them (except (2)) have links to different file formats and other pages of the same RFC.

--

Which one should we stick with?

  • Having multiple ways to refer to a single resource may require the automatic production of footnotes/bibliography to aware that all of these are the same. Or we are at risk of producing duplicated references.
  • I'm thinking about (6) as it is the one preferred by IETF themselves. But the downside of (6) (and (3)) is that you cannot link directly to subsection; while (1), (4), and (5) can. For example, https://tools.ietf.org/html/rfc7693#section-4 .

bact avatar Jul 26 '24 15:07 bact

I'm started to try (6) - the one like this: https://www.rfc-editor.org/info/rfc2046 to few docs, see:

  • https://github.com/spdx/spdx-3-model/pull/806
  • https://github.com/spdx/spdx-3-model/pull/810

These can be changed upon what we agreed about the URL style.

bact avatar Jul 26 '24 17:07 bact

I propose we use https://datatracker.ietf.org/doc/rfc1/ As with most of the alternatives, it has links to different formats, if one has a strong preference for viewing.

Of course, consistency is more important than any specific choice we made.

zvr avatar Jul 26 '24 18:07 zvr

Agree on this approach to use https://datatracker.ietf.org/doc/rfc1/

bobmartin3000 avatar Jul 29 '24 01:07 bobmartin3000

@bact are we in agreement for https://datatracker.ietf.org/doc/rfcXXXX/ ?

zvr avatar Aug 11 '24 18:08 zvr

All the URLs have been standardized in the big PR from Alexios, but still need a discussion to see if need be resolved.

kestewart avatar Aug 11 '24 21:08 kestewart

The References chapter has everything correct, but not all instances inside the other files are. Expect two PRs tomorrow (one in spec repo, one in model).

zvr avatar Aug 11 '24 22:08 zvr

I prefer https://www.rfc-editor.org/info/rfcXXX/ (Option 6), only because it is the format used by a bibtex produced from IETF themselves (click on "bibtex" button).

But as both https://datatracker.ietf.org/doc/rfcXXX (Option 3) and https://www.rfc-editor.org/info/rfcXXX (Option 6) are sharing the same disadvantage of not being able to link directly to a subsection of a document, choosing any of them is no difference for me in that respect. So no strong objection against Option 3.

Option 6 is now the only format that is being used in every instances in the spdx-3-model repo -- which should make it easier to be replaced by any other format, if needed.

bact avatar Aug 11 '24 23:08 bact

Need a PR in the model repo and a PR in the spec Repo.

@bact will create the PRs.

goneall avatar Aug 27 '24 17:08 goneall

2 PRs created to update all RFC links to use https://datatracker.ietf.org/doc/rfcXXX format

  • for spdx-spec https://github.com/spdx/spdx-spec/pull/1107
  • for spdx-3-model https://github.com/spdx/spdx-3-model/pull/877

bact avatar Sep 09 '24 11:09 bact