Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
15.5.1, 15.6
-
High
-
Trivial
-
N/A
-
N/A
-
Description
When creating a subwiki we always get this warning message:
However, error(s) have been generated during that process and you might want to review them.
Reviewing the wiki creation log shows this error:
Applying [INSTALL] for extension [Application Index Application 15.5.1] on namespace [Math Club] from previous extension(s) [] Invalid locale format: pt-BR class 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.updateCachedXarExtension(XarInstalledExtensionRepository.java:173) at org.xwiki.extension.xar.internal.repository.InstalledExtensionSynchronizer.onEvent(InstalledExtensionSynchronizer.java:113) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:338) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:303) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:354) at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:336) at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:233) at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:181) at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:140) at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246) at org.xwiki.job.AbstractJob.run(AbstractJob.java:223) at org.xwiki.platform.wiki.creationjob.internal.ExtensionInstaller.installExtension(ExtensionInstaller.java:73) at org.xwiki.platform.wiki.creationjob.internal.steps.ProvisionWikiStep.execute(ProvisionWikiStep.java:78) at org.xwiki.platform.wiki.creationjob.internal.WikiCreationJob.runInternal(WikiCreationJob.java:96) at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246) at org.xwiki.job.AbstractJob.run(AbstractJob.java:223) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Successfully applied [INSTALL] for extension [Application Index Application 15.5.1] on namespace [Math Club] from previous extension(s) []
This seems to be related to my comment on https://github.com/xwiki/xwiki-platform/commit/58ccef76fa40c4ffa377780506cf017a2d9ec36d#commitcomment-123027261 .
Attachments
Issue Links
- is duplicated by
-
XWIKI-21271 Create Subwiki has Invalid locale format: pt-BR
- Closed
- relates to
-
XINFRA-392 File with wrong page or locale name pt-BR are created (instead of pt_BR)
- Open
-
XWIKI-21197 Bad XAR entries should be skipped
- Closed