Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-83222

The space character in the module filename causes error

    Details

      Description

      Description

      If custom module name includes space character (for example, module.test -1.0.0.jar). It can be deployed, but throws error after restarting the server.

      Reproduction Steps

      1. Build master(id: 31406d8b8b6b3c9a7f20757452b0f982e1b82507) with annotate/delete LPS-82120's fix. Because no lpkg file is in liferay-home\osgi\marketplace and this will block the test.
      2. Start master and then deploy module.test -1.0.0.jar
      3. Observe it is deployed successfully
      4. Restart the server
      Expected Result: No error occurs.
      Actual Result: The following error occurs.

      [main] INFO osgi.logging.org_eclipse_osgi - ServiceEvent REGISTERED {org.eclipse.osgi.service.debug.DebugOptionsListener}={service.ranking=2147483647, listener.symbolic.name=org.eclipse.osgi, service.pid=0.org.eclipse.osgi.container.ModuleContainer, service.vendor=Eclipse.org - Equinox, service.id=26, service.bundleid=0, service.scope=singleton}
      ERROR: Error calling analyzer "org.osgi.service.indexer.impl.BundleAnalyzer" on resource C:/Users/liferay/AppData/Local/Temp/552555893803207031/module.test -1.0.0.jar. [Illegal character in path at index 11: module.test -1.0.0.jar]
      java.lang.IllegalArgumentException: Illegal character in path at index 11: module.test -1.0.0.jar
      at java.net.URI.create(URI.java:852)
      at java.net.URI.resolve(URI.java:1036)
      at org.osgi.service.indexer.impl.BundleAnalyzer.calculateLocation(BundleAnalyzer.java:253)
      at org.osgi.service.indexer.impl.BundleAnalyzer.doContent(BundleAnalyzer.java:157)
      at org.osgi.service.indexer.impl.BundleAnalyzer.analyzeResource(BundleAnalyzer.java:69)
      at org.osgi.service.indexer.impl.RepoIndex.generateResource(RepoIndex.java:259)
      at org.osgi.service.indexer.impl.RepoIndex.index(RepoIndex.java:180)
      at com.liferay.portal.target.platform.indexer.internal.TargetPlatformIndexer.index(TargetPlatformIndexer.java:138)
      at com.liferay.portal.target.platform.indexer.internal.TargetPlatformIndexerUtil.indexTargetPlatform(TargetPlatformIndexerUtil.java:94)
      at com.liferay.portal.lpkg.deployer.internal.TargetPlatformIndexerProcessCallable.call(TargetPlatformIndexerProcessCallable.java:47)
      at com.liferay.portal.lpkg.deployer.internal.TargetPlatformIndexerProcessCallable.call(TargetPlatformIndexerProcessCallable.java:29)
      at com.liferay.petra.process.local.LocalProcessLauncher.main(LocalProcessLauncher.java:129)
      Caused by: java.net.URISyntaxException: Illegal character in path at index 11: module.test -1.0.0.jar
      at java.net.URI$Parser.fail(URI.java:2848)
      at java.net.URI$Parser.checkChars(URI.java:3021)
      at java.net.URI$Parser.parseHierarchical(URI.java:3105)
      at java.net.URI$Parser.parse(URI.java:3063)
      at java.net.URI.<init>(URI.java:588)
      at java.net.URI.create(URI.java:850)
      ... 11 more

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 13 weeks, 5 days ago

                Packages

                Version Package
                7.0.0 DXP FP55
                7.0.0 DXP SP9
                7.0.X
                7.1.10 DXP FP1
                7.1.1 CE GA2
                7.1.10.1 SP1
                7.1.X
                Master