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

[BUG] Index 0 out of bounds for length 0 (again) #8638

Open
devopg opened this issue Jan 21, 2022 · 3 comments
Open

[BUG] Index 0 out of bounds for length 0 (again) #8638

devopg opened this issue Jan 21, 2022 · 3 comments
Assignees
Labels

Comments

@devopg
Copy link

devopg commented Jan 21, 2022

hi i saw that you fix it in
#7162

but in
cp-ksqldb-server:7.0.0
cp-ksqldb-cli:7.0.0

i have problem again

how to reproduce?

  1. press command:
    print test from BEGINNING;
  2. send json value
var msgJson = JsonSerializer.Serialize(msg);
await _producer.ProduceAsync(topic, new Message<string, string> { Key = null, Value =  msgJson});

and you take auto exit from print topic with error:
image

!!! Intresting moment if enter in command again print test from BEGINNING;, you will see what all okey: data exists and you stay on print command observ;
image

@devopg
Copy link
Author

devopg commented Jan 21, 2022

Omg i find problem!!! its make crush if key is empty string "" or have whitespaces " ".
I create merge request for fix it
confluentinc/confluent-kafka-dotnet#1751

@agavra
Copy link
Contributor

agavra commented Jan 21, 2022

Thanks @devopg

@mhowlett
Copy link

the proposed fix to the .net utf8 serializer isn't what we want there - should be done at a higher level instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants