directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSHARED-32) Create Antlr based DN parser
Date Sat, 04 Apr 2009 12:21:13 GMT

    [ https://issues.apache.org/jira/browse/DIRSHARED-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695727#action_12695727
] 

Emmanuel Lecharny commented on DIRSHARED-32:
--------------------------------------------

Not necessarily. What we agreed on was that we should have a 2 steps parser :
- during the first step, wse try to parse the DN considering that it's using only ASCII chars,
with no special chars and LDAP V2 syntax.
- if we get an exception during this step, then we try to decode the DN using another parser,
which covers all the possible cases.

We expect that the first parser will cover 99% of all the parsed DN, and that it will be faster
than the current parser. Of course, when we will fall into the other parser, then the cost
will increase a lot.

The first step might covers multiple AVA in RDN (ie cn=tom+sn=smith), but not much more (ie,
forget about quotes surrounding the AVAs, or special chars in the middle of the DN)

Last, not least, the first parser must be hand written, in order to be as fast as possible.


> Create Antlr based DN parser
> ----------------------------
>
>                 Key: DIRSHARED-32
>                 URL: https://issues.apache.org/jira/browse/DIRSHARED-32
>             Project: Directory Shared
>          Issue Type: Sub-task
>            Reporter: Stefan Seelmann
>            Assignee: Stefan Seelmann
>
> At ApacheCon we discussed to rewrite the complex DN parser using Antlr because we have
some issues with the current parser, see DIRSERVER-1311 and DIRSERVER-1285.

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


Mime
View raw message