Path Templating with multiple parameters allows for ambiguous parsing #1970
Labels
clarification
requests to clarify, but not change, part of the spec
request matching
Matching requests to URL templates, media types, etc.
Currently the support for path segments is ambiguous even in simple cases:
Consider:
If the URL
/a:b:c/update
is received, there are two possible parses which, as far as I can tell, the spec doesn't state which is correct.foo
=a
,bar
=b:c
foo
=a:b
,bar
=c
This means that two different implementations may have different interpretations of how parameters map through.
Note, from an implementation perspective, this gets more challenging, as in order to parse the URL to work out which operation it is, you need to know the full structure of the path parameter, as that may break the ambiguity (e.g. if
bar
is anenum
which can only take valuesc
, ord
, then the parse collapses into the second option).The text was updated successfully, but these errors were encountered: