Hoss Man created SOLR-5262:
------------------------------

             Summary: implicit solr.core.* properties should always be 
available, regardless of wether underlying core.property is specified
                 Key: SOLR-5262
                 URL: https://issues.apache.org/jira/browse/SOLR-5262
             Project: Solr
          Issue Type: Bug
            Reporter: Hoss Man


reviewing the docs for core.properties and implicit property substitution, i 
noticed what seems to be a bug in how implicit properties are made available 
for config files.

if you look at CoreDescriptor.buildSubstitutableProperties, the logic only 
loops over the names found in "coreProperties" -- meaning that if a user 
doesn't explicitly set one of the "standard" properties there, then the 
corrisponding "solr.core.propname" implicit value (with the default value) will 
not be available.

the point of the implicit properties is that they should *always* be available 
for use in configs, even if the value comes from the hardcoded default, or is 
derived from something else.

(ie: if you put this in the example solrconfig.xml...

{noformat}
     <lst name="defaults">
       <str name="echoParams">all</str>
       <int name="rows">10</int>
       <str name="df">text</str>
       <str name="hoss">${solr.core.ulogDir}</str>
     </lst>
{noformat}

...solr will fail to start up, unless you also add an explicit "ulogDir=tlog" 
to the core.properties file -- but this should work w/o the user explicitly 
configuring the ulogDir property

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to