[ 
https://issues.apache.org/jira/browse/SOLR-4217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552103#comment-13552103
 ] 

Alexandre Rafalovitch commented on SOLR-4217:
---------------------------------------------

Would it be possible to fit this into 4.1? I am trying to use this for an 
example and it is very clunky with the current workaround:
java -Dauto 
-Durl="http://localhost:8983/solr/multivalued/update?f.to.split=true&f.to.separator=;";
 -jar post.jar multivalued/multivalued.csv 

The example should be out after 4.1, but it will not wait until 4.2....

The change should be trivial, something like:
-------------
urlStr = System.getProperty("url")
if (urlStr == null)
{
  urlStr = SimplePostTool.appendParam(DEFAULT_POST_URL, params);
}
else
{
  urlStr = SimplePostTool.appendParam(urlStr, params);
}
-------------

I just don't have the environment setup to do full patch myself yet.
                
> 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
>            Priority: Minor
>             Fix For: 4.2, 5.0
>
>
> 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&param2=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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to