Skip to content

Remove IDENTIFIER_MISMATCH error and introduce DeviceResponse object#455

Merged
rartych merged 9 commits intocamaraproject:mainfrom
eric-murray:eric-murray-patch-2
Jun 3, 2025
Merged

Remove IDENTIFIER_MISMATCH error and introduce DeviceResponse object#455
rartych merged 9 commits intocamaraproject:mainfrom
eric-murray:eric-murray-patch-2

Conversation

@eric-murray
Copy link
Collaborator

What type of PR is this?

  • documentation

What this PR does / why we need it:

As explained in #431, indicating whether multiple device identifiers match the same device or not can allow the API consumer to correlate different device identifiers with a given device that they may not otherwise know. To prevent this, the API provider must not respond with an error if the identifiers do not match, but instead use only one of the supplied identifiers and indicate which one in the API response.

Which issue(s) this PR fixes:

Fixes #431

Does this PR introduce a breaking change?

  • Yes
  • No

Special notes for reviewers:

APIs that accept the Device object in the request should include an optional DeviceResponse object in the response to all the used device identifier to be notified to the API consumer. This is not a breaking change for the API consumer.

Changelog input

 release-note
-  Remove IDENTIFIER_MISMATCH error

Additional documentation

None

Copy link
Contributor

@PedroDiez PedroDiez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with the PR proposal

Just some editorial considerations

eric-murray and others added 6 commits May 19, 2025 16:13
Co-authored-by: Pedro Díez García <pedro.diezgarcia@telefonica.com>
Co-authored-by: Pedro Díez García <pedro.diezgarcia@telefonica.com>
Co-authored-by: Pedro Díez García <pedro.diezgarcia@telefonica.com>
Copy link
Contributor

@rartych rartych left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@PedroDiez PedroDiez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@patrice-conil patrice-conil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove 422 IDENTIFIER_MISMATCH error code as this can allow PII leakage

4 participants