You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "JiekerTime (via GitHub)" <gi...@apache.org> on 2023/03/14 09:05:37 UTC

[GitHub] [shardingsphere] JiekerTime opened a new issue, #24592: Authenticator has a bug maybe.

JiekerTime opened a new issue, #24592:
URL: https://github.com/apache/shardingsphere/issues/24592

   ### Which version of ShardingSphere did you use?
   
   master
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Reason analyze (If you can)
   AuthenticatorFactory.getAuthenticatorType caught an exception but was ignored
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   server.yaml like following:
   ```
   authority:
     users:
       - user: root@%
         password: root
       - user: sharding
         password: sharding
     privilege:
       type: ALL_PERMITTED
   ```
   try to connect to the proxy:
   <img width="926" alt="image" src="https://user-images.githubusercontent.com/76552510/224950045-d0d3cf2f-6a5a-42b7-9091-1c00800f49a9.png">
   
   got exception:
   ![image](https://user-images.githubusercontent.com/76552510/224950253-4729862a-f588-4923-904e-8085b997fef6.png)
   
   ```
   java.lang.invoke.LambdaConversionException: Invalid receiver type class java.lang.Enum; not a subtype of implementation type interface org.apache.shardingsphere.proxy.frontend.authentication.AuthenticatorType
   ```
   
   I will try to analyze the cause and if I find a fix, I will propose pr
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] JiekerTime closed issue #24592: Authenticator has a bug maybe.

Posted by "JiekerTime (via GitHub)" <gi...@apache.org>.
JiekerTime closed issue #24592: Authenticator has a bug maybe.
URL: https://github.com/apache/shardingsphere/issues/24592


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] JiekerTime commented on issue #24592: Authenticator has a bug maybe.

Posted by "JiekerTime (via GitHub)" <gi...@apache.org>.
JiekerTime commented on issue #24592:
URL: https://github.com/apache/shardingsphere/issues/24592#issuecomment-1469244419

   > I combed through the code and there seemed to be no problem with the logic. Then I tried upgrading the JDK version from 1.8 to 11 and the problem no longer recurred, which seems to be a problem with the JDK's lambda expression support. We have two options worth discussing, avoid using complex paradigm expressions or force the user to compile and execute the environment running on JDK11. @zhaojinchao95 @terrymanu
   
   <E extends Enum<E> & AuthenticatorType> statement got problem.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] JiekerTime commented on issue #24592: Authenticator has a bug maybe.

Posted by "JiekerTime (via GitHub)" <gi...@apache.org>.
JiekerTime commented on issue #24592:
URL: https://github.com/apache/shardingsphere/issues/24592#issuecomment-1469517369

   > Hi @JiekerTime , Now the minimum version required should be JDK 11, please refer to #24098
   
   Sounds strict, but in that case there is no problem


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] RaigorJiang commented on issue #24592: Authenticator has a bug maybe.

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #24592:
URL: https://github.com/apache/shardingsphere/issues/24592#issuecomment-1469436654

   Hi @JiekerTime , Now the minimum version required should be JDK 11, please refer to https://github.com/apache/shardingsphere/pull/24098


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] JiekerTime commented on issue #24592: Authenticator has a bug maybe.

Posted by "JiekerTime (via GitHub)" <gi...@apache.org>.
JiekerTime commented on issue #24592:
URL: https://github.com/apache/shardingsphere/issues/24592#issuecomment-1469241807

   I combed through the code and there seemed to be no problem with the logic. Then I tried upgrading the JDK version from 1.8 to 11 and the problem no longer recurred, which seems to be a problem with the JDK's lambda expression support.
   We have two options worth discussing, avoid using complex paradigm expressions or force the user to compile and execute the environment running on JDK11.
   @zhaojinchao95 @terrymanu 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org