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: potential problems that may cause panic #369

Open
wants to merge 2 commits into
base: rel-1.5
Choose a base branch
from

Conversation

gatici
Copy link
Contributor

@gatici gatici commented Dec 12, 2024

Aiming to fix any potential issue that causes: canonical/sdcore-amf-k8s-operator#472
I am not able to reproduce the problem. But, this PR aiming to fix potential issues in the HandleRegistrationStatusUpdateRequest and ContextSetup functions.

Safely Handle Type Assertions
Handle unexpected response data types
Check if message retrieved from channel and handle if no message retrieved situation
Check the message format and handle wrong message format

…mec-project#359)

* Fix potential problems that may cause a panic during context setup

Signed-off-by: gatici <[email protected]>

* improve the logic in HandleRegistrationStatusUpdateRequest

Signed-off-by: gatici <[email protected]>

* fix linting

Signed-off-by: gatici <[email protected]>

* Start log messages with lowercase letter

Signed-off-by: gatici <[email protected]>

---------

Signed-off-by: gatici <[email protected]>
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.

1 participant