Skip to content
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

Parsing as Structured Fields: MAY or SHOULD? #1606

Closed
mnot opened this issue Aug 17, 2021 · 2 comments · Fixed by #1666
Closed

Parsing as Structured Fields: MAY or SHOULD? #1606

mnot opened this issue Aug 17, 2021 · 2 comments · Fixed by #1666

Comments

@mnot
Copy link
Member

mnot commented Aug 17, 2021

Right now, parsing of targeted Cache-Control is specified like this:

Targeted fields MAY be parsed as a Dictionary Structured Field [RFC8941], and implementations are encouraged to use a parser for that format in the interests of robustness, interoperability and security. [...] However, implementers MAY reuse a Cache-Control parser for simplicity.

The idea here is that while we'd like the interop benefits of SF, we recognise that some -- perhaps many -- implementers will have a strong motivation to reuse their Cache-Control parsers.

This seems like it might be the worst of both worlds, in that we now have two possible implementation strategies. Given that there are several SF implementations now, I wonder whether should reconsider this. E.g.,

  1. Strengthen the first MAY to a SHOULD, making the field sf-first, or even
  2. Require SF, don't allow reuse of CC parsers
mnot added a commit that referenced this issue Sep 13, 2021
@mnot
Copy link
Member Author

mnot commented Sep 16, 2021

Reopening to double-check that we still want to allow CC parsers.

@mnot mnot reopened this Sep 16, 2021
@mnot
Copy link
Member Author

mnot commented Oct 11, 2021

To be clear: the remaining issue (as discussed at the interim) is whether we want to remove the text allowing Cache-Control parsers to be reused for this field.

@mnot mnot closed this as completed Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant