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

OutboundSseEvent is not correctly serialized #10673

Closed
lordofthejars opened this issue Jul 13, 2020 · 0 comments · Fixed by #29623
Closed

OutboundSseEvent is not correctly serialized #10673

lordofthejars opened this issue Jul 13, 2020 · 0 comments · Fixed by #29623
Labels
kind/bug Something isn't working
Milestone

Comments

@lordofthejars
Copy link
Contributor

Describe the bug

When creating a OutboundSseEvent object and returning it back in a REST Endpoint it is not correctly serialized.

Expected behavior

Server-Side Event is sent back and it is able to be deserialized correctly.

Actual behavior

Either an exception that the object cannot be serialized or in case of using

@Produces(MediaType.SERVER_SENT_EVENTS)
@SseElementType(MediaType.SERVER_SENT_EVENTS)

Then all properties like name, data, comment ... are serialized as a data and not in the correct fields.

To Reproduce
Steps to reproduce the behavior:

Repo is here: https://github.com/lordofthejars/quarkus-quartz-streams

  1. Run https://github.com/lordofthejars/quarkus-quartz-streams/blob/master/src/test/java/org/acme/ExampleResourceTest.java

Environment (please complete the following information):

  • Quarkus 1.6.0.Final
@lordofthejars lordofthejars added the kind/bug Something isn't working label Jul 13, 2020
@lordofthejars lordofthejars changed the title OutboundSseEvent is not correctly serialized OutboundSseEvent is not correctly serialized Jul 13, 2020
@quarkus-bot quarkus-bot bot added this to the 2.16 - main milestone Dec 3, 2022
@gsmet gsmet modified the milestones: 2.16 - main, 2.15.0.Final Dec 6, 2022
gsmet pushed a commit to gsmet/quarkus that referenced this issue Dec 6, 2022
@gsmet gsmet modified the milestones: 2.15.0.Final, 2.13.6.Final Dec 14, 2022
gsmet pushed a commit to gsmet/quarkus that referenced this issue Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants