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: Create unconfigured response message #29

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

TadijaB
Copy link
Contributor

@TadijaB TadijaB commented Dec 11, 2024

Fix for exception thrown when attempting to create an ISO response message which doesn't have a header or template in defined in config file. With this fix, we will create a new ISO message with all fields copied, but message type incremented by 16.

closes #30

Fix for exception thrown when attempting to create an ISO response message which doesn't have a header or template in defined in config file. With this fix, we will create a new ISO message with all fields copied, but message type incremented by 16.
@TadijaB TadijaB requested a review from Tochemey as a code owner December 11, 2024 18:23
@TadijaB
Copy link
Contributor Author

TadijaB commented Dec 12, 2024

Made this change as it seemed like this is the intended behavior of CreateResponse as existing code contains logic that will just copy stuff if no config found but this part could never be reached do to exceptions thrown when no config for resulting response message is defined.

With this change there should be no exceptions and the consumer will basically receive a copy with type incremented by 16

@Tochemey
Copy link
Owner

@TadijaB Thank you so much for this PR. I will take a look and we can merge it. I appreciate the help.

Copy link
Owner

@Tochemey Tochemey left a comment

Choose a reason for hiding this comment

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

LGTM

@Tochemey Tochemey merged commit 1601ac9 into Tochemey:main Dec 16, 2024
5 checks passed
@Tochemey
Copy link
Owner

@TadijaB there is a new release containing your fixes https://www.nuget.org/packages/NetCore8583/2.2.1. Thanks

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.

MessageFactory CreateResponse() throws exception if created response type template not defined in config
2 participants