cloudevents / cloudevents/sdk-java

Bug: Deserialization of event without data produces null.

Open
#540 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
446
Forks
172
PR merge metrics
No merged PRs in 30d

Description

If you serialize an event that does not have a data field using CloudEventSerializer using default setting, and then try to deserialize using CloudEventDeserializer you get a null value.

This is a bug surely.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with CloudEventSerializer and CloudEventDeserializer, reproducing a round trip for an event without a data field using the default setting. Trace how the missing data is represented during serialization and deserialization. Done means the round trip preserves the event without yielding an unexpected null value.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.