Skip to content

Fix: Create unconfigured response message#29

Merged
Tochemey merged 1 commit intoTochemey:mainfrom
TadijaB:fix-response-creation
Dec 16, 2024
Merged

Fix: Create unconfigured response message#29
Tochemey merged 1 commit intoTochemey:mainfrom
TadijaB:fix-response-creation

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