[MDEV-12101] failed_auth_unixsocket may fail depending on OS user account name Created: 2017-02-21  Updated: 2021-01-26  Resolved: 2021-01-26

Status: Closed
Project: MariaDB Server
Component/s: Tests
Affects Version/s: None
Fix Version/s: 10.4.0

Type: Bug Priority: Trivial
Reporter: Andrii Nikitin (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None


 Description   

replace_result mtr command may corrupt test output and trigger false test failure.

Confirmed with OS user account as short as just 'a' , then failure looks like below:

CURRENT_TEST: main.failed_auth_unixsocket
--- /home/a/servere/mysql-test/r/failed_auth_unixsocket.result	2017-02-20 14:48:22.920331503 +0100
+++ /home/a/servere/mysql-test/r/failed_auth_unixsocket.reject	2017-02-21 09:43:50.346668937 +0100
@@ -1,7 +1,7 @@
 update mysql.user set plugin='unix_socket';
 flush privileges;
-connect(localhost,USER,,test,MASTER_PORT,MASTER_SOCKET);
-ERROR HY000: Plugin 'unix_socket' is not loaded
+connect(locUSERlhost,USER,,test,MASTER_PORT,MASTER_SOCKET);
+ERROR HY000: Plugin 'unix_socket' is not loUSERded
 ERROR HY000: Plugin 'unix_socket' is not loaded
 install plugin unix_socket soname 'auth_socket.so';
 connect(localhost,USER,,test,MASTER_PORT,MASTER_SOCKET);

Please note that occurrences of 'a' in result message are replaced with 'USER' by this line in test body mysql-test/t/failed_auth_unixsocket.test :

--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT $USER USER



 Comments   
Comment by Elena Stepanova [ 2021-01-26 ]

The problematic replace_result was removed in 10.4.0 by this commit:

commit 7c40996cc866ba9c6cf781776312301baa81c452
Author: Sergei Golubchik
Date:   Wed Oct 17 12:48:13 2018 +0200
 
    MDEV-12321 authentication plugin: SET PASSWORD support

Generated at Thu Feb 08 07:55:07 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.