You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Gregory Chanan (JIRA)" <ji...@apache.org> on 2013/12/30 22:34:50 UTC

[jira] [Commented] (SENTRY-79) Solr/Sentry test filter should pass request headers

    [ https://issues.apache.org/jira/browse/SENTRY-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13859099#comment-13859099 ] 

Gregory Chanan commented on SENTRY-79:
--------------------------------------

Tests pass for me with the patch applied.

> Solr/Sentry test filter should pass request headers
> ---------------------------------------------------
>
>                 Key: SENTRY-79
>                 URL: https://issues.apache.org/jira/browse/SENTRY-79
>             Project: Sentry
>          Issue Type: Bug
>    Affects Versions: 1.3.0
>            Reporter: Vamsee Yarlagadda
>            Assignee: Vamsee Yarlagadda
>             Fix For: 1.3.0
>
>         Attachments: SENTRY-79.patch
>
>
> Solr/Sentry test filter should attach the request headers to the request.
> Otherwise, the request would error out with the message:
> {code}
> 2013-12-30 12:13:02,081 (TEST-TestQueryOperations.testDistribSearch-seed#[4720D7F5CD503202]) [INFO - org.apache.solr.client.solrj.impl.HttpClientUtil.createClient(HttpClientUtil.java:113)] Creating new http client, config:maxConnections=128&maxConnectionsPerHost=32&followRedirects=false
> 2013-12-30 12:13:02,223 (qtp1844032651-208) [ERROR - org.apache.solr.common.SolrException.log(SolrException.java:108)] org.apache.solr.common.SolrException: Unable to locate HttpServletRequest
> 	at org.apache.solr.sentry.SentryIndexAuthorizationSingleton.authorizeCollectionAction(SentryIndexAuthorizationSingleton.java:171)
> 	at org.apache.solr.sentry.SentryIndexAuthorizationSingleton.authorizeAdminAction(SentryIndexAuthorizationSingleton.java:91)
> 	at org.apache.solr.handler.SecureRequestHandlerUtil.checkSentry(SecureRequestHandlerUtil.java:66)
> 	at org.apache.solr.handler.SecureRequestHandlerUtil.checkSentryAdmin(SecureRequestHandlerUtil.java:47)
> 	at org.apache.solr.handler.admin.SecureCollectionsHandler.handleRequestBody(SecureCollectionsHandler.java:77)
> 	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
> 	at org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:700)
> 	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:231)
> 	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:171)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
> 	at org.apache.sentry.tests.e2e.solr.ModifiableUserAuthenticationFilter.doFilter(ModifiableUserAuthenticationFilter.java:58)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
> 	at org.apache.solr.client.solrj.embedded.JettySolrRunner$DebugFilter.doFilter(JettySolrRunner.java:134)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> 	at org.eclipse.jetty.server.handler.GzipHandler.handle(GzipHandler.java:301)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1077)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:368)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
> 	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
> 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)
> 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
> 	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> 	at java.lang.Thread.run(Thread.java:695)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)