lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ishan Chattopadhyaya (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-7688) JettyConfig cannot be used with extra filters
Date Tue, 16 Jun 2015 00:49:01 GMT

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

Ishan Chattopadhyaya commented on SOLR-7688:
--------------------------------------------

I hit this issue during SOLR-7274, when I was trying out the authentication layer as a separate
filter.

Here's the patch which I put out then that fixed this issue, but I had abandoned this approach
and folded in the extra servlet into the SDF & CoreContainer:
https://issues.apache.org/jira/secure/attachment/12733512/SOLR-7274.patch
(JettySolrRunner and JettyConfig)

Essentially, I changed the SortedMap to TreeMap. Also, I had to put in a hack to avoid double
initialization of the extra filter that was added.

> JettyConfig cannot be used with extra filters
> ---------------------------------------------
>
>                 Key: SOLR-7688
>                 URL: https://issues.apache.org/jira/browse/SOLR-7688
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 5.1
>            Reporter: Gregory Chanan
>            Assignee: Gregory Chanan
>         Attachments: SOLR-7688.patch, SOLR-7688.patch
>
>
> Before SOLR-7166, users could create a MiniSolrCloudCluster with extra filters by specifying
their own SortedMap and comparator (since Class<? extends Filter> is not comparable).
 JettyConfigs allow you to specify filter classes to add, but they don't work because JettyConfigs
manages its own filter map using TreeMap.  Thus, there is no way to specify a comparator and
it fails at runtime with "Class cannot be cast to java.lang.comparable."



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message