-
Notifications
You must be signed in to change notification settings - Fork 107
Clean up query term discussion #925
Copy link
Copy link
Open
Labels
class 2Changes that do not functionally affect interpretation of the documentChanges that do not functionally affect interpretation of the documentdiscussNeeds further discussion before a pull request can be createdNeeds further discussion before a pull request can be created
Description
Activity
Metadata
Metadata
Assignees
Labels
class 2Changes that do not functionally affect interpretation of the documentChanges that do not functionally affect interpretation of the documentdiscussNeeds further discussion before a pull request can be createdNeeds further discussion before a pull request can be created
There's an unstated assumption in some of our work that the query part in a DID URL is comprised of key-value pairs, such as
https://example.com?foo=1&bar=2This is, unfortunately, incorrect.For example, in the query section, https://w3c.github.io/did/#query we have
However, as queries are currently defined
and from 3986
There is only ever one query part to a DID URL.
Further, we are exceptionally clear in that section that we provide no further normalization rules.
So, restricted to just what is in 3986 means that duplicate query parameters are not a thing.
To wit,
The URL
https://example.com?foo=good&bar=bad&foo=uglycontains just one query part,foo=good&bar=bad&foo=uglyWe probably have multiple places in various specs that get this wrong. DID Resolution is what I'm working on now, and it definitely needs help.