Skip to content

Fix issues with X-Private-Data-ETag header#60

Merged
emlun merged 2 commits intomasterfrom
update-privatedata-etag
Jul 30, 2024
Merged

Fix issues with X-Private-Data-ETag header#60
emlun merged 2 commits intomasterfrom
update-privatedata-etag

Conversation

@emlun
Copy link
Member

@emlun emlun commented Jul 29, 2024

Apparently I didn't properly test #57 - attempting to register and/or delete multiple credentials in sequence would fail, because both the frontend and the backend failed to keep track of the correct ETag state.

Related:

emlun added 2 commits July 29, 2024 17:35
As suggested in RFC 9110:

>[...] Alternatively, if the request is a state-changing operation that appears
to have already been applied to the selected representation, the origin server
MAY respond with a 2xx (Successful) status code (i.e., the change requested by
the user agent has already succeeded, but the user agent might not be aware of
it, perhaps because the prior response was lost or an equivalent change was made
by some other user agent).
@emlun emlun merged commit e87e2d0 into master Jul 30, 2024
@emlun emlun deleted the update-privatedata-etag branch July 30, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants