You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2008/07/15 02:37:31 UTC
[jira] Created: (DIRSHARED-15) Create a Fast DN parser handling
simple DNS
Create a Fast DN parser handling simple DNS
--------------------------------------------
Key: DIRSHARED-15
URL: https://issues.apache.org/jira/browse/DIRSHARED-15
Project: Directory Shared
Issue Type: Improvement
Affects Versions: 0.9.10
Reporter: Emmanuel Lecharny
Fix For: 0.9.11
The idea is to create a parser which only handle simple DNs, containing only ascii chars, no special chars, and no special cases like surrounding double quotes.
If we meet one of those special charss, we throw an exception and fall back to the complex parser.
We may gain some performance doing so.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DIRSHARED-15) Create a Fast DN parser handling
simple DNs
Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Seelmann updated DIRSHARED-15:
-------------------------------------
Summary: Create a Fast DN parser handling simple DNs (was: Create a Fast DN parser handling simple DNS )
> Create a Fast DN parser handling simple DNs
> -------------------------------------------
>
> Key: DIRSHARED-15
> URL: https://issues.apache.org/jira/browse/DIRSHARED-15
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.10
> Reporter: Emmanuel Lecharny
> Fix For: 1.0.0
>
>
> The idea is to create a parser which only handle simple DNs, containing only ascii chars, no special chars, and no special cases like surrounding double quotes.
> If we meet one of those special charss, we throw an exception and fall back to the complex parser.
> We may gain some performance doing so.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSHARED-15) Create a Fast DN parser handling
simple DNs
Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695534#action_12695534 ]
Stefan Seelmann commented on DIRSHARED-15:
------------------------------------------
Hi Emmanuel, have you alredy started with this? Otherwise I would like to try to work on this issues.
> Create a Fast DN parser handling simple DNs
> -------------------------------------------
>
> Key: DIRSHARED-15
> URL: https://issues.apache.org/jira/browse/DIRSHARED-15
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.10
> Reporter: Emmanuel Lecharny
> Fix For: 1.0.0
>
>
> The idea is to create a parser which only handle simple DNs, containing only ascii chars, no special chars, and no special cases like surrounding double quotes.
> If we meet one of those special charss, we throw an exception and fall back to the complex parser.
> We may gain some performance doing so.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DIRSHARED-15) Create a Fast DN parser handling
simple DNs
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny updated DIRSHARED-15:
---------------------------------------
Fix Version/s: (was: 1.0.0-RC1)
0.9.18
> Create a Fast DN parser handling simple DNs
> -------------------------------------------
>
> Key: DIRSHARED-15
> URL: https://issues.apache.org/jira/browse/DIRSHARED-15
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.10
> Reporter: Emmanuel Lecharny
> Assignee: Stefan Seelmann
> Fix For: 0.9.18
>
>
> The idea is to create a parser which only handle simple DNs, containing only ascii chars, no special chars, and no special cases like surrounding double quotes.
> If we meet one of those special charss, we throw an exception and fall back to the complex parser.
> We may gain some performance doing so.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (DIRSHARED-15) Create a Fast DN parser handling
simple DNs
Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Seelmann resolved DIRSHARED-15.
--------------------------------------
Resolution: Fixed
Assignee: Stefan Seelmann
Fixed a while ago:
http://svn.apache.org/viewvc?view=rev&revision=764073
http://svn.apache.org/viewvc?view=rev&revision=765066
> Create a Fast DN parser handling simple DNs
> -------------------------------------------
>
> Key: DIRSHARED-15
> URL: https://issues.apache.org/jira/browse/DIRSHARED-15
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.10
> Reporter: Emmanuel Lecharny
> Assignee: Stefan Seelmann
> Fix For: 1.0.0-RC1
>
>
> The idea is to create a parser which only handle simple DNs, containing only ascii chars, no special chars, and no special cases like surrounding double quotes.
> If we meet one of those special charss, we throw an exception and fall back to the complex parser.
> We may gain some performance doing so.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSHARED-15) Create a Fast DN parser handling
simple DNs
Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695538#action_12695538 ]
Alex Karasulu commented on DIRSHARED-15:
----------------------------------------
I don't think he has. He's been in front of me all day working on the client API. I think it's safe to take this one.
> Create a Fast DN parser handling simple DNs
> -------------------------------------------
>
> Key: DIRSHARED-15
> URL: https://issues.apache.org/jira/browse/DIRSHARED-15
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.10
> Reporter: Emmanuel Lecharny
> Fix For: 1.0.0
>
>
> The idea is to create a parser which only handle simple DNs, containing only ascii chars, no special chars, and no special cases like surrounding double quotes.
> If we meet one of those special charss, we throw an exception and fall back to the complex parser.
> We may gain some performance doing so.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSHARED-15) Create a Fast DN parser handling
simple DNs
Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12699884#action_12699884 ]
Stefan Seelmann commented on DIRSHARED-15:
------------------------------------------
I added two new DN parsers:
1) An initial version of a fast parser (class FastLdapDnParser) that handles simple DNs. More precisely is handles the following cases:
- only single RDNs are handled,
- attribute type: strings and OIDs but not the RFC1779 "oid." prefix
- values: as soon as a special character occurs ( '\' '+' '#' '"' ) an TooComplexExeption is thrown
2) An Antlr based DN parser that is able to handle complex DNs. Atm it contains some workarounds but it passes all unit tests.
The LdapDnParser class is now just a facade, that delegates parsing to the FastLdapDnParser and in case of an TooComplexException to the ComplexLdapDnParser.
Next we need to review all the tests and need to cleanup the LdapDN, Rdn and AttributeTypeAndValue classes. There are also some open issues (DIRSERVER-1311, DIRSERVER-1285, DIRSERVER-1247) with DN handling.
> Create a Fast DN parser handling simple DNs
> -------------------------------------------
>
> Key: DIRSHARED-15
> URL: https://issues.apache.org/jira/browse/DIRSHARED-15
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.10
> Reporter: Emmanuel Lecharny
> Fix For: 1.0.0
>
>
> The idea is to create a parser which only handle simple DNs, containing only ascii chars, no special chars, and no special cases like surrounding double quotes.
> If we meet one of those special charss, we throw an exception and fall back to the complex parser.
> We may gain some performance doing so.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSHARED-15) Create a Fast DN parser handling
simple DNS
Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12694306#action_12694306 ]
Stefan Seelmann commented on DIRSHARED-15:
------------------------------------------
At ApacheCon we discussed to rewrite the complex parser using Antlr because we have some issues with the current parser, see DIRSERVER-1311 and DIRSERVER-1285.
> Create a Fast DN parser handling simple DNS
> --------------------------------------------
>
> Key: DIRSHARED-15
> URL: https://issues.apache.org/jira/browse/DIRSHARED-15
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.10
> Reporter: Emmanuel Lecharny
> Fix For: 1.0.0
>
>
> The idea is to create a parser which only handle simple DNs, containing only ascii chars, no special chars, and no special cases like surrounding double quotes.
> If we meet one of those special charss, we throw an exception and fall back to the complex parser.
> We may gain some performance doing so.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSHARED-15) Create a Fast DN parser handling
simple DNs
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695282#action_12695282 ]
Emmanuel Lecharny commented on DIRSHARED-15:
--------------------------------------------
Here is a wiki page describing the data structure used for DN :
http://cwiki.apache.org/confluence/display/DIRxSRVx11/DN+Parsing
> Create a Fast DN parser handling simple DNs
> -------------------------------------------
>
> Key: DIRSHARED-15
> URL: https://issues.apache.org/jira/browse/DIRSHARED-15
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.10
> Reporter: Emmanuel Lecharny
> Fix For: 1.0.0
>
>
> The idea is to create a parser which only handle simple DNs, containing only ascii chars, no special chars, and no special cases like surrounding double quotes.
> If we meet one of those special charss, we throw an exception and fall back to the complex parser.
> We may gain some performance doing so.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DIRSHARED-15) Create a Fast DN parser handling
simple DNS
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny updated DIRSHARED-15:
---------------------------------------
Fix Version/s: (was: 0.9.11)
1.0.0
Not urgent. Will be done for 1.0.
(BTW, DNS -> DNs, nothing to do with the DNS service :)
> Create a Fast DN parser handling simple DNS
> --------------------------------------------
>
> Key: DIRSHARED-15
> URL: https://issues.apache.org/jira/browse/DIRSHARED-15
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.10
> Reporter: Emmanuel Lecharny
> Fix For: 1.0.0
>
>
> The idea is to create a parser which only handle simple DNs, containing only ascii chars, no special chars, and no special cases like surrounding double quotes.
> If we meet one of those special charss, we throw an exception and fall back to the complex parser.
> We may gain some performance doing so.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSHARED-15) Create a Fast DN parser handling
simple DNs
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695542#action_12695542 ]
Emmanuel Lecharny commented on DIRSHARED-15:
--------------------------------------------
I have started something a while ago, it should be somewhere in my 35 workspaces ;)
Ok, just consider that I've done nothing, it's probably a better idea. I will have a look to it though this week-end, just to avoid duplication of effort.
The wiki page is just a page I drafted one year ago to explain the LdapDN data structure.
> Create a Fast DN parser handling simple DNs
> -------------------------------------------
>
> Key: DIRSHARED-15
> URL: https://issues.apache.org/jira/browse/DIRSHARED-15
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.10
> Reporter: Emmanuel Lecharny
> Fix For: 1.0.0
>
>
> The idea is to create a parser which only handle simple DNs, containing only ascii chars, no special chars, and no special cases like surrounding double quotes.
> If we meet one of those special charss, we throw an exception and fall back to the complex parser.
> We may gain some performance doing so.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.