mnot / I-D

My Internet-Drafts
https://mnot.github.io/I-D/
Other
98 stars 38 forks source link

RFC5988bis - Need clarification on `parameter_value` decode failure #250

Closed uhhhh2 closed 7 years ago

uhhhh2 commented 7 years ago

In Appendix B.3 "Parsing Parameters", if parameter_name ends in *, the parameter_value is to be decoded according to RFC 5987bis (now RFC 8187). If this decode operation fails, should the parameter_value be set to:

  1. The parameter_value before the RFC 5987bis/RFC 8187 decoding attempt
  2. The empty string
  3. Something else
mnot commented 7 years ago

Good question.

My instinct would be to remove the star-parameter, and allow it to fall back to the ASCII version of the parameter.

@reschke is there any best practice here?

reschke commented 7 years ago

That sounds like a good choice.

mnot commented 7 years ago

@uhhhh2 the current text is:

            5.  If the last character of parameter_name is an asterisk
                ("*"), decode parameter_value according to [RFC8187].
                Continue processing input if an unrecoverable error is
                encountered.

What's ambiguous about that?

mnot commented 7 years ago

Closing; please comment (ASAP, as it's about to be published) if you think this is still an issue.