directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1085048 - /directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
Date Thu, 24 Mar 2011 17:29:17 GMT
Author: elecharny
Date: Thu Mar 24 17:29:17 2011
New Revision: 1085048

URL: http://svn.apache.org/viewvc?rev=1085048&view=rev
Log:
Forgot to commit this class (dealing with the exception) 

Modified:
    directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java

Modified: directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java?rev=1085048&r1=1085047&r2=1085048&view=diff
==============================================================================
--- directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
(original)
+++ directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
Thu Mar 24 17:29:17 2011
@@ -1612,7 +1612,14 @@ public abstract class ServerContext impl
         // 1). Find the Dn for name and walk it from the head to tail
         Dn fqn = buildTarget( JndiUtils.fromName( name ) );
         
-        return JndiUtils.toName( JndiUtils.fromName( prefix ).addAll( fqn ) );
+        try
+        {
+            return JndiUtils.toName( JndiUtils.fromName( prefix ).addAll( fqn ) );
+        }
+        catch ( LdapInvalidDnException lide )
+        {
+            throw new InvalidNameException( lide.getMessage() );
+        }
     }
 
 



Mime
View raw message