cloudevents / cloudevents/sdk-java
Bug: Deserialization of event without data produces null.
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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