mirror of https://github.com/apache/lucene.git
SOLR-8167: Authorization framework does not work with POST params
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1709056 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
70ae2272df
commit
91a6c31d77
|
@ -274,6 +274,9 @@ Bug Fixes
|
|||
|
||||
* SOLR-8050: Partial update on document with multivalued date field fails to parse date and can
|
||||
also fail to remove dates in some cases. (Burkhard Buelte, Luc Vanlerberghe, shalin)
|
||||
|
||||
* SOLR-8167: Authorization framework does not work with POST params (noble)
|
||||
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
|
|
@ -460,7 +460,7 @@ public class RuleBasedAuthorizationPlugin implements AuthorizationPlugin, Config
|
|||
" update :{" +
|
||||
" path:'/update/*'}," +
|
||||
" read :{" +
|
||||
" path:['/update/*', '/get']}," +
|
||||
" path:['/select', '/get']}," +
|
||||
" config-edit:{" +
|
||||
" method:POST," +
|
||||
" path:'/config/*'}}");
|
||||
|
|
|
@ -957,7 +957,7 @@ public class HttpSolrCall {
|
|||
return new AuthorizationContext() {
|
||||
@Override
|
||||
public SolrParams getParams() {
|
||||
return getQueryParams();
|
||||
return solrReq.getParams();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -164,6 +164,13 @@ public class BasicAuthIntegrationTest extends TestMiniSolrCloudClusterBase {
|
|||
fail("must have failed");
|
||||
} catch (HttpSolrClient.RemoteSolrException e) {
|
||||
|
||||
}
|
||||
reload.setMethod(SolrRequest.METHOD.POST);
|
||||
try {
|
||||
rsp = solrClient.request(reload);
|
||||
fail("must have failed");
|
||||
} catch (HttpSolrClient.RemoteSolrException e) {
|
||||
|
||||
}
|
||||
cloudSolrClient.request(new CollectionAdminRequest.Reload()
|
||||
.setCollectionName(defaultCollName)
|
||||
|
|
Loading…
Reference in New Issue