[
https://issues.apache.org/jira/browse/DIRKRB-730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16735293#comment-16735293
]
Bolke de Bruin commented on DIRKRB-730:
---------------------------------------
[~seelmann] right you are ;). Fixed the issues and added them as part of the
tests. I use
[https://github.com/krb5/krb5/blob/09c9b7d6f64767429e90ad11a529e6ffa9538043/src/util/profile/prof_parse.c#L74]
as a reference. Comments can happen at any line.
> Unable to parse krb5.conf rules due to java.lang.IndexOutOfBoundsException
> --------------------------------------------------------------------------
>
> Key: DIRKRB-730
> URL: https://issues.apache.org/jira/browse/DIRKRB-730
> Project: Directory Kerberos
> Issue Type: Bug
> Affects Versions: 1.1.1
> Reporter: Bolke de Bruin
> Priority: Major
> Attachments: 0001-Make-sure-multi-line-value-can-be-parsed.patch,
> 0002-Make-sure-multi-line-value-can-be-parsed.patch,
> 0003-Make-sure-multi-line-value-can-be-parsed.patch
>
>
> This is a valid krb5.conf (MIT style):
>
> {code:java}
> [libdefaults]
> default_realm = EXAMPLE.COM
> [realms]
> EXAMPLE.COM = {
> kdc = localhost:88
> auth_to_local = {
> RULE:[2:$1](johndoe)s/^.*$/guest/
> RULE:[2:$1;$2](^.*;admin$)s/;admin$//
> RULE:[2:$2](root)
> DEFAULT
> }
> }
> {code}
> It fails with a "java.lang.IndexOutOfBoundsException : Invalid array range: 1
> to 1" as it doesn't understand that values can be multi-line between "{}".
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)