Skip to content

Link to review document without corresponding assignment returns server error #3906

Description

@jennifer-richards

What happened?

Crash reports came in for /doc/review-ietf-v6ops-slaac-renum-03-secdir-lc-wierenga-2020-09-24/. (This is a sandbox link - effectively the same behavior is seen on production)

The error reported on production is as follows (sandbox is the same, except with a debug message instead of an empty name keyword argument)

django.urls.exceptions.NoReverseMatch: Reverse for 'ietf.doc.views_doc.document_main' with keyword arguments '{'name': ''}' not found. 1 pattern(s) tried: ['doc/(?P<name>[A-Za-z0-9._+-]+?)(?:/(?P<rev>[0-9]{1,2}(-[0-9]{2})?))?/$']

Poking, it seems that assignments = ReviewAssignment.objects.filter(review__name=doc.name) on l.708 of views_doc.py is empty, which makes its way to review_req being None.

What browser(s) are you seeing the problem on?

Not Applicable

Code of Conduct

  • I agree to follow the IETF's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions