Skip to content

'latest' endpoints heuristics need to be tuned #3437

@ietf-svn-bot

Description

@ietf-svn-bot

owner:jennifer@painless-security.com resolution_fixed type_defect | by rjsparks@nostrum.com


The new bit of code to help rfcdiff find the latest version of a draft is broken by a draft whose name ends with -3.

The code that renders /doc/html/something-with-no-version-3 probably has the same problem.

Perhaps the code could be moved to be shared.

ValueError at /doc/rfcdiff-latest-json/draft-ietf-poised95-std-proc-3-05

invalid literal for int() with base 10: '3-05'

Request Method: 	GET
Request URL: 	https://datatracker.ietf.org/doc/rfcdiff-latest-json/draft-ietf-poised95-std-proc-3-05
Django Version: 	2.2.24
Exception Type: 	ValueError
Exception Value: 	

invalid literal for int() with base 10: '3-05'

Exception Location: 	/a/www/ietf-datatracker/web/ietf/doc/views_doc.py in rfcdiff_latest_json, line 1905
Python Executable: 	/a/www/ietf-datatracker/web/env/bin/python
Python Version: 	3.6.12
Python Path: 	

['/a/www/ietf-datatracker/web',
 '/usr/lib/python36.zip',
 '/usr/lib64/python3.6',
 '/usr/lib64/python3.6/lib-dynload',
 '/a/www/ietf-datatracker/web/env/lib64/python3.6/site-packages',
 '/a/www/ietf-datatracker/web/env/lib/python3.6/site-packages',
 '/a/www/ietf-datatracker/web']

Issue migrated from trac:3437 at 2022-03-04 09:17:09 +0000

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions