You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/06/13 08:44:15 UTC
[tomcat] branch main updated: Expand test case to cover example
from BZ 65373
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 356c8ec Expand test case to cover example from BZ 65373
356c8ec is described below
commit 356c8ecc774a2c227b1efcc50f159bb57d48b0c5
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org