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 Lécharny (Jira)" <ji...@apache.org> on 2026/09/29 07:19:00 UTC
[jira] [Commented] (DIRAPI-490) Never let an unchecked exception escape the OpenLdapSchemaParser - #335
[ https://issues.apache.org/jira/browse/DIRAPI-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18120585#comment-18120585 ]
Emmanuel Lécharny commented on DIRAPI-490:
------------------------------------------
Found by Claude
> Never let an unchecked exception escape the OpenLdapSchemaParser - #335
> -----------------------------------------------------------------------
>
> Key: DIRAPI-490
> URL: https://issues.apache.org/jira/browse/DIRAPI-490
> Project: Directory Client API
> Issue Type: Bug
> Affects Versions: 2.1.8
> Reporter: Emmanuel Lécharny
> Priority: Minor
> Fix For: 2.1.9
>
>
> A schema description with an oversized *SYNTAX* length or rule *ID* made the parser throw a _NumberFormatException_. That exception escaped _loadSchema()_, because the public parse methods only converted checked exceptions to _ParseException_. The parser now reports these inputs as a normal _ParseException_, and so does any other unexpected runtime error inside it.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org