Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21197

Bad XAR entries should be skipped

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 15.7-rc-1
    • 15.5.1, 15.6
    • Application
    • None
    • Windows 11 Pro, Chrome 115, using a local instance of XWiki 15.5.1, Jetty/HSQLDB
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce

      1. Start an instance of XWiki 15.5.1 or 15.6
      2. Observe the XWiki console
      3. After start, observe the entries from the Drawer

      Expected results

      No error is displayed on the logs.

      The Application Index is displayed in the Drawer.

      Actual results

      The Application Index is missing from the Drawer.

      When starting the XWiki instance, the following error is displayed in XWiki console:

      2023-08-01 17:23:22,552 [main] ERROR arInstalledExtensionRepository - Failed to parse extension [org.xwiki.platform:xwiki-platform-application-ui/15.5.1]
      java.lang.IllegalArgumentException: Invalid locale format: pt-BR
              at org.apache.commons.lang3.LocaleUtils.parseLocale(LocaleUtils.java:268)
              at org.apache.commons.lang3.LocaleUtils.toLocale(LocaleUtils.java:348)
              at org.xwiki.xar.internal.XarUtils.getReference(XarUtils.java:120)
              at org.xwiki.xar.XarPackage.readEntry(XarPackage.java:270)
              at org.xwiki.xar.XarPackage.read(XarPackage.java:226)
              at org.xwiki.xar.XarPackage.<init>(XarPackage.java:161)
              at org.xwiki.extension.xar.internal.repository.XarInstalledExtension.<init>(XarInstalledExtension.java:47)
              at org.xwiki.extension.xar.internal.repository.XarInstalledExtensionRepository.addCacheXarExtension(XarInstalledExtensionRepository.java:186)
              at org.xwiki.extension.xar.internal.repository.XarInstalledExtensionRepository.loadExtensions(XarInstalledExtensionRepository.java:208)
              at org.xwiki.extension.xar.internal.repository.XarInstalledExtensionRepository.initialize(XarInstalledExtensionRepository.java:100)
              at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
              at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:550)
              at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:636)
              at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:329)
              at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:320)
              at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:591)
              at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:540)
              at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:636)
              at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:329)
              at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:320)
              at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:591)
              at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:540)
              at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:636)
              at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:329)
              at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:320)
              at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.getExtensionHandler(DefaultExtensionHandlerManager.java:71)
              at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.initialize(DefaultExtensionHandlerManager.java:152)
              at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:175)
              at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:148)
              at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionDependencyInNamespace(DefaultExtensionInitializer.java:205)
              at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:170)
              at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:148)
              at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionDependencyInNamespace(DefaultExtensionInitializer.java:205)
              at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:170)
              at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:148)
              at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtension(DefaultExtensionInitializer.java:118)
              at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initialize(DefaultExtensionInitializer.java:104)
              at org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initialize(DefaultExtensionInitializer.java:80)
              at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
              at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:550)
              at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:636)
              at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:329)
              at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:320)
              at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:290)
              at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:116)
              at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:1048)
              at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:624)
              at org.eclipse.jetty.server.handler.ContextHandler.contextInitialized(ContextHandler.java:983)
              at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:740)
              at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:392)
              at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1304)
              at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:900)
              at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:306)
              at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:532)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
              at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:40)
              at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:183)
              at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:516)
              at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:151)
              at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:186)
              at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:442)
              at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:58)
              at org.eclipse.jetty.util.Scanner$DiscreteListener.pathAdded(Scanner.java:282)
              at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:836)
              at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:802)
              at org.eclipse.jetty.util.Scanner.scan(Scanner.java:709)
              at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:597)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)
              at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:158)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
              at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:605)
              at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:246)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
              at org.eclipse.jetty.server.Server.start(Server.java:470)
              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)
              at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89)
              at org.eclipse.jetty.server.Server.doStart(Server.java:415)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
              at org.eclipse.jetty.xml.XmlConfiguration.lambda$main$4(XmlConfiguration.java:1872)
              at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
              at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1810)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at org.eclipse.jetty.start.Main.invokeMain(Main.java:229)
              at org.eclipse.jetty.start.Main.start(Main.java:527)
              at org.eclipse.jetty.start.Main.main(Main.java:76)
      

      The issue could not be reproduced on XWiki 15.5, 14.10.14 or 15.6 RC1.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: