curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject curator git commit: Should never send ZooDefs.Ids.CREATOR_ALL_ACL to the validator
Date Tue, 14 Jun 2016 20:43:27 GMT
Repository: curator
Updated Branches:
  refs/heads/CURATOR-3.0 2ec35018e -> f830e5884


Should never send ZooDefs.Ids.CREATOR_ALL_ACL to the validator


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

Branch: refs/heads/CURATOR-3.0
Commit: f830e588460e8a90831de6890c112554d29cddab
Parents: 2ec3501
Author: randgalt <randgalt@apache.org>
Authored: Tue Jun 14 15:43:20 2016 -0500
Committer: randgalt <randgalt@apache.org>
Committed: Tue Jun 14 15:43:20 2016 -0500

----------------------------------------------------------------------
 .../apache/curator/framework/imps/CuratorMultiTransactionImpl.java | 2 +-
 .../java/org/apache/curator/framework/imps/SetDataBuilderImpl.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/f830e588/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorMultiTransactionImpl.java
----------------------------------------------------------------------
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorMultiTransactionImpl.java
b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorMultiTransactionImpl.java
index 40d0d2d..4b4d473 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorMultiTransactionImpl.java
+++ b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorMultiTransactionImpl.java
@@ -138,7 +138,7 @@ public class CuratorMultiTransactionImpl implements
             else if ( curatorOp.get().getType() == ZooDefs.OpCode.setData )
             {
                 SetDataRequest setDataRequest = (SetDataRequest)curatorOp.get().toRequestRecord();
-                schema.validateGeneral(setDataRequest.getPath(), setDataRequest.getData(),
ZooDefs.Ids.CREATOR_ALL_ACL);
+                schema.validateGeneral(setDataRequest.getPath(), setDataRequest.getData(),
null);
             }
         }
 

http://git-wip-us.apache.org/repos/asf/curator/blob/f830e588/curator-framework/src/main/java/org/apache/curator/framework/imps/SetDataBuilderImpl.java
----------------------------------------------------------------------
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/SetDataBuilderImpl.java
b/curator-framework/src/main/java/org/apache/curator/framework/imps/SetDataBuilderImpl.java
index 4ca11b8..e84a3bd 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/imps/SetDataBuilderImpl.java
+++ b/curator-framework/src/main/java/org/apache/curator/framework/imps/SetDataBuilderImpl.java
@@ -242,7 +242,7 @@ class SetDataBuilderImpl implements SetDataBuilder, BackgroundOperation<PathAndB
     @Override
     public Stat forPath(String path, byte[] data) throws Exception
     {
-        client.getSchemaSet().getSchema(path).validateGeneral(path, data, ZooDefs.Ids.CREATOR_ALL_ACL);
+        client.getSchemaSet().getSchema(path).validateGeneral(path, data, null);
 
         if ( compress )
         {


Mime
View raw message