[jira] [Comment Edited] (ZOOKEEPER-3888) Add source and target version for compile plugin

2020-07-15 Thread Christopher Tubbs (Jira)


[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-3888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17158880#comment-17158880
 ] 

Christopher Tubbs edited comment on ZOOKEEPER-3888 at 7/16/20, 4:42 AM:


I explained on the PR why this change should not happen. The child module 
should inherit the parent POM's `maven.compiler.source` and 
`maven.compiler.target` properties and work just fine.

How are you building the multi-module project? What commands and from which 
directory? Also, what version are you trying to build, because I haven't tested 
older builds... only more recent ones after the switch to Maven.



was (Author: ctubbsii):
I explained on the PR why this change should not happen. The child module 
should inherit the parent POM's `maven.compiler.source` and 
`maven.compiler.target` properties and work just fine.

How are you building the multi-module project? What commands and from which 
directory?


> Add source and target version for compile plugin
> 
>
> Key: ZOOKEEPER-3888
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3888
> Project: ZooKeeper
>  Issue Type: Bug
>Reporter: Guo Jiwei
>Priority: Minor
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> If not specify the source and target version, compile from the master will 
> fail:
> zookeeper/zookeeper-jute/src/main/java/org/apache/jute/compiler/CppGenerator.java:[65,13]
>  try-with-resources is not supported in -source 1.6



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (ZOOKEEPER-3888) Add source and target version for compile plugin

2020-07-15 Thread Christopher Tubbs (Jira)


[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-3888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17158880#comment-17158880
 ] 

Christopher Tubbs commented on ZOOKEEPER-3888:
--

I explained on the PR why this change should not happen. The child module 
should inherit the parent POM's `maven.compiler.source` and 
`maven.compiler.target` properties and work just fine.

How are you building the multi-module project? What commands and from which 
directory?


> Add source and target version for compile plugin
> 
>
> Key: ZOOKEEPER-3888
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3888
> Project: ZooKeeper
>  Issue Type: Bug
>Reporter: Guo Jiwei
>Priority: Minor
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> If not specify the source and target version, compile from the master will 
> fail:
> zookeeper/zookeeper-jute/src/main/java/org/apache/jute/compiler/CppGenerator.java:[65,13]
>  try-with-resources is not supported in -source 1.6



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (ZOOKEEPER-3891) ZKCli commands give wrong error message "Authentication is not valid" for insufficient permissions

2020-07-15 Thread Mohammad Arshad (Jira)
Mohammad Arshad created ZOOKEEPER-3891:
--

 Summary: ZKCli commands give wrong error message "Authentication 
is not valid" for insufficient permissions
 Key: ZOOKEEPER-3891
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3891
 Project: ZooKeeper
  Issue Type: Bug
Reporter: Mohammad Arshad
Assignee: Mohammad Arshad


ZKCli commands give error message "Authentication is not valid" for 
insufficient permissions .(when KeeperException.NoAuthException is thrown). 
This is misleading message. 

Steps: to get the error
{code:java}
[zk: vm1:2181(CONNECTED) 0] create /b
Created /b
[zk: vm1:2181(CONNECTED) 1] getAcl /b
'world,'anyone
: cdrwa
[zk: vm1:2181(CONNECTED) 2] setAcl /b world:anyone:ra
[zk: vm1:2181(CONNECTED) 3] getAcl /b
'world,'anyone
: ra
[zk: vm1:2181(CONNECTED) 4] create /b/b1
Authentication is not valid : /b/b1
[zk: vm1:2181(CONNECTED) 5]
{code}
 

I think we should change  message "Authentication is not valid" to 
"Insufficient permission"
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)