Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-51

reloadAcl do not work anymore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.2.0
    • 4.2.0
    • None
    • 4.2 RC3

      Due to SOLR-48, we are getting the exception:

      org.apache.solr.client.solrj.SolrServerException: org.apache.solr.client.solrj.SolrServerException: java.lang.NullPointerException
      	at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:233)
      	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:194)
      	at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:974)
      	at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:990)
      	at org.ametys.solr.AclTestCase.testReloadCache(AclTestCase.java:122)
      Caused by: org.apache.solr.client.solrj.SolrServerException: java.lang.NullPointerException
      	at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.checkForExceptions(EmbeddedSolrServer.java:301)
      	at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:192)
      Caused by: java.lang.NullPointerException
      	at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
      	at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
      	at org.ametys.solr.helper.AclCacheManager.computeAllowedUsers(AclCacheManager.java:315)
      	at org.ametys.solr.handler.ReloadAclCacheHandler._fillCacheForSegment(ReloadAclCacheHandler.java:233)
      	at org.ametys.solr.handler.ReloadAclCacheHandler._fill(ReloadAclCacheHandler.java:217)
      	at org.ametys.solr.handler.ReloadAclCacheHandler.handleRequestBody(ReloadAclCacheHandler.java:102)
      	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
      	at org.apache.solr.core.SolrCore.execute(SolrCore.java:2541)
      	at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:191) 

      ConcurrentHashMap does not handle null values, we have to remove instead

            sprieul Simon Prieul (Inactive)
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: