Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(apns): proper catching of Unknown CA error #345

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

geekbrother
Copy link
Contributor

Description

This PR fixes a proper catching of the received fatal alert: UnknownCA.
We already have matching for this kind of error, but it was added to the wrong APNS Error.
Instead of being in the ConnectionError it should be in the ClientError because the error appears in the ClientError error type. The full error log:
Apns(ClientError(Error { kind: SendRequest, source: Some(hyper::Error(Io, Custom { kind: InvalidData, error: "received fatal alert: UnknownCA" })) }))

How Has This Been Tested?

Not tested.

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@geekbrother geekbrother self-assigned this Jul 10, 2024
@arein arein added the accepted The issue has been accepted into the project label Jul 10, 2024
@geekbrother geekbrother marked this pull request as ready for review July 10, 2024 15:01
@geekbrother geekbrother merged commit cee0298 into main Jul 10, 2024
10 checks passed
@geekbrother geekbrother deleted the fix/unknown_ca_fix branch July 10, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted The issue has been accepted into the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants