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
|
* 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)
|
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
|
Optimizations
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
@ -460,7 +460,7 @@ public class RuleBasedAuthorizationPlugin implements AuthorizationPlugin, Config
|
||||||
" update :{" +
|
" update :{" +
|
||||||
" path:'/update/*'}," +
|
" path:'/update/*'}," +
|
||||||
" read :{" +
|
" read :{" +
|
||||||
" path:['/update/*', '/get']}," +
|
" path:['/select', '/get']}," +
|
||||||
" config-edit:{" +
|
" config-edit:{" +
|
||||||
" method:POST," +
|
" method:POST," +
|
||||||
" path:'/config/*'}}");
|
" path:'/config/*'}}");
|
||||||
|
|
|
@ -957,7 +957,7 @@ public class HttpSolrCall {
|
||||||
return new AuthorizationContext() {
|
return new AuthorizationContext() {
|
||||||
@Override
|
@Override
|
||||||
public SolrParams getParams() {
|
public SolrParams getParams() {
|
||||||
return getQueryParams();
|
return solrReq.getParams();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -164,6 +164,13 @@ public class BasicAuthIntegrationTest extends TestMiniSolrCloudClusterBase {
|
||||||
fail("must have failed");
|
fail("must have failed");
|
||||||
} catch (HttpSolrClient.RemoteSolrException e) {
|
} 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()
|
cloudSolrClient.request(new CollectionAdminRequest.Reload()
|
||||||
.setCollectionName(defaultCollName)
|
.setCollectionName(defaultCollName)
|
||||||
|
|
Loading…
Reference in New Issue