From users-return-378-apmail-directory-users-archive=directory.apache.org@directory.apache.org Wed May 02 07:20:44 2007 Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 29080 invoked from network); 2 May 2007 07:20:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 May 2007 07:20:43 -0000 Received: (qmail 62651 invoked by uid 500); 2 May 2007 07:20:49 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 62634 invoked by uid 500); 2 May 2007 07:20:49 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 62623 invoked by uid 99); 2 May 2007 07:20:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2007 00:20:49 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of elecharny@gmail.com designates 64.233.184.227 as permitted sender) Received: from [64.233.184.227] (HELO wr-out-0506.google.com) (64.233.184.227) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2007 00:20:42 -0700 Received: by wr-out-0506.google.com with SMTP id 25so40948wry for ; Wed, 02 May 2007 00:20:21 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=XgD/TsEunacq6jscyUOX1gotKEqJqcIi129w/MavTW+rxIC9vfPCyPtdPdrAz3Yf8xAO8IcLK6vrZ/SBob5KBu/fQMhYtRlt+ziFnTRergL2L7fAP+NHEjMy0b7OyvlHOGjwP19VDVKneyo5l04jVPEllVosPGTOpwYdo7Qsef0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=dKjoeUr6QDRa6mZWbMnvyxQxleG/0Im1pQb3AxFkk1+m8lzF34lT/MMiPsh3AcBLDhYLsg4mADhUlhPH8k2RzWfPHT8RVzjksUrefABsElBr+0I9KQZwS5+FRR4OcpU/Z6nx721MSryntXdul8Y+QmfWWAdxzrf8n7v9tCACgwk= Received: by 10.78.193.19 with SMTP id q19mr63496huf.1178090420785; Wed, 02 May 2007 00:20:20 -0700 (PDT) Received: by 10.78.37.12 with HTTP; Wed, 2 May 2007 00:20:20 -0700 (PDT) Message-ID: Date: Wed, 2 May 2007 09:20:20 +0200 From: "Emmanuel Lecharny" Reply-To: elecharny@iktek.com To: users@directory.apache.org Subject: Re: ldif directory path on windows In-Reply-To: <4a65319c0705011707j33da42f4i68d4d705e0cfe79@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1824_25608201.1178090420724" References: <4a65319c0705011707j33da42f4i68d4d705e0cfe79@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_1824_25608201.1178090420724 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Have you tried to escape the escape character ? Something like : c:\\dev\\... Can you paste the piece of code you ar using to inject the ldif file, so that we have a clear idea about what happens ? Thanks ! On 5/2/07, B G wrote: > > Hi... > > I am trying to use a ldif file to import schema into an embedded 1.5.0 ds= . > > The issue I found has to do with what is configured for the path to the > ldif > directory on a windows machine. If this path contains any characters that > are possible hex values after the file seperator ( '\' on windows) thing= s > are totally screwed. > This is because the DefaultStringNormalizer interprets the presence of an= y > '\' characters as an escape for a hex sequence and tries to convert the > following 2 bytes as hex. This is not a problem if the path has no > possible > hex values after the file seperator, but big problem otherwise. > > For example: C:\dev\ldif\myldif.ldif willl never work. > > Stack trace looks like this: > javax.naming.NamingException: Invalid value : C:?v\ldif\myldif.ldif > at > > org.apache.directory.shared.ldap.schema.DeepTrimToLowerNormalizer.normali= ze > ( > DeepTrimToLowerNormalizer.java:65) > at org.apache.directory.shared.ldap.schema.CachingNormalizer.normaliz= e > ( > CachingNormalizer.java:95) > at org.apache.directory.shared.ldap.name.LdapDN.rdnOidToName( > LdapDN.java > :1402) > at org.apache.directory.shared.ldap.name.LdapDN.normalize(LdapDN.java > :1459) > at > org.apache.directory.server.core.normalization.NormalizationService.add( > NormalizationService.java:116) > at org.apache.directory.server.core.interceptor.InterceptorChain.add( > InterceptorChain.java:708) > at org.apache.directory.server.core.partition.PartitionNexusProxy.add= ( > PartitionNexusProxy.java:341) > at org.apache.directory.server.core.partition.PartitionNexusProxy.add= ( > PartitionNexusProxy.java:329) > at > org.apache.directory.server.core.jndi.ServerDirContext.createSubcontext( > ServerDirContext.java:428) > at > org.apache.directory.server.core.jndi.ServerDirContext.createSubcontext( > ServerDirContext.java:374) > at org.apache.directory.server.jndi.ServerContextFactory.addFileEntry= ( > ServerContextFactory.java:258) > at org.apache.directory.server.jndi.ServerContextFactory.loadLdifs( > ServerContextFactory.java:383) > at org.apache.directory.server.jndi.ServerContextFactory.afterStartup= ( > ServerContextFactory.java:209) > at org.apache.directory.server.core.DefaultDirectoryService.startup( > DefaultDirectoryService.java:268) > at > > org.apache.directory.server.core.jndi.AbstractContextFactory.getInitialCo= ntext > (AbstractContextFactory.java:123) > > > Does anyone know of a work around for this? > > Thanks... > --=20 Regards, Cordialement, Emmanuel L=E9charny www.iktek.com ------=_Part_1824_25608201.1178090420724--