Skip to content

Commit

Permalink
4.x: Fix buffering of content in our Jersey integration. (helidon-io#…
Browse files Browse the repository at this point in the history
…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 (helidon-io#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]>
  • Loading branch information
2 people authored and hrstoyanov committed Mar 12, 2024
1 parent ba25526 commit 63a9826
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, 2023 Oracle and/or its affiliates.
* Copyright (c) 2022, 2024 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -190,7 +190,8 @@ private void doHandle(Context ctx, ServerRequest req, ServerResponse res) {
ContainerRequest requestContext = new ContainerRequest(uris.baseUri,
uris.requestUri,
req.prologue().method().text(),
new HelidonMpSecurityContext(), new MapPropertiesDelegate(),
new HelidonMpSecurityContext(),
new MapPropertiesDelegate(),
resourceConfig);
/*
MP CORS supports needs a way to obtain the UriInfo from the request context.
Expand Down Expand Up @@ -378,8 +379,7 @@ public void failure(Throwable throwable) {

@Override
public boolean enableResponseBuffering() {
// Jersey should not try to do the buffering
return false;
return true; // enable buffering in Jersey
}

public void await() {
Expand Down

0 comments on commit 63a9826

Please sign in to comment.