Copilot commented on code in PR #13883:
URL: https://github.com/apache/ignite/pull/13883#discussion_r4780834685


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/authentication/IgniteAuthenticationProcessor.java:
##########
@@ -99,6 +99,9 @@ public class IgniteAuthenticationProcessor extends 
GridProcessorAdapter implemen
     /** Store user prefix. */
     private static final String STORE_USER_PREFIX = "user.";
 
+    /** Erroneous credentials message. */
+    public static final String INCORRECT_USER_OR_PASS = "The user name or 
password is incorrect [userName=%s]";

Review Comment:
   This new format constant is not the single source of truth: 
`ClientListenerAbstractConnectionContext.authenticate` still hard-codes the 
same message at 
`modules/core/src/main/java/org/apache/ignite/internal/processors/odbc/ClientListenerAbstractConnectionContext.java:131`.
 Authentication failures from JDBC/ODBC can therefore drift from the message 
used by the processor and these tests. Please move the shared format to a 
common authentication-facing location (or otherwise reuse it from both paths).



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to