title: Solr DataSource Request Parameters Not Being Recognized
body: <p>I'm trying to make the username/password for a Solr (7.5) data import handler to be dynamic, following the guidance <a href="https://lucene.apache.org/solr/guide/7_5/uploading-structured-data-store-data-with-the-data-import-handler.html#dih-request-parameters" rel="nofollow noreferrer">here</a>.</p>
  <p>Here's my data config:</p>
  <pre><code>&lt;dataConfig&gt;
     &lt;dataSource 
      driver=&quot;com.mysql.jdbc.Driver&quot; 
      url=&quot;jdbc:mysql://mysqlconnectionstring&quot; 
      user=&quot;${dataimporter.request.jdbcuser}&quot; 
      password=&quot;${dataimporter.request.jdbcpassword}&quot;/&gt; ...
  </code></pre>
  <p>And solrconfig:</p>
  <pre><code>&lt;requestHandler name=&quot;/dataimport&quot; class=&quot;org.apache.solr.handler.dataimport.DataImportHandler&quot;&gt;
      &lt;lst name=&quot;defaults&quot;&gt;
          &lt;str name=&quot;config&quot;&gt;data-config.xml&lt;/str&gt;
      &lt;/lst&gt;
  &lt;/requestHandler&gt;
  </code></pre>
  <p>However, when I execute the dataimport command (e.g. <a href="http://mysolr.something/solr/dataimport?command=full-import&amp;jdbcuser=foo&amp;jdbcpassword=bar" rel="nofollow noreferrer">http://mysolr.something/solr/dataimport?command=full-import&amp;jdbcuser=foo&amp;jdbcpassword=bar</a>), I get (partial) responses like this:</p>
  <pre><code>&quot;initArgs&quot;: [
  &quot;defaults&quot;,
  [
    &quot;config&quot;,
    &quot;data-config.xml&quot;,
    &quot;datasource&quot;,
    [
      &quot;driver&quot;,
      &quot;com.mysql.jdbc.Driver&quot;,
      &quot;url&quot;,
      &quot;jdbc:mysql://mysqlconnectionstring&quot;,
      &quot;user&quot;,
      &quot;&quot;,
      &quot;password&quot;,
      &quot;&quot;
    ]
  ]
  </code></pre>
  <p>]</p>
  <p>If I look in the solr logs, I see entries like this:</p>
  <blockquote>
  <p>18:56:32.076 [qtp1076770748-18] INFO  org.apache.solr.handler.dataimport.DataImporter - Loading DIH Configuration: data-config.xml</p>
  <p>18:56:32.087 [qtp1076770748-18] INFO  org.apache.solr.handler.dataimport.DataImporter - Data Configuration loaded successfully</p>
  <p>18:56:32.087 [qtp1076770748-18] INFO  org.apache.solr.handler.dataimport.DataImporter - Getting configuration for Global Datasource...</p>
  <p>18:56:32.087 [qtp1076770748-18] INFO  org.apache.solr.handler.dataimport.DataImporter - Adding properties to datasource: {password=, driver=com.mysql.jdbc.Driver, user=, url=jdbc:mysql://mysqlconnectionstring}</p>
  </blockquote>
  <p>I just don't know what I am missing here, why won't it read the username/password from the request and populate the datasource from that?</p>