You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2023/07/20 05:49:00 UTC

[jira] [Assigned] (FELIX-6619) Configadmin interpolator can run into a StackOverflow

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

Carsten Ziegeler reassigned FELIX-6619:
---------------------------------------

    Assignee: Carsten Ziegeler

> Configadmin interpolator can run into a StackOverflow
> -----------------------------------------------------
>
>                 Key: FELIX-6619
>                 URL: https://issues.apache.org/jira/browse/FELIX-6619
>             Project: Felix
>          Issue Type: Task
>          Components: Configuration Admin
>    Affects Versions: configadmin-interpolation-plugin-1.2.6
>            Reporter: Joerg Hoh
>            Assignee: Carsten Ziegeler
>            Priority: Major
>             Fix For: configadmin-interpolation-plugin-1.2.8
>
>
> If you have an error in the configuration settings, the interpolator can run into a stack overflow caused by endless recursion.
> configuration: 
> * environment variable {{foo = $[env:foo]}}
> * OSGI configuration: {{$[env:foo]}}
> {noformat}
> [FelixLogListener] LogService.org.apache.felix.configadmin Service [org.apache.felix.cm.ConfigurationAdmin,36, [org.osgi.service.cm.ConfigurationAdmin]] Unexpected problem calling configuration plugin [org.osgi.service.cm.ConfigurationPlugin, id=20, bundle=27/reference:file:/opt/aem/launcher/cache/org/apache/felix/org.apache.felix.configadmin.plugin.interpolation/1.2.6/org.apache.felix.configadmin.plugin.interpolation-1.2.6.jar] (java.lang.StackOverflowError)
> java.lang.StackOverflowError: null
> 	at java.base/java.lang.String.indexOf(String.java:1725)
> 	at java.base/java.lang.String.indexOf(String.java:1691)
> 	at org.apache.felix.configadmin.plugin.interpolation.Interpolator.getNextStartMarker(Interpolator.java:46)
> 	at org.apache.felix.configadmin.plugin.interpolation.Interpolator.getMarkerBoundaries(Interpolator.java:63)
> 	at org.apache.felix.configadmin.plugin.interpolation.Interpolator.replace(Interpolator.java:116)
> 	at org.apache.felix.configadmin.plugin.interpolation.Interpolator.replace(Interpolator.java:147)
> 	at org.apache.felix.configadmin.plugin.interpolation.Interpolator.replace(Interpolator.java:159)
> {noformat}
> We should have a limit how deep this recursion can go.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)