-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Take RestMulti headers and status into account when using SSE resource method #44903
base: main
Are you sure you want to change the base?
Conversation
dastrobu
commented
Dec 3, 2024
•
edited by geoand
Loading
edited by geoand
- Fixes: Setting headers for SSE annotated Multi resources is ignoring headers #44902
This comment was marked as resolved.
This comment was marked as resolved.
Thanks! Are you also interested in providing the actual fix? We essentially need to update |
I am not sure I find the time right now. There is quite a bit of code to understand. The way you proposed does not seem to work out of the box, as there is some header handling going on in Line 346 in 7230239
|
Some adjustments will probably be needed, but my guess is that it shouldn't require figuring out much of what the test of the code does |
6cfe757
to
5653246
Compare
I have updated this PR to include a fix for the issue |
...time/src/main/java/org/jboss/resteasy/reactive/server/handlers/PublisherResponseHandler.java
Outdated
Show resolved
Hide resolved
.../java/io/quarkus/resteasy/reactive/server/test/customproviders/MultiResponseHeadersTest.java
Outdated
Show resolved
Hide resolved
@geoand thanks, I did no look through the code in detail, but I think its not handling all cases correctly. I extended |
If you have cases which don't work with the current implementation, please add tests for them |
@dastrobu let me know when you are done so I can check the latest tests. Thanks |
4a09268
to
1a8aeda
Compare
I had to rebase and force push, as quarkus-bot was complaining about the merge: quarkus-bot Error - Pull request commit check I think I am done, but let's wait for CI to see the test cases.
We probably need to squash commits before merging in the end, but I don't want to do that right now as long as contributing from both ends. |
Don't worry about the bot and squashing the commits, I'll take care of that.
Okay, thanks |
This comment has been minimized.
This comment has been minimized.
1a8aeda
to
6a8af7c
Compare
This is now ready to go. Thanks a lot @dastrobu! |
@geoand thanks for implementing the fix. It was a pleasure to collaborate on a PR that quickly. It's a rare experience in the open-source universe. |
🙏🥰 |
6a8af7c
to
949f45c
Compare
Status for workflow
|
Status | Name | Step | Failures | Logs | Raw logs | Build scan |
---|---|---|---|---|---|---|
✖ | JVM Tests - JDK 17 | Build |
Failures | Logs | Raw logs | 🔍 |
✖ | JVM Tests - JDK 21 | Build |
Failures | Logs | Raw logs | 🔍 |
✖ | JVM Tests - JDK 17 Windows | Build |
Failures | Logs | Raw logs | 🔍 |
Full information is available in the Build summary check run.
You can consult the Develocity build scans.
Failures
⚙️ JVM Tests - JDK 17 #
- Failing: extensions/resteasy-reactive/rest-jaxb/deployment integration-tests/grpc-descriptor-sets/grpc-descriptor-set-alternate-output-dir
! Skipped: integration-tests/hibernate-validator-resteasy-reactive
📦 extensions/resteasy-reactive/rest-jaxb/deployment
✖ io.quarkus.resteasy.reactive.jaxb.deployment.test.SseResourceTest.testMultiFromMulti
line 104
- History - More details - Source on GitHub
org.opentest4j.AssertionFailedError:
Expecting actual:
[]
to contain exactly (and in same order):
["hello"]
but could not find the following elements:
["hello"]
✖ io.quarkus.resteasy.reactive.jaxb.deployment.test.SseResourceTest.testSseFromMulti
line 68
- History - More details - Source on GitHub
org.opentest4j.AssertionFailedError:
Expecting actual:
[]
to contain exactly (and in same order):
["hello"]
but could not find the following elements:
["hello"]
📦 integration-tests/grpc-descriptor-sets/grpc-descriptor-set-alternate-output-dir
✖ io.quarkus.grpc.examples.hello.DescriptorSetExistsTest.descriptorSetExists
line 16
- History - More details - Source on GitHub
java.lang.AssertionError:
Expecting path:
/home/runner/work/quarkus/quarkus/integration-tests/grpc-descriptor-sets/grpc-descriptor-set-alternate-output-dir/target/proto
to exist (symbolic links were followed).
at io.quarkus.grpc.examples.hello.DescriptorSetExistsTest.descriptorSetExists(DescriptorSetExistsTest.java:16)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
⚙️ JVM Tests - JDK 21 #
- Failing: extensions/resteasy-reactive/rest-jaxb/deployment integration-tests/grpc-descriptor-sets/grpc-descriptor-set-alternate-output-dir
! Skipped: integration-tests/hibernate-validator-resteasy-reactive
📦 extensions/resteasy-reactive/rest-jaxb/deployment
✖ io.quarkus.resteasy.reactive.jaxb.deployment.test.SseResourceTest.testMultiFromMulti
line 104
- History - More details - Source on GitHub
org.opentest4j.AssertionFailedError:
Expecting actual:
[]
to contain exactly (and in same order):
["hello"]
but could not find the following elements:
["hello"]
✖ io.quarkus.resteasy.reactive.jaxb.deployment.test.SseResourceTest.testSseFromMulti
line 68
- History - More details - Source on GitHub
org.opentest4j.AssertionFailedError:
Expecting actual:
[]
to contain exactly (and in same order):
["hello"]
but could not find the following elements:
["hello"]
📦 integration-tests/grpc-descriptor-sets/grpc-descriptor-set-alternate-output-dir
✖ io.quarkus.grpc.examples.hello.DescriptorSetExistsTest.descriptorSetExists
line 16
- History - More details - Source on GitHub
java.lang.AssertionError:
Expecting path:
/home/runner/work/quarkus/quarkus/integration-tests/grpc-descriptor-sets/grpc-descriptor-set-alternate-output-dir/target/proto
to exist (symbolic links were followed).
at io.quarkus.grpc.examples.hello.DescriptorSetExistsTest.descriptorSetExists(DescriptorSetExistsTest.java:16)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
⚙️ JVM Tests - JDK 17 Windows #
- Failing: extensions/resteasy-reactive/rest-jaxb/deployment integration-tests/grpc-descriptor-sets/grpc-descriptor-set-alternate-output-dir
! Skipped: integration-tests/hibernate-validator-resteasy-reactive
📦 extensions/resteasy-reactive/rest-jaxb/deployment
✖ io.quarkus.resteasy.reactive.jaxb.deployment.test.SseResourceTest.testMultiFromMulti
line 104
- History - More details - Source on GitHub
org.opentest4j.AssertionFailedError:
Expecting actual:
[]
to contain exactly (and in same order):
["hello"]
but could not find the following elements:
["hello"]
✖ io.quarkus.resteasy.reactive.jaxb.deployment.test.SseResourceTest.testSseFromMulti
line 68
- History - More details - Source on GitHub
org.opentest4j.AssertionFailedError:
Expecting actual:
[]
to contain exactly (and in same order):
["hello"]
but could not find the following elements:
["hello"]
📦 integration-tests/grpc-descriptor-sets/grpc-descriptor-set-alternate-output-dir
✖ io.quarkus.grpc.examples.hello.DescriptorSetExistsTest.descriptorSetExists
line 16
- History - More details - Source on GitHub
java.lang.AssertionError:
Expecting path:
D:\a\quarkus\quarkus\integration-tests\grpc-descriptor-sets\grpc-descriptor-set-alternate-output-dir\target\proto
to exist (symbolic links were followed).
at io.quarkus.grpc.examples.hello.DescriptorSetExistsTest.descriptorSetExists(DescriptorSetExistsTest.java:16)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
The test failure is related, I'll have a look tomorrow |