List<ACL> rv = new LinkedList<ACL>(); if (uniqacls == null || uniqacls.size() == 0) { throw new KeeperException.InvalidACLException(path); throw new KeeperException.InvalidACLException(path); throw new KeeperException.InvalidACLException(path); throw new KeeperException.InvalidACLException(path); throw new KeeperException.InvalidACLException(path);
throw new CliWrapperException(e); } catch (KeeperException.InvalidACLException ex) { err.println(ex.getMessage()); throw new CliWrapperException(ex); } catch (KeeperException|InterruptedException ex) {
protected boolean processCmd(MyCommandOptions co) throws KeeperException, IOException, InterruptedException { try { return processZKCmd(co); } catch (IllegalArgumentException e) { System.err.println("Command failed: " + e); } catch (KeeperException.NoNodeException e) { System.err.println("Node does not exist: " + e.getPath()); } catch (KeeperException.NoChildrenForEphemeralsException e) { System.err.println("Ephemerals cannot have children: " + e.getPath()); } catch (KeeperException.NodeExistsException e) { System.err.println("Node already exists: " + e.getPath()); } catch (KeeperException.NotEmptyException e) { System.err.println("Node not empty: " + e.getPath()); } catch (KeeperException.NotReadOnlyException e) { System.err.println("Not a read-only call: " + e.getPath()); }catch (KeeperException.InvalidACLException e) { System.err.println("Acl is not valid : "+e.getPath()); }catch (KeeperException.NoAuthException e) { System.err.println("Authentication is not valid : "+e.getPath()); }catch (KeeperException.BadArgumentsException e) { System.err.println("Arguments are not valid : "+e.getPath()); }catch (KeeperException.BadVersionException e) { System.err.println("version No is not valid : "+e.getPath()); } return false; }
throw new KeeperException.InvalidACLException(path); path = setAclRequest.getPath(); if (!fixupACL(request.authInfo, setAclRequest.getAcl())) { throw new KeeperException.InvalidACLException(path);
request.setPath(serverPath); if (acl != null && acl.size() == 0) { throw new KeeperException.InvalidACLException();
return new NodeExistsException(); case INVALIDACL: return new InvalidACLException(); case AUTHFAILED: return new AuthFailedException();
request.setPath(serverPath); if (acl != null && acl.size() == 0) { throw new KeeperException.InvalidACLException();
throw new KeeperException.InvalidACLException(path); listACL = removeDuplicates(setAclRequest.getAcl()); if (!fixupACL(request.authInfo, listACL)) { throw new KeeperException.InvalidACLException(path);
request.setPath(serverPath); if (acl != null && acl.size() == 0) { throw new KeeperException.InvalidACLException();
return new NodeExistsException(); case INVALIDACL: return new InvalidACLException(); case AUTHFAILED: return new AuthFailedException();
request.setPath(serverPath); if (acl != null && acl.size() == 0) { throw new KeeperException.InvalidACLException(clientPath);
} catch(InvalidACLException e) { LOG.info("Test successful, invalid acl received : " + e.getMessage()); } catch(InvalidACLException e) { LOG.info("Test successful, invalid acl received : " + e.getMessage()); } catch(InvalidACLException e) { LOG.info("Test successful, invalid acl received : " + e.getMessage());
return new NodeExistsException(); case INVALIDACL: return new InvalidACLException(); case AUTHFAILED: return new AuthFailedException();
/** * Validates the provided ACL list for null, empty or null value in it. * * @param acl * ACL list * @throws InvalidACLException * if ACL list is not valid */ private void validateACL(List<ACL> acl) throws KeeperException.InvalidACLException { if (acl == null || acl.isEmpty() || acl.contains(null)) { throw new KeeperException.InvalidACLException(); } } }