Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10043

Naming OSGi configs with dashes breaks the OSGi installer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Installer Configuration Factory 1.2.4, Installer Configuration Factory 1.3.0, Installer Configuration Factory 1.3.2
    • Installer
    • None

    Description

      If you name OSGi configuration files with many dashes in the name it can break the OSGi installer module causing this error [1].

      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)
      

      Attachments

        Activity

          People

            rombert Robert Munteanu
            akanksha88 Akanksha Jain
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1.5h
                1.5h