You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (Jira)" <ji...@apache.org> on 2021/01/08 10:59:00 UTC

[jira] [Resolved] (SLING-10043) Naming OSGi configs with dashes breaks the OSGi installer

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

Robert Munteanu resolved SLING-10043.
-------------------------------------
      Assignee: Robert Munteanu
    Resolution: Fixed

PR https://github.com/apache/sling-org-apache-sling-installer-factory-configuration/pull/6 merged, thanks [~akanksha88]!

> Naming OSGi configs with dashes breaks the OSGi installer
> ---------------------------------------------------------
>
>                 Key: SLING-10043
>                 URL: https://issues.apache.org/jira/browse/SLING-10043
>             Project: Sling
>          Issue Type: Bug
>          Components: Installer
>    Affects Versions: Installer Configuration Factory 1.2.4, Installer Configuration Factory 1.3.0, Installer Configuration Factory 1.3.2
>            Reporter: Akanksha Jain
>            Assignee: Robert Munteanu
>            Priority: Major
>             Fix For: Installer Configuration Factory 1.3.4
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> If you name OSGi configuration files with many dashes in the name it can break the OSGi installer module causing this error [1].
> {code:java}
> 10.09.2020 16:57:40.689 *ERROR* [OsgiInstallerImpl] org.apache.sling.installer.core.impl.OsgiInstallerImpl An unexpected error occured in the installer task. Installer is stopped now!
> java.lang.ArrayIndexOutOfBoundsException: 0
> 	at org.apache.sling.installer.factories.configuration.impl.ConfigUpdateHandler.getMiddleDotSplitIndex(ConfigUpdateHandler.java:135)
> 	at org.apache.sling.installer.factories.configuration.impl.ConfigUpdateHandler.getFactoryPidAndPid(ConfigUpdateHandler.java:115)
> 	at org.apache.sling.installer.factories.configuration.impl.ConfigUpdateHandler.updateFactoryConfig(ConfigUpdateHandler.java:143)
> 	at org.apache.sling.installer.factories.configuration.impl.ConfigUpdateHandler.update(ConfigUpdateHandler.java:87)
> 	at org.apache.sling.installer.factories.configuration.impl.ConfigUpdateHandler.update(ConfigUpdateHandler.java:72)
> 	at org.apache.sling.installer.core.impl.OsgiInstallerImpl.handleResourceUpdaters(OsgiInstallerImpl.java:1640)
> 	at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:272)
> 	at java.lang.Thread.run(Thread.java:748)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)