[jira] Closed: (DIRSERVER-297) NormalizationService is failing to
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > [jira] Closed: (DIRSERVER-297) NormalizationService is failing to




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Closed: (DIRSERVER-297) NormalizationService is failing to  
Emmanuel Lecharny (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-21-07 12:11 PM


[ https://issues.apache.org/jira/brow...ls:all-tabpanel ]

Emmanuel Lecharny closed DIRSERVER-297.
---------------------------------------


Closing all issues created in 2005 and before which are marked resolved

> NormalizationService is failing to parse escaped names
> ------------------------------------------------------
>
>                 Key: DIRSERVER-297
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-297
>             Project: Directory ApacheDS
>          Issue Type: Bug
>            Reporter: Giamma
>         Assigned To: Alex Karasulu
>
> I wrote a custom partition to extract data from our oracle database.
> Some of the names returned from out db needs to be escaped because they ha
ve special chars like: "," "/" and "="
> This is done using LdapName.escapeAttributeValue().
> Unfortunately the DnParser (in NormalizationService) is not doing the righ
t thing when processing these escaped names.
> I had to change the code in NormalizationService to still call the parser 
(to check invalid DN syntax) but I skipped
> using the text returned by the parser because it would remove spaces after
 an escaped ","
> Let's say I have a RDN like this:
> "ou=some test, something else"
> After I escaped it it wil be like this:
> "ou=some test\\, something else"
> The parser will remove the space after the escaped ","
> "ou=some test\\,something else"
> And that breaks the code in my custom partition because it's not finding t
he right object.
> Here is the fix I made.
> But it's just an hack. I think the problem is in the DnParser. But I do no
t have the source for that.
>  protected void process( NextInterceptor nextInterceptor, Delete call ) th
rows NamingException
>     {
>         synchronized( parser )
>         {
>             // call.getName( parser.parse( call.getName().toString() ) );
>             // call it anyway to catch invalid DN syntax
>             parser.parse( call.getName().toString() );
>         }
>         super.process( nextInterceptor, call );
>     }

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:05 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register