723 duplicate claims entry - #750
Conversation
|
Alternatively to the solution proposed in this PR, what if we remove the restrictions on the RP and requirements on the wallet to check anything related to duplicates? |
|
I agree with @martijnharing that it might be better to just remove this text. Is there a specific argument for this text to exist? |
Despite any personal opinion, removing the entire text about duplicate entries is likely a breaking change. |
paulbastian
left a comment
There was a problem hiding this comment.
I think it adds clarity while avoiding a breaking change.
fkj
left a comment
There was a problem hiding this comment.
I'm OK with doing this to clarify without a breaking change, though it's still not clear to me why this text exists in the first place.
Co-authored-by: Joseph Heenan <joseph@heenan.me.uk>
| : OPTIONAL. A non-empty array of objects as defined in (#claims_query) that specifies | ||
| claims in the requested Credential. Verifiers MUST NOT point to the same claim more than | ||
| once in a single query. Wallets SHOULD ignore such duplicate claim queries. | ||
| claims in the requested Credential. Verifiers MUST NOT include queries pointing to the same claim as identified | ||
| by the claims path pointer more than once, unless they are requesting different values for that claim. | ||
| If such duplicate claim queries are detected, Wallets SHOULD process the first occurrence and ignore duplicates. |
There was a problem hiding this comment.
I'm still not sure what this means for this case, does it mean:
claims = [
{ id = 1, path = [ "nationalities", 0 ] },
{ id = 2, path = [ "nationalities", null ] }
}
is treated as a duplicate, i.e. '2' is discarded?
The latest change causes a change in the behaviour for this query:
claims = [
{ path = [ name ], values = [ oliver ] },
{ path = [ name ], values = [ colette ] }
]
I think it's gone from 'ignore the 'collete' line' (in 1.0 final) to 'process that line but the result is a query that can never match a credential'.
I kind of feel like we're going the wrong direction down a rabbit hole, but I'm not sure what the right direction is.
My suspicion is the original text was really only trying to say that the second line here has no meaning:
claims = [
{ path = [ name ] },
{ path = [ name ] }
]
I'm not sure if it's actually a breaking change. It would allow an RP to include a duplicate in the request, but I don't think that actually breaks anything. |
|
WG discussion: let's try removing the lines as recommended by @martijnharing |
Co-authored-by: Christian Bormann <chris.bormann@gmx.de>
martijnharing
left a comment
There was a problem hiding this comment.
Proposed changing the changelog text, but not gating approval on that.
Co-authored-by: Martijn Haring <62745275+martijnharing@users.noreply.github.com> Co-authored-by: Christian Bormann <chris.bormann@gmx.de>
|
@jogu the PR has been adjusted to match the direction the group felt was best during our last call. |
|
@jogu please re-review text you commented on got removed with the new direction |
Closes #723
Open question from the issue. SHOULD -> MUST?