This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 65729022e1 Fix backport
65729022e1 is described below
commit 65729022e1b5d37e2f153cd95ba87ca61e74a21b
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Jun 17 20:59:13 2026 +0100
Fix backport
---
test/org/apache/catalina/realm/TestRealmBase.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/org/apache/catalina/realm/TestRealmBase.java
b/test/org/apache/catalina/realm/TestRealmBase.java
index fe9757d8c5..59d048173e 100644
--- a/test/org/apache/catalina/realm/TestRealmBase.java
+++ b/test/org/apache/catalina/realm/TestRealmBase.java
@@ -901,11 +901,11 @@ public class TestRealmBase {
// Create the principals
List<String> userRoles1 = new ArrayList<>();
userRoles1.add(ROLE1);
- GenericPrincipal gp1 = new GenericPrincipal(USER1, userRoles1);
+ GenericPrincipal gp1 = new GenericPrincipal(USER1, PWD, userRoles1);
List<String> userRoles2 = new ArrayList<>();
userRoles2.add(ROLE2);
- GenericPrincipal gp2 = new GenericPrincipal(USER2, userRoles2);
+ GenericPrincipal gp2 = new GenericPrincipal(USER2, PWD, userRoles2);
// Add the constraints to the context
context.addConstraint(allowConstraint);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]