Skip to content

Commit

Permalink
Merge "JERSEY-2543: ApplicationHandler.apply() always overrides the S…
Browse files Browse the repository at this point in the history
…ecurityContext of the ContainerRequest"
  • Loading branch information
Michal Gajdoš authored and Gerrit Code Review committed Jun 12, 2014
2 parents 464990e + e248b1d commit 78afc6e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,9 @@ public Future<ContainerResponse> apply(final ContainerRequest request,
final FutureResponseWriter responseFuture =
new FutureResponseWriter(request.getMethod(), outputStream, runtime.getBackgroundScheduler());

request.setSecurityContext(DEFAULT_SECURITY_CONTEXT);
if (request.getSecurityContext() == null) {
request.setSecurityContext(DEFAULT_SECURITY_CONTEXT);
}
request.setWriter(responseFuture);

handle(request);
Expand Down

0 comments on commit 78afc6e

Please sign in to comment.