Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-16506

bin/php/updatesearchindexsolr.php --db options not working

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.3.0
    • 4.0.0alpha1, 4.2.0, 4.2.0beta1, 4.2.0rc1, 4.3.0beta1, 4.3.0rc1
    • None

    Description

      Script fails when --db-host and other --db options are used, because of error in the code. Patch below:

      +++ updatesearchindexsolr.php (working copy)
      @@ -449,7 +449,7 @@
      {
      if ( !empty( $this->Options[$param] ) )
      {

      • $optionString .= ' -' . $param . '=' . escapeshellarg( $this>Options['db-host'] );
        + $paramString .= ' -' . $param . '=' . escapeshellarg( $this>Options[$param] );
        }
        }
        Steps to reproduce

        :$ php extension\ezfind\bin\php\updatesearchindexsolr.php -d --db-host=my_db --db-user=my_user --db-password=my_pwd --db-database=my_db -s my_siteaccess --clean --php-exec=php --db-type=ezmysql

      Attachments

        Activity

          People

            pborgerm pborgerm
            gbentley gbentley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: