ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject incubator-ranger git commit: RANGER-735: Request to Solr should use POST rather than GET
Date Tue, 24 Nov 2015 06:45:18 GMT
Repository: incubator-ranger
Updated Branches:
  refs/heads/master 7b7b314d8 -> ad45c554f


RANGER-735: Request to Solr should use POST rather than GET


Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/ad45c554
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/ad45c554
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/ad45c554

Branch: refs/heads/master
Commit: ad45c554fe244ce1567c0560b52ae42f8d3a9d4b
Parents: 7b7b314
Author: Don Bosco Durai <bosco@apache.org>
Authored: Thu Nov 19 11:22:58 2015 -0800
Committer: Don Bosco Durai <bosco@apache.org>
Committed: Mon Nov 23 22:44:28 2015 -0800

----------------------------------------------------------------------
 security-admin/src/main/java/org/apache/ranger/solr/SolrUtil.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/ad45c554/security-admin/src/main/java/org/apache/ranger/solr/SolrUtil.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/org/apache/ranger/solr/SolrUtil.java b/security-admin/src/main/java/org/apache/ranger/solr/SolrUtil.java
index ebf416d..c865669 100644
--- a/security-admin/src/main/java/org/apache/ranger/solr/SolrUtil.java
+++ b/security-admin/src/main/java/org/apache/ranger/solr/SolrUtil.java
@@ -37,6 +37,7 @@ import org.apache.ranger.common.SearchField.SEARCH_TYPE;
 import org.apache.solr.client.solrj.SolrClient;
 import org.apache.solr.client.solrj.SolrQuery;
 import org.apache.solr.client.solrj.SolrQuery.ORDER;
+import org.apache.solr.client.solrj.SolrRequest.METHOD;
 import org.apache.solr.client.solrj.response.QueryResponse;
 import org.apache.solr.client.solrj.util.ClientUtils;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -71,7 +72,7 @@ public class SolrUtil {
 		if (solrQuery != null) {
 			QueryResponse response;
 			try {
-				response = solrClient.query(solrQuery);
+				response = solrClient.query(solrQuery, METHOD.POST);
 				return response;
 			} catch (Throwable e) {
 				logger.error("Error from Solr server.", e);


Mime
View raw message