fix: disallow empty 'subject' header by pnt · Pull Request #679 · cloudevents/sdk-java · GitHub
Skip to content

fix: disallow empty 'subject' header#679

Merged
pierDipi merged 1 commit intocloudevents:mainfrom
pnt:676-fix-allowed-empty-subject
Nov 4, 2024
Merged

fix: disallow empty 'subject' header#679
pierDipi merged 1 commit intocloudevents:mainfrom
pnt:676-fix-allowed-empty-subject

Conversation

@pnt
Copy link
Copy Markdown
Contributor

@pnt pnt commented Nov 4, 2024

Specification clearly states that 'subject' is optional but if present, MUST be non-empty (spec at https://github.com/cloudevents/spec/blob/v1.0/spec.md#subject)

Fixes #676

Specification clearly states that 'subject' is optional but if present, MUST be non-empty
(spec at https://github.com/cloudevents/spec/blob/v1.0/spec.md#subject)

Signed-off-by: Kristiyan Marinov <kristiyanm@gmail.com>
Copy link
Copy Markdown
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

@pierDipi pierDipi merged commit 9981635 into cloudevents:main Nov 4, 2024
@pnt pnt deleted the 676-fix-allowed-empty-subject branch November 4, 2024 08:53
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.

Java SDK allows empty subject during deserialization

2 participants