Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for-CONJ-742-and-CONJ-807, static loader for AuthenticationPlugin introduces Access Denied problem #159

Merged
merged 1 commit into from Sep 24, 2020

Conversation

GuuBu
Copy link
Contributor

@GuuBu GuuBu commented Aug 11, 2020

For conj-742, Squirrel Client reports " Client does not support authentication protocol requested by server. plugin type was = 'xxx' "
This problem was fixed in commit 4e0705b.
But after this commit changed the loader into static, it reports Access denied problem (stack as at bottom). And this problem as been reported on conj-807.
I've tested that for conj-742, there is only need to specify the class loader Driver.class.getClassLoader() to solve the Squirrel Client problem. So I proposed this fix to solve both conj-742 and conj-807.

Thread 35 got Exception: java.sql.SQLInvalidAuthorizationSpecException: Could not connect to address=(host=xx)(port=3306)(type=master) : Access denied for user 'xx'@'xx' (using password: YES)
java.sql.SQLInvalidAuthorizationSpecException: Could not connect to address=(host=xx)(port=3306)(type=master) : Access denied for user 'xx'@'xx' (using password: YES)
at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:239)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1241)
at org.mariadb.jdbc.internal.util.Utils.retrieveProxy(Utils.java:610)
at org.mariadb.jdbc.MariaDbConnection.newConnection(MariaDbConnection.java:142)
at org.mariadb.jdbc.Driver.connect(Driver.java:86)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:189)
at TestCache.run(TestCache.java:100)
Caused by: java.sql.SQLException: Access denied for user 'xx'@'xx' (using password: YES)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.authenticationHandler(AbstractConnectProtocol.java:729)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.createConnection(AbstractConnectProtocol.java:507)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1236)
... 6 more

…e squirrel problem. But static introduce access denied
@rusher
Copy link
Collaborator

rusher commented Aug 19, 2020

merged into develop branch ( 5340e64 )

@rusher rusher merged commit 5340e64 into mariadb-corporation:master Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants