Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4217

post.jar ignores -Dparams when -Durl is used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0
    • 4.1
    • update
    • None

    Description

      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.

      Attachments

        1. SOLR-4217.patch
          2 kB
          Erik Hatcher

        Activity

          People

            ehatcher Erik Hatcher
            arafalov Alexandre Rafalovitch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: