You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erik Hatcher (JIRA)" <ji...@apache.org> on 2013/01/14 04:24:12 UTC
[jira] [Updated] (SOLR-4217) post.jar ignores -Dparams when -Durl
is used
[ https://issues.apache.org/jira/browse/SOLR-4217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erik Hatcher updated SOLR-4217:
-------------------------------
Attachment: SOLR-4217.patch
Alexandre - here's a patch I believe solves the problem. I added a test case too. Thanks for opening the issue. I'll commit this to trunk and 4x, so it'll make it to 4.1
> post.jar ignores -Dparams when -Durl is used
> --------------------------------------------
>
> Key: SOLR-4217
> URL: https://issues.apache.org/jira/browse/SOLR-4217
> Project: Solr
> Issue Type: Bug
> Components: update
> Affects Versions: 4.0
> Reporter: Alexandre Rafalovitch
> Assignee: Erik Hatcher
> Priority: Minor
> Fix For: 4.2, 5.0
>
> Attachments: SOLR-4217.patch
>
>
> When post.jar is used with a custom URL (e.g. for multi-core), it silently ignores -Dparams flag and requires parameters to be appended directly to -Durl value.
> The problem is the following code:
> String params = System.getProperty("params", "");
> urlStr = System.getProperty("url", SimplePostTool.appendParam(DEFAULT_POST_URL, params));
> The workaround exists (by using -Durl="http://customurl?param1=value¶m2=value"), but it is both undocumented as a special case and clunky as Url and params may be coming from different places. It would be good to have this consistent.
--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org