lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandre Rafalovitch (JIRA)" <>
Subject [jira] [Created] (SOLR-4217) post.jar ignores -Dparams when -Durl is used
Date Wed, 19 Dec 2012 12:09:12 GMT
Alexandre Rafalovitch created SOLR-4217:

             Summary: post.jar ignores -Dparams when -Durl is used
                 Key: SOLR-4217
             Project: Solr
          Issue Type: Bug
          Components: update
    Affects Versions: 4.0
            Reporter: Alexandre Rafalovitch
            Priority: Minor
             Fix For: 4.0.1, 4.1

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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message