gerlowskija commented on code in PR #975: URL: https://github.com/apache/solr/pull/975#discussion_r966010573
########## solr/core/src/java/org/apache/solr/api/V2HttpCall.java: ########## @@ -388,33 +335,65 @@ public CompositeApi add(Api api) { } } + // We don't rely on any of Jersey's authc/z features so we pass in this empty context for + // all requests. + public static final SecurityContext DEFAULT_SECURITY_CONTEXT = new SecurityContext() { + public boolean isUserInRole(String role) { return false; } + public boolean isSecure() { return false; } + public Principal getUserPrincipal() { return null; } + public String getAuthenticationScheme() { return null; } + }; + + private void invokeJerseyRequest(CoreContainer cores, SolrCore core, ApplicationHandler jerseyHandler, SolrQueryResponse rsp) { + try { + final ContainerRequest containerRequest = ContainerRequestUtils.createContainerRequest(req, response, jerseyHandler.getConfiguration()); + + // Set properties that may be used by Jersey filters downstream + containerRequest.setProperty(SOLR_QUERY_REQUEST_KEY, solrReq); + containerRequest.setProperty(SOLR_QUERY_RESPONSE_KEY, rsp); + containerRequest.setProperty(RequestContextConstants.CORE_CONTAINER_KEY, cores); Review Comment: I've renamed the interface to include 'Keys', and dropped the suffix from each individual constants. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org