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 SubmitSMResp unmarshalling when CommandStatus != data.ESME_ROK #113

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

linxGnu
Copy link
Owner

@linxGnu linxGnu commented Sep 15, 2023

No description provided.

@linxGnu linxGnu merged commit 07a9190 into master Sep 18, 2023
4 checks passed
@linxGnu linxGnu deleted the fix branch September 18, 2023 11:06
@laduchesneau
Copy link
Collaborator

The change has introduced a bug when submit_sm_resp contains a CommandStatus != data.ESME_ROK.
The unmarshal fails to decode the message_id and returns a EOF error. This error goes all the way up to Parse func in PDU.go. Causing the bind to close and rebind.

Two issue already opened concerning this bug: #117 and #118

linxGnu pushed a commit that referenced this pull request Nov 8, 2023
…119)

Fix for #117 and #118 

I don't fully understand the reason behind #113 , but that change is
causing issues when submit_sm_resp returns with command_status != 0. I
propose we ignore the io.EOF error when unmarshalling the message_id.

I also added a test to identify this issue in future.

Reminder, as per the spec: The submit_sm_resp PDU Body is not returned
if the command_status field contains a non-zero value.
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