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

Warnings for header and cookie serialization (3.0.4) #3841

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

handrews
Copy link
Member

@handrews handrews commented May 23, 2024

Rendering with all currently open 3.0.4 changes (as of the timestamp of this edit - use the dropdown on the word "edited" in the bar for this comment) can be found here.

Fixes:

This is Appendix D because other open PRs add B and C, I'll sort it all out when resolving merge conflicts.

This makes serializing cookie paramters and most header parameters with schema and style NOT RECOMMENDED.
It is not clear that any schema-based serialization for cookies will produce a correct value (although the reason is sufficiently obscure that many implementations might ignore it and produce cookie-compliant output anyway).
With headers, there are numerous pitfalls and only the simplest scenarios will work properly, although perhaps the warning here could be reworded to emphasize the safe scenarios more clearly.

The details are relegated to an appendix, because truly, most people will not want to know. But recommending against syntactically legal configurations really does need to be explained in the spec.

Also, don't use

  • in: header
    name: Cookie

Because... yeah.

@handrews handrews added param serialization Issues related to parameter and/or header serialization headers labels May 23, 2024
@handrews handrews added this to the v3.0.4 milestone May 23, 2024
@handrews handrews requested a review from a team May 23, 2024 02:54
versions/3.0.4.md Outdated Show resolved Hide resolved
Copy link
Contributor

@ralfhandl ralfhandl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, minor nit

ralfhandl
ralfhandl previously approved these changes May 23, 2024
miqui
miqui previously approved these changes May 29, 2024
handrews and others added 2 commits June 10, 2024 16:01
This makes serializing cookie paramters and most header parameters
with `schema` and `style` NOT RECOMMENDED.
It is not clear that any `schema`-based serialization for cookies
will produce a correct value (although the reason is sufficiently
obscure that many implementations might ignore it and produce
cookie-compliant output anyway).
With headers, there are numerous pitfalls and only the simplest
scenarios will work properly, although perhaps the warning
here could be reworded to emphasize the safe scenarios more clearly.

The details are relegated to an appendix, because truly, most
people will not want to know.  But recommending against syntactically
legal configurations really does need to be explained in the spec.

Also, don't use

- in: header
  name: Cookie

Because... yeah.
Co-authored-by: Ralf Handl <ralf.handl@sap.com>
@miqui miqui merged commit 67bdb5a into OAI:v3.0.4-dev Jun 10, 2024
1 check passed
@handrews handrews deleted the h-and-c-304 branch June 11, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
headers param serialization Issues related to parameter and/or header serialization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants