Skip to content

Commit 083c1ba

Browse files
4.x: Fix buffering of content in our Jersey integration. (#8461)
* Fix buffering of content in our Jersey integration. * Replace old comment in JaxRsService. Signed-off-by: Santiago Pericasgeertsen <[email protected]> * Attempt to fix TCK download. Signed-off-by: Santiago Pericasgeertsen <[email protected]> * Also catch UncheckedIOException in test to handle broken pipes (#8462) * Also catch UncheckedIOException in test. Signed-off-by: Santiago Pericasgeertsen <[email protected]> * Attempt to fix TCK download. Signed-off-by: Santiago Pericasgeertsen <[email protected]> --------- Signed-off-by: Santiago Pericasgeertsen <[email protected]> --------- Signed-off-by: Santiago Pericasgeertsen <[email protected]> Co-authored-by: Santiago Pericasgeertsen <[email protected]>
1 parent 984bd0a commit 083c1ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

microprofile/server/src/main/java/io/helidon/microprofile/server/JaxRsService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023 Oracle and/or its affiliates.
2+
* Copyright (c) 2022, 2024 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -190,7 +190,8 @@ private void doHandle(Context ctx, ServerRequest req, ServerResponse res) {
190190
ContainerRequest requestContext = new ContainerRequest(uris.baseUri,
191191
uris.requestUri,
192192
req.prologue().method().text(),
193-
new HelidonMpSecurityContext(), new MapPropertiesDelegate(),
193+
new HelidonMpSecurityContext(),
194+
new MapPropertiesDelegate(),
194195
resourceConfig);
195196
/*
196197
MP CORS supports needs a way to obtain the UriInfo from the request context.
@@ -378,8 +379,7 @@ public void failure(Throwable throwable) {
378379

379380
@Override
380381
public boolean enableResponseBuffering() {
381-
// Jersey should not try to do the buffering
382-
return false;
382+
return true; // enable buffering in Jersey
383383
}
384384

385385
public void await() {

0 commit comments

Comments
 (0)