You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2022/01/10 22:21:04 UTC
[directory-ldap-api] branch master updated: A bit of cleanup
This is an automated email from the ASF dual-hosted git repository.
elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git
The following commit(s) were added to refs/heads/master by this push:
new 7870643 A bit of cleanup
7870643 is described below
commit 7870643a824d598705d378325dee16ff4956c592
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Mon Jan 10 23:20:51 2022 +0100
A bit of cleanup
---
.../org/apache/directory/api/asn1/ber/AbstractContainer.java | 1 -
.../directory/api/ldap/entry/SchemaAwareAttributeTest.java | 10 ++++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/asn1/ber/src/main/java/org/apache/directory/api/asn1/ber/AbstractContainer.java b/asn1/ber/src/main/java/org/apache/directory/api/asn1/ber/AbstractContainer.java
index 48ddcac..9fdcf1d 100644
--- a/asn1/ber/src/main/java/org/apache/directory/api/asn1/ber/AbstractContainer.java
+++ b/asn1/ber/src/main/java/org/apache/directory/api/asn1/ber/AbstractContainer.java
@@ -329,7 +329,6 @@ public ByteBuffer getStream()
@Override
public void rewind()
{
-
int start = stream.position() - 1 - tlv.getLengthNbBytes();
stream.position( start );
}
diff --git a/integ/src/test/java/org/apache/directory/api/ldap/entry/SchemaAwareAttributeTest.java b/integ/src/test/java/org/apache/directory/api/ldap/entry/SchemaAwareAttributeTest.java
index b2ba705..16ae2c4 100644
--- a/integ/src/test/java/org/apache/directory/api/ldap/entry/SchemaAwareAttributeTest.java
+++ b/integ/src/test/java/org/apache/directory/api/ldap/entry/SchemaAwareAttributeTest.java
@@ -33,6 +33,7 @@ import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
+import java.text.ParseException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
@@ -43,6 +44,8 @@ import org.apache.directory.api.ldap.model.entry.DefaultAttribute;
import org.apache.directory.api.ldap.model.entry.Value;
import org.apache.directory.api.ldap.model.exception.LdapException;
import org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueException;
+import org.apache.directory.api.ldap.model.filter.FilterParser;
+import org.apache.directory.api.ldap.model.filter.SimpleNode;
import org.apache.directory.api.ldap.model.schema.AttributeType;
import org.apache.directory.api.ldap.model.schema.SchemaManager;
import org.apache.directory.api.ldap.schema.manager.impl.DefaultSchemaManager;
@@ -2125,4 +2128,11 @@ public class SchemaAwareAttributeTest
assertTrue( dsaSer.contains( password ) );
assertFalse( dsaSer.isHumanReadable() );
}
+
+
+ @Test
+ public void testFilter() throws ParseException
+ {
+ SimpleNode<?> node = ( SimpleNode<?> ) FilterParser.parse( schemaManager, "(uniqueMember=cn=abc*)" );
+ }
}