You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mikhail Khludnev (JIRA)" <ji...@apache.org> on 2017/03/17 05:22:41 UTC
[jira] [Closed] (SOLR-9725) Allow Variables for All Data Import
Handler Data Source Configuration Values
[ https://issues.apache.org/jira/browse/SOLR-9725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mikhail Khludnev closed SOLR-9725.
----------------------------------
I wonder why it hasn't been closed after 6.4 release..
> Allow Variables for All Data Import Handler Data Source Configuration Values
> ----------------------------------------------------------------------------
>
> Key: SOLR-9725
> URL: https://issues.apache.org/jira/browse/SOLR-9725
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: contrib - DataImportHandler
> Affects Versions: 5.5.3
> Reporter: Jamie Jackson
> Assignee: Mikhail Khludnev
> Priority: Minor
> Labels: patch
> Fix For: 6.4, master (7.0)
>
> Attachments: SOLR-9725.patch
>
>
> I need to be able to use a variable for a password when also using {{encryptKeyFile}}.
> For instance:
> {code:xml}
> <dataSource
> driver="${custom.dataimporter.datasource.driver}"
> url="${custom.dataimporter.datasource.url}"
> user="${custom.dataimporter.datasource.user}"
> password="${custom.dataimporter.datasource.password}"
> encryptKeyFile="/opt/solr/credentials/encrypt.key"
> />
> {code}
> Because I need to change certain variables based on the environment. I'd start like this:
> {code}
> -a
> -Dcustom.dataimporter.datasource.driver=org.mariadb.jdbc.Driver
> -Dcustom.dataimporter.datasource.url=jdbc:mysql://local.mysite.com:3306/mysite
> -Dcustom.dataimporter.datasource.user=root
> -Dcustom.dataimporter.datasource.password=U2FsdGVkX1/dqwTb8RBfFq82SM37DkDRGeWMOndftHY=
> {code}
> If I hardcode the password, it works; if I use a variable reference, it doesn't.
> As far as I know [this pull request|https://github.com/apache/lucene-solr/pull/46] was submitted to address this issue, but it didn't come with a Jira ticket or a full explanation.
> Also, note that I'm not using a variable for the value of {{encryptKeyFile}}, because [it's not possible in 5.x, though it seems to be fixed in 6.1|https://issues.apache.org/jira/browse/SOLR-8610]. Presumably, the above patch would encompass {{encryptKeyFile}}'s value, as well.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org