Author: matthieu
Date: Mon Nov  2 14:54:18 2015
New Revision: 1712029

URL: http://svn.apache.org/viewvc?rev=1712029&view=rev
Log:
JAMES-1587 contains and remove domains operations should not be case sensitive 
in HBase implementation

           Contributed by Benoit Tellier

Modified:
    
james/project/trunk/server/data/data-hbase/src/main/java/org/apache/james/domainlist/hbase/HBaseDomainList.java

Modified: 
james/project/trunk/server/data/data-hbase/src/main/java/org/apache/james/domainlist/hbase/HBaseDomainList.java
URL: 
http://svn.apache.org/viewvc/james/project/trunk/server/data/data-hbase/src/main/java/org/apache/james/domainlist/hbase/HBaseDomainList.java?rev=1712029&r1=1712028&r2=1712029&view=diff
==============================================================================
--- 
james/project/trunk/server/data/data-hbase/src/main/java/org/apache/james/domainlist/hbase/HBaseDomainList.java
 (original)
+++ 
james/project/trunk/server/data/data-hbase/src/main/java/org/apache/james/domainlist/hbase/HBaseDomainList.java
 Mon Nov  2 14:54:18 2015
@@ -55,7 +55,7 @@ public class HBaseDomainList extends Abs
         HTableInterface table = null;
         try {
             table = TablePool.getInstance().getDomainlistTable();
-            Get get = new Get(Bytes.toBytes(domain));
+            Get get = new Get(Bytes.toBytes(domain.toLowerCase()));
             Result result = table.get(get);
             if (!result.isEmpty()) {
                 return true;
@@ -110,7 +110,7 @@ public class HBaseDomainList extends Abs
         HTableInterface table = null;
         try {
             table = TablePool.getInstance().getDomainlistTable();
-            Delete delete = new Delete(Bytes.toBytes(domain));
+            Delete delete = new Delete(Bytes.toBytes(domain.toLowerCase()));
             table.delete(delete);
             table.flushCommits();
         } catch (IOException e) {



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to