mirror of https://github.com/apache/lucene.git
SOLR-10137: Ensure that ConfigSets created via API are mutable.
This commit is contained in:
parent
f34155fb20
commit
7da9e9d735
|
@ -253,6 +253,8 @@ Bug Fixes
|
|||
* SOLR-10360: Solr HDFS snapshot export fails due to FileNotFoundException error when using MR1 instead of
|
||||
yarn. (Hrishikesh via Mark Miller)
|
||||
|
||||
* SOLR-10137: Ensure that ConfigSets created via API are mutable. (Hrishikesh via Mark Miller)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
* SOLR-10634: JSON Facet API: When a field/terms facet will retrieve all buckets (i.e. limit:-1)
|
||||
|
|
|
@ -238,6 +238,10 @@ public class ConfigSetsHandler extends RequestHandlerBase implements PermissionN
|
|||
props.put(param, params.get(param));
|
||||
}
|
||||
}
|
||||
|
||||
// The configset created via an API should be mutable.
|
||||
props.put("immutable", "false");
|
||||
|
||||
return props;
|
||||
}
|
||||
|
||||
|
|
|
@ -54,6 +54,6 @@ public class TestConfigsApi extends SolrTestCaseJ4 {
|
|||
"{name :sample, operation:delete}");
|
||||
|
||||
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 }");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue