[CONJ-807] Get Access Denied error after 2.5.2 with commit 4e0705bb306a5f7efef222c6886e3a561b13ab60 Created: 2020-07-09 Updated: 2020-11-17 Resolved: 2020-08-24 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | authentication |
| Affects Version/s: | 2.5.2 |
| Fix Version/s: | 2.7.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | xixibu | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | regression | ||
| Environment: |
Ubuntu 18.04.4 LTS, Java version: 11.0.7, Apache Maven 3.6.0, MariaDB Connector J 2.5.2+. And it seems I can only reproduce with cloud MySQL server |
||
| Issue Links: |
|
||||||||||||
| Description |
|
After apply commit 4e0705bb306a5f7efef222c6886e3a561b13ab60, and run multi-thread program to connect to MySQL server with MariaDB Connector J , it has a high chance to meet with error "Access denied for xx".
|
| Comments |
| Comment by Diego Dupin [ 2020-07-09 ] |
|
could you indicate what you mean by "Access denied for xx" ? is it server error like "Access denied for user 'root'@'localhost' (using password: YES)" or some AccessControlException for classloader for example ? |
| Comment by xixibu [ 2020-07-10 ] |
|
Hi @Diego, I mean server error "Access denied for user 'root'@'localhost' (using password: YES)" The reason I can only reproduce it with cloud server maybe because that the auth switch process is different. I tried to capture some packet of the problematic one, if I did not do wrong, it seems the login packet is same with that connection succeeded, the problem may occur during the auth switch process. |
| Comment by xixibu [ 2020-07-10 ] |
|
When using Jmeter to test, I also observed some empty login packet without user/password, seems also relevant to this. |
| Comment by xixibu [ 2020-07-20 ] |
|
Hi @Diego, May I ask is there any update for this? |
| Comment by xixibu [ 2020-08-10 ] |
|
Hi @Diego, May I ask is there any update for this? I have done several round of test, and has identified that this is the commit that causes the problem. |
| Comment by xixibu [ 2020-08-11 ] |
|
Hi @Diego, I've proposed a PR request for this in https://github.com/mariadb-corporation/mariadb-connector-j/pull/159, can you help check? For conj-742, squirrel reports " Client does not support authentication protocol requested by server. plugin type was = 'xxx' " 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) Thanks & Best Regards, |
| Comment by Diego Dupin [ 2020-08-19 ] |
|
allright, using multiple classloader, use of static might create issue like you describe. |