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: respect isEncrypted:false if supplied in notify: command, and ensure the correct value is always transmitted onwards #1983

Merged
merged 14 commits into from
Jul 25, 2024

Conversation

gkc
Copy link
Contributor

@gkc gkc commented Jun 10, 2024

- What I did
fix: respect isEncrypted:false if supplied in notify: command, and ensure the correct value is always transmitted onwards

Addresses at_server parts of #1944

- How I did it
See commits

- How to verify it

  • at_server automated tests pass
  • manually verified that noports e2e tests pass when running against this branch's version of atServer
  • manually verified that at_client_sdk e2e tests pass when running against this branch's version of atServer
image

String? isEncryptedStr =
(atNotification.atMetadata!.isEncrypted ?? false) ? 'true' : 'false';
commandBody = '${AtConstants.isEncrypted}:$isEncryptedStr:$commandBody';

Copy link
Contributor Author

@gkc gkc Jul 22, 2024

Choose a reason for hiding this comment

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

The above change is to ensure that the isEncrypted value in the notification's metadata is always passed on to the next atServer. Previously it was only passed on if the value was true

@gkc gkc marked this pull request as ready for review July 22, 2024 12:31
@gkc gkc marked this pull request as draft July 22, 2024 13:42
@gkc
Copy link
Contributor Author

gkc commented Jul 22, 2024

Converted to draft as I need to add some unit tests to ensure this doesn't regress in the future

@gkc gkc marked this pull request as ready for review July 24, 2024 12:57
@gkc
Copy link
Contributor Author

gkc commented Jul 24, 2024

Converted to draft as I need to add some unit tests to ensure this doesn't regress in the future

@sitaram-kalluri Have added some unit tests. Please review when you have a moment, thank you.

@gkc gkc requested a review from sitaram-kalluri July 24, 2024 12:57
@gkc gkc merged commit 11582f4 into trunk Jul 25, 2024
26 checks passed
@gkc gkc deleted the gkc/fix-1944 branch July 25, 2024 10:27
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