-
Notifications
You must be signed in to change notification settings - Fork 19
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
Reference-listing path for draft-arkko-farrell-arch-model-t steers to XML instead of document in output files #378
Comments
Forgot to add that the file that contains the problem draft link is RFC-to-be 9464, which is otherwise ready to be published as an RFC, so publication will have to be delayed until (1) this issue is fixed or (2) we ask the authors if they want to remove draft-arkko-farrell-arch-model-t from the references list and they decide to do so. |
The source of truth at https://datatracker.ietf.org/doc/bibxml3/reference.I-D.arkko-farrell-arch-model-t.xml points to the correct place. |
@lbartholomew-rpc - consider changing the source document to point to https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.draft-arkko-farrell-arch-model-t-04.xml instead |
Hi, Robert. Re. pointing to https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.draft-arkko-farrell-arch-model-t-04.xml instead -- this worked. Is there something special that we need to know re. whether or not to include "draft-" and/or the version number? Thanks. |
leaving out both draft- and the version number gives you a pointer to a pronoun that will resolve to whatever the current version is at the time you reference it. Providing draft- and the version number will always resolve to that specific version. |
Good to know; thanks!
… On Nov 2, 2023, at 11:18 AM, Robert Sparks ***@***.***> wrote:
leaving out both draft- and the version number gives you a pointer to a pronoun that will resolve to whatever the current version is at the time you reference it. Providing draft- and the version number will always resolve to that specific version.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@stefanomunarini Do you have any insight into the |
@stefanomunarini there must be somewhere else in the BibXML service which manipulates this URL. https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.arkko-farrell-arch-model-t.xml has the following in the header:
While https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.cuiling-dnsop-sm2-alg.xml has
For some reason, BibXML thinks there's a newer version in datatracker. See https://github.com/ietf-tools/bibxml-service/blob/main/bibxml/xml2rfc_adapters.py#L295 BTW if BibXML thinks there's a newer version, BibXML shouldn't return the API URL rather use the data from API call to get the latest URL. |
@stefanomunarini Read further up issue. The datatracker is NOT returning the api as the target as the links already above show. |
You're right, In fact the bibxml-service is returning this warning when retrieving this draft:
bibxml-service does not manipulate the value itself, however it uses a callback to retrieve the most recent version of an ID document, using the Datatracker APIs. In this particular case, Datatracker has version 4 of this Internet Draft, while the service is only indexing version 2 of the same draft. I am investigating why this is happening, and also why the Datatracker API URL is used in these cases. |
It looks like we may be matching bibxml-service/bibxml/xml2rfc_adapters.py Lines 183 to 187 in 31dc5f2
If it was |
We should also clarify in the code that the two digits are intended to represent possible I-D versions. |
should the {2} be {2-3} (or whatever the syntax is) ? I can't find any examples right now of drafts that went over 99, but I definitely found examples of ones that went to 99. |
No - we've never had > 99 in the repo/archive to my knowledge. And the datatracker only knows things up to 99. That said, trying to find versions at the end of drafts by regular expression alone is almost impossible. There is some backtracking you have to do (we've done it with iteration in python) because things like draft-foo-bar-802-11-00 exist. (Real example: https://datatracker.ietf.org/doc/html/draft-ietf-tsvwg-ieee-802-11-11) |
bibxml-service/bibxml/xml2rfc_adapters.py Lines 183 to 187 in 31dc5f2
In this case, Or am I not getting something else here? @rjsparks |
How do you deal with the string More concretely, see https://bib.ietf.org/public/rfc/bibxml-ids/reference.I-D.ietf-tsvwg-ieee-802.xml and note that the returned anchor is incorrect - there is no such thing as |
bibxml-service treats requests for VERSIONED and UNVERSIONED documents differently. The query above is used to retrieve the latest version of the requested unversioned documents, using the full string (in this case draft-ietf-tsvwg-ieee-802-11). If there is a version N indexed in the service, draft-ietf-tsvwg-ieee-802-11-N is returned.
This is a different issue I think. I can see ietf-tsvwg-ieee-802 is actually indexed in the service. Should this not be the case, can you @rjsparks please open a new issue? Thanks |
This issue seems to currently affect |
That draft is not falling victim to the version matching problem, but is still spitting out a reference to the v1 api. @stefanomunarini what did you discover about where that's coming from. |
Describe the issue
Path in the XML file is typical:
https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.arkko-farrell-arch-model-t.xml
but for draft-arkko-farrell-arch-model-t, the link is unusual -- includes "api/v1/":
Output for
https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.arkko-farrell-arch-model-t.xml
on https://www.rfc-editor.org/authors/rfc9464.html is
https://datatracker.ietf.org/api/v1/doc/document/draft-arkko-farrell-arch-model-t/
as compared to output for
https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-tls-esni.xml on
https://www.rfc-editor.org/authors/rfc9462.html
which is as it should be:
https://datatracker.ietf.org/doc/html/draft-ietf-tls-esni-17
Code of Conduct
The text was updated successfully, but these errors were encountered: