Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-14792

Managed paths metadata fail to parse when entry contains whitespace

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • fuse-7.8-GA
    • fuse-7.7-GA
    • Fuse EAP
    • False
    • False
    • % %
    • build5
    • Undefined
    • Hide

      Start with a fresh Fuse 7.7.0 on EAP 7.2.7 installation.
      Download attached fuse-eap-distro-7.7.0.fuse-770011-hf1.zip
      cp fuse-eap-distro-7.7.0.fuse-770011-hf1.zip ${JBOSS_HOME}
      cd ${JBOSS_HOME}
      bin/fusepatch.sh --add file:fuse-eap-distro-7.7.0.fuse-770011-hf1.zip --one-off fuse-eap-distro-7.7.0.fuse-770011-redhat-00004
      bin/fusepatch.sh --update fuse-eap-distro-7.7.0.fuse-770011-hf1

      Its the last command that will fail with the error provided in the description.

      Show
      Start with a fresh Fuse 7.7.0 on EAP 7.2.7 installation. Download attached fuse-eap-distro-7.7.0.fuse-770011-hf1.zip cp fuse-eap-distro-7.7.0.fuse-770011-hf1.zip ${JBOSS_HOME } cd ${JBOSS_HOME } bin/fusepatch.sh --add file:fuse-eap-distro-7.7.0.fuse-770011-hf1.zip --one-off fuse-eap-distro-7.7.0.fuse-770011-redhat-00004 bin/fusepatch.sh --update fuse-eap-distro-7.7.0.fuse-770011-hf1 Its the last command that will fail with the error provided in the description.

    Description

      bin/fusepatch on EAP fails to install a hot fix patch on top of Fuse 7.7 on EAP 7.2.7.
      While the first command succeeds, e.g.

      bin/fusepatch.sh --add file:fuse-eap-distro-7.7.0.fuse-770011-hf1.zip --one-off fuse-eap-distro-7.7.0.fuse-770011-redhat-00004

      the second command
      bin/fusepatch.sh --update fuse-eap-distro-7.7.0.fuse-770011-hf1
      fails with

      Error executing command: java.lang.IllegalArgumentException: Invalid name part: etcdf c library license - copyright.html [fuse-eap-distro-7.7.0.fuse-770011-redhat-00004
      	at org.wildfly.extras.patch.utils.IllegalArgumentAssertion.assertTrue(IllegalArgumentAssertion.java:56) [fuse-patch-core-3.2.0.fuse-770011-redhat-00003.jar:]
      	at org.wildfly.extras.patch.PatchId.<init>(PatchId.java:76) [fuse-patch-core-3.2.0.fuse-770011-redhat-00003.jar:]
      	at org.wildfly.extras.patch.PatchId.fromString(PatchId.java:66) [fuse-patch-core-3.2.0.fuse-770011-redhat-00003.jar:]
      	at org.wildfly.extras.patch.ManagedPath.fromString(ManagedPath.java:55) [fuse-patch-core-3.2.0.fuse-770011-redhat-00003.jar:]
      	at org.wildfly.extras.patch.server.AbstractServer.readManagedPaths(AbstractServer.java:452) [fuse-patch-core-3.2.0.fuse-770011-redhat-00003.jar:]
      	at org.wildfly.extras.patch.server.AbstractServer.applySmartPatch(AbstractServer.java:239) [fuse-patch-core-3.2.0.fuse-770011-redhat-00003.jar:]
      	at org.wildfly.extras.patch.internal.DefaultPatchTool.installInternal(DefaultPatchTool.java:121) [fuse-patch-core-3.2.0.fuse-770011-redhat-00003.jar:]
      	at org.wildfly.extras.patch.internal.DefaultPatchTool.update(DefaultPatchTool.java:85) [fuse-patch-core-3.2.0.fuse-770011-redhat-00003.jar:]
      	at org.wildfly.extras.patch.internal.Main.run(Main.java:156) [fuse-patch-core-3.2.0.fuse-770011-redhat-00003.jar:]
      	at org.wildfly.extras.patch.internal.Main.mainInternal(Main.java:74) [fuse-patch-core-3.2.0.fuse-770011-redhat-00003.jar:]
      	at org.wildfly.extras.patch.internal.Main.main(Main.java:55) [fuse-patch-core-3.2.0.fuse-770011-redhat-00003.jar:]
      	at org.jboss.modules.Module.run(Module.java:352) [jboss-modules.jar:1.8.8.Final-redhat-00001]
      	at org.jboss.modules.Module.run(Module.java:320) [jboss-modules.jar:1.8.8.Final-redhat-00001]
      	at org.jboss.modules.Main.main(Main.java:593) [jboss-modules.jar:1.8.8.Final-redhat-00001]
      

      Attachments

        Issue Links

          Activity

            People

              tdiesler@redhat.com Thomas Diesler
              rhn-support-tmielke Torsten Mielke
              Emil Cervenan Emil Cervenan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: