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 2011/03/24 18:29:17 UTC
svn commit: r1085048 -
/directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
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() );
+ }
}