sdk-java icon indicating copy to clipboard operation
sdk-java copied to clipboard

Avro compact deserializer bug - ID set to type

Open pawel-boguski-ds opened this issue 8 months ago • 2 comments

Looks like accidental set of ID to type. https://github.com/cloudevents/sdk-java/blob/main/formats/avro-compact/src/main/java/io/cloudevents/avro/compact/AvroCompactFormat.java#L90

Should be:

.withId(from.getId())

Test should be fixed as well. Using different values in type and ID of the test event would detect the issue. https://github.com/cloudevents/sdk-java/blob/main/formats/avro-compact/src/test/java/io/cloudevents/avro/compact/AvroCompactFormatTest.java#L46

pawel-boguski-ds avatar Jun 23 '25 11:06 pawel-boguski-ds

@pawel-boguski-ds would you be willing to contribute a fix?

pierDipi avatar Jun 26 '25 08:06 pierDipi

Sorry, but probably I will not find time for this.

pawel-boguski-ds avatar Jul 03 '25 06:07 pawel-boguski-ds