Skip to content

Multiset-ballot draftnames separated by comma only in the database #767

Description

@ietf-svn-bot

owner:olau@iola.dk resolution_fixed type_defect | by henrik@levkowetz.com


It seems that the multiset-ballot draft names are not always separated by
", ", as the code seems to expect, but instead in some cases by just ",".
The patch below seems to work in order to handle this better.

An example of a multi-ballot document is /doc/rfc4515/.

Index: ietf/idrfc/views_doc.py
===================================================================
--- ietf/idrfc/views_doc.py	(revision 3975)
+++ ietf/idrfc/views_doc.py	(working copy)
@@ -163,7 +163,7 @@
 
             multiset_ballot_text = "This was part of a ballot set with: "
             if e.desc.startswith(multiset_ballot_text):
-                names = e.desc[len(multiset_ballot_text):].split(", ")
+                names = [ n.strip() for n in e.desc[len(multiset_ballot_text):].split(",") ]
                 e.desc = multiset_ballot_text + ", ".join(u'<a href="%s">%s</a>' % (urlreverse("doc_view", kwargs={'name': n }), n) for n in names)
                 info["dontmolest"] = True

Issue migrated from trac:767 at 2022-03-04 01:58:15 +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