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

Fixed handling of wrong key when text embedded format is used by the producer #880

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

ppatierno
Copy link
Member

The embedded format in the bridge is representative for both key and value.
With the new added text embedded format, there is check on the value only while it should be the same for the key.
Currently, if the producer uses text embedded format but sends a JSON key, the message is accepted but the consumer gets an empty key on the other side. This PR fixes the issue by rejecting the message having a wrongly formatted key (in JSON).

…producer

Signed-off-by: Paolo Patierno <ppatierno@live.com>
@ppatierno ppatierno added this to the 0.28.0 milestone Mar 6, 2024
@ppatierno ppatierno requested a review from a team March 6, 2024 14:20
@ppatierno
Copy link
Member Author

This PR should be cherry-picked to the release-0.28.x branch as well.

@ppatierno ppatierno merged commit eca6225 into strimzi:main Mar 6, 2024
13 checks passed
@ppatierno ppatierno deleted the fix-text-format-wrong-key branch March 6, 2024 19:47
ppatierno added a commit to ppatierno/strimzi-kafka-bridge that referenced this pull request Mar 6, 2024
…producer (strimzi#880)

Signed-off-by: Paolo Patierno <ppatierno@live.com>
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