You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Shawn McKinney (Jira)" <ji...@apache.org> on 2023/09/01 20:31:00 UTC

[jira] [Resolved] (FC-317) Infinite loop in property interpolation

     [ https://issues.apache.org/jira/browse/FC-317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shawn McKinney resolved FC-317.
-------------------------------
    Resolution: Fixed

> Infinite loop in property interpolation
> ---------------------------------------
>
>                 Key: FC-317
>                 URL: https://issues.apache.org/jira/browse/FC-317
>             Project: FORTRESS
>          Issue Type: Improvement
>    Affects Versions: 2.0.8
>            Reporter: Shawn McKinney
>            Assignee: Shawn McKinney
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> This has been a problem with how fortress interpolates between the slapd and build.properties files into fortress.properties.
> The same value is used for both, e.g.:
> ```fortress.properties.src
> enable.ldap.ssl.debug=${enable.ldap.ssl.debug}
> trust.store=${trust.store}
> trust.store.password=${trust.store.password}
> trust.store.onclasspath=${trust.store.onclasspath}
> ```
> If when the ant task performs interpolation, it doesn't find a value to use in the slapd or build.properties we get this error at runtime when the commons configuration utility is used to read it:
> ```
> java.lang.IllegalStateException: Infinite loop in property interpolation of ${trust.store.onclasspath}: trust.store.onclasspath                  
>  ```
> So, if the user doesn't get the property set, it will cause this infinite loop causing the program to terminate.  
> This improvement will ensure that the name of the property that ant uses to interpolate differs from what's used by commons config



--
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