Skip to content

Commit a3bdf74

Browse files
Bug#27737195: NO ERROR FOR --CACHING_SHA2_PASSWORD_PRIVATE_KEY_PATH=INVALID-FILE
Description: Converted message about server not being able to read key files from INFORMATION to WARNING.
1 parent d973217 commit a3bdf74

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

mysql-test/include/mtr_warnings.sql

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
1+
-- Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
22
--
33
-- This program is free software; you can redistribute it and/or modify
44
-- it under the terms of the GNU General Public License as published by
@@ -292,6 +292,11 @@ INSERT INTO global_suppressions VALUES
292292
("Member with address .* is reachable again."),
293293
("The member has resumed contact with a majority of the members in the group.*"),
294294
("Members removed from the group.*"),
295+
/*
296+
Missing Private/Public key files
297+
*/
298+
("RSA private key file not found"),
299+
("RSA public key file not found"),
295300

296301
("THE_LAST_SUPPRESSION")||
297302

sql/auth/sql_authentication.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ Rsa_authentication_keys::read_key_file(RSA **key_ptr,
189189
*/
190190
if ((key_file= fopen(key_file_path.c_ptr(), "r")) == NULL)
191191
{
192-
sql_print_information("RSA %s key file not found: %s."
193-
" Some authentication plugins will not work.",
194-
key_type, key_file_path.c_ptr());
192+
sql_print_warning("RSA %s key file not found: %s."
193+
" Some authentication plugins will not work.",
194+
key_type, key_file_path.c_ptr());
195195
}
196196
else
197197
{

0 commit comments

Comments
 (0)