This is an automated email from the ASF dual-hosted git repository. markt 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 61eaa3a Expand test case to cover example from BZ 65373 61eaa3a is described below commit 61eaa3a26ed69b9481f05b3af89d09db3e4f355f Author: Mark Thomas <ma...@apache.org> AuthorDate: Sun Jun 13 09:42:38 2021 +0100 Expand test case to cover example from BZ 65373 https://bz.apache.org/bugzilla/show_bug.cgi?id=65373 --- .../apache/catalina/realm/TestJNDIRealmIntegration.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/org/apache/catalina/realm/TestJNDIRealmIntegration.java b/test/org/apache/catalina/realm/TestJNDIRealmIntegration.java index 99d537d..9e7595f 100644 --- a/test/org/apache/catalina/realm/TestJNDIRealmIntegration.java +++ b/test/org/apache/catalina/realm/TestJNDIRealmIntegration.java @@ -85,6 +85,9 @@ public class TestJNDIRealmIntegration { "t=", "test", new String[] {"Test<Group*2", "Test>Group*3"}, userRoleAttribute }); parameterSets.add(new Object[] { userPattern, userSearch, userBase, roleSearch, roleBase, "norole", "test", new String[0], userRoleAttribute }); + // Bug 65373 + parameterSets.add(new Object[] { userPattern, userSearch, userBase, roleSearch, roleBase, + "<>+=\"#;,rrr", "<>+=\"#;,rrr", new String[0], userRoleAttribute }); } @@ -278,6 +281,18 @@ public class TestJNDIRealmIntegration { "member: cn=testsub,ou=s\\;ub,ou=people,dc=example,dc=com"); result = conn.processOperation(addGroupTest4); Assert.assertEquals(ResultCode.SUCCESS, result.getResultCode()); + + // Bug 65373 + AddRequest addUserBug65373 = new AddRequest( + "dn: cn=\\3C\\3E\\2B=\\22#\\3B\\2Crrr,ou=people,dc=example,dc=com", + "objectClass: top", + "objectClass: person", + "objectClass: organizationalPerson", + "cn: <>+=\"#;,rrr", + "sn: Bug 65373", + "userPassword: <>+=\"#;,rrr"); + result = conn.processOperation(addUserBug65373); + Assert.assertEquals(ResultCode.SUCCESS, result.getResultCode()); } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org