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

EnvUtils in solr-solrj is missing EnvToSyspropMappings.properties from solr-core

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.5
    • 9.6
    • None
    • None

    Description

      Initially in SOLR-15960 EnvUtils was located in solr-core, together with its configuration resource EnvToSyspropMappings.properties. Then it has been moved from solr-core to solr-solrj but the configuration resource has been left in solr-core.

      This unfortunately means that EnvUtils cannot be used without dependency on solr-core, unless user adds their own copy of the configuration resource to the classpath. Right now trying to use it (or using PropertiesUtil for property substitution) results in an exception from the static initializer:

      Caused by: java.lang.NullPointerException
      	at java.base/java.util.Objects.requireNonNull(Objects.java:209)
      	at org.apache.solr.common.util.EnvUtils.<clinit>(EnvUtils.java:51)
      

      Attachments

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              ab Andrzej Bialecki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: