SOLR-10137: Ensure that ConfigSets created via API are mutable.

This commit is contained in:
Mark Miller 2017-05-31 17:44:00 -04:00
parent f34155fb20
commit 7da9e9d735
3 changed files with 7 additions and 1 deletions

View File

@ -252,6 +252,8 @@ Bug Fixes
* SOLR-10360: Solr HDFS snapshot export fails due to FileNotFoundException error when using MR1 instead of * SOLR-10360: Solr HDFS snapshot export fails due to FileNotFoundException error when using MR1 instead of
yarn. (Hrishikesh via Mark Miller) yarn. (Hrishikesh via Mark Miller)
* SOLR-10137: Ensure that ConfigSets created via API are mutable. (Hrishikesh via Mark Miller)
Optimizations Optimizations
---------------------- ----------------------

View File

@ -238,6 +238,10 @@ public class ConfigSetsHandler extends RequestHandlerBase implements PermissionN
props.put(param, params.get(param)); props.put(param, params.get(param));
} }
} }
// The configset created via an API should be mutable.
props.put("immutable", "false");
return props; return props;
} }

View File

@ -54,6 +54,6 @@ public class TestConfigsApi extends SolrTestCaseJ4 {
"{name :sample, operation:delete}"); "{name :sample, operation:delete}");
compareOutput(apiBag, "/cluster/configs", POST, "{create:{name : newconf, baseConfigSet: sample }}", null, compareOutput(apiBag, "/cluster/configs", POST, "{create:{name : newconf, baseConfigSet: sample }}", null,
"{operation:create, name :newconf, baseConfigSet: sample }"); "{operation:create, name :newconf, baseConfigSet: sample, immutable: false }");
} }
} }