directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r674634 - /directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java
Date Mon, 07 Jul 2008 20:54:54 GMT
Author: akarasulu
Date: Mon Jul  7 13:54:53 2008
New Revision: 674634

URL: http://svn.apache.org/viewvc?rev=674634&view=rev
Log:
test case for DIRSERVER-1180 so it will be applied to 1.5.4

Modified:
    directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java

Modified: directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java?rev=674634&r1=674633&r2=674634&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java
(original)
+++ directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java
Mon Jul  7 13:54:53 2008
@@ -1183,4 +1183,30 @@
     	
     	ctx.createSubcontext( "cn=\"Jim, Bean\"", attrs );
     }
+    
+    
+    // TODO - fix 1180 and uncomment 
+//    
+//
+//    /**
+//     * Test for DIRSERVER-1180 where search hangs when an invalid a substring 
+//     * expression missing an any field is used in a filter: i.e. (cn=**).
+//     * 
+//     * @see https://issues.apache.org/jira/browse/DIRSERVER-1180
+//     */
+//    public void testMissingAnyInSubstring_DIRSERVER_1180() throws Exception
+//    {
+//    	Attributes attrs = new AttributesImpl( "objectClass", "inetOrgPerson", true );
+//    	attrs.get( "objectClass" ).add( "organizationalPerson" );
+//    	attrs.get( "objectClass" ).add( "person" );
+//    	attrs.put( "givenName", "Jim" );
+//    	attrs.put( "sn", "Bean" );
+//    	attrs.put( "cn", "jimbean" );
+//    	
+//    	ctx.createSubcontext( "cn=jimbean", attrs );
+//    	
+//    	NamingEnumeration<SearchResult> results = ctx.search( "", "(cn=**)", new SearchControls()
);
+//    	assertTrue( results.hasMore() );
+//    	results.close();
+//    }
 }



Mime
View raw message