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

Exception swallowing in ContainerPluginsApi causes some config validation errors to be ignored

    XMLWordPrintableJSON

Details

    Description

      When registering a ConfigurablePlugin through the /cluster/plugin API using the V2Request client, exceptions raised within theĀ void configure(T cfg) method are swallowed in ContainerPluginsApi.

      This behavior can be troublesome as the exceptions raised in the configure(...) method are usually validation errors on the configuration to be applied, which are therefore ignored and allow for invalid plugin configuration to become effective.

      I proposed a change in apache/solr#2202 to remediate this issue along with a test to illustrate the scenario and validate the fix.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ycallea Yohann Callea
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 50m
                1h 50m