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

eZ Find: search index update script does not work with '--allow-root-user' option

    Details

      Description

      When executing the extension/ezfind/bin/php/updatesearchindexsolr.php script as root, and using the "--allow-root-user|-r" option, this option is not passed to the forked processes.
      The consequence is that all sub-processes fail to execute properly. These sub-processes are the ones effectively fetching the content and pushing it to Solr.

      At l.490 in the aforementioned file, the "siteaccess" option is ported to sub-processes. It might be an idea to do the same with the --allow-root-user|-r option.

        Activity

        Hide
        Bertrand Dunogier added a comment -

        Sounds valid to me.

        Show
        Bertrand Dunogier added a comment - Sounds valid to me.
        Hide
        Joao Inacio (Inactive) added a comment -
        Show
        Joao Inacio (Inactive) added a comment - Possible fix: https://github.com/ezsystems/ezfind/pull/152
        Show
        Damien Pobel (Inactive) added a comment - - edited Fixed in ezfind: master: http://github.com/ezsystems/ezfind/commit/9431458ea8352c93b046b21ebc5c2efd26df6bd2
        Hide
        Paulo Nunes (Inactive) added a comment -

        QA Approved

        Show
        Paulo Nunes (Inactive) added a comment - QA Approved

          People

          • Assignee:
            Unassigned
            Reporter:
            Ricardo Correia (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 4 hours
              4h