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

Consider requirements for specifying the order in which content negotiation is performed #500

Closed
larsgsvensson opened this issue Oct 26, 2018 · 4 comments · Fixed by #993

Comments

@larsgsvensson
Copy link
Contributor

larsgsvensson commented Oct 26, 2018

It would appear that it will necessary to negotiate for profile before language or content-type. Memento specifies that time-based negotiation MUST take place before any other negotiation.

larsgsvensson added a commit that referenced this issue Oct 26, 2018
Added references to issues #500 and #501
@nicholascar
Copy link
Contributor

nicholascar commented Oct 26, 2018

Yes I think we need to although will an assertion in this doc be respected by other IETF docs?

Will the PROF-IETF doc, when accepted, necessarily reorder other conneg processes or, put differently, how will clients/servers know which order to believe in the event of a collision of intentions? Does the IETF process sort out those issues before acceptance?

@larsgsvensson
Copy link
Contributor Author

The IETF document will have to say something on that topic, just as memento does. The question is what we will have to specify.

@kcoyle kcoyle changed the title Specify ther order in which content negotiation is performed Specify the order in which content negotiation is performed Oct 26, 2018
@nicholascar nicholascar changed the title Specify the order in which content negotiation is performed Consider requirements for specifying the order in which content negotiation is performed Feb 28, 2019
@nicholascar
Copy link
Contributor

Currently, we don not see strong requirements to specify an order.

@nicholascar nicholascar added this to the Conneg 3PWD milestone Feb 28, 2019
@larsgsvensson larsgsvensson moved this from To do to In progress in Content Negotiation by Profile Apr 3, 2019
@larsgsvensson larsgsvensson self-assigned this Apr 3, 2019
@larsgsvensson
Copy link
Contributor Author

The I-D currently says that servers SHOULD handle Accept-Profile before looking at other negotiation dimensions:

Although servers are free to implement negotiation as they see fit, if the User Agent sends an "Accept-Profile" header, they SHOULD consider representations not conforming to any of the listed profiles as non-interpretable by the client. This means that a representation that conforms to a listed profile, but has a low preference score on other dimensions, SHOULD be considered as more desired than a representation with a higher preference score on other dimensions but that does not conform to any listed profile. If no "Accept-Profile" header preference is given, the profile dimension SHOULD be ignored for negotiation purposes. Nonetheless, in all cases, the server's response SHOULD contain a "Content-Profile" header listing the URIs of all profiles to which it knows the representation conforms.

Shall we add something along those lines to conneg-by-ap, too?

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.

2 participants