Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-775

Cannot patch EAP once Docs are excluded from installation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.0.0.DR11
    • 7.0.0.DR8
    • Installer, Patching
    • None
    • Hide

      # Either use installer.jar or remove the docs directory manually

      unzip -q jboss-eap-7.0.0.DR8.zip

      # Remove docs directory manually

      rm -rf jboss-eap-7.0/docs

      # Patch the eap

      bash jboss-eap-7.0/bin/jboss-cli.sh command="patch apply --override-all dr8_to_dr8x.zip"
      java.io.FileNotFoundException: /home/pkremens/workspace/jboss-eap-7.0/docs/schema/saml-schema-authn-context-xmldsig-2.0.xsd (No such file or directory)
      Show
      # Either use installer.jar or remove the docs directory manually unzip -q jboss-eap-7.0.0.DR8.zip # Remove docs directory manually rm -rf jboss-eap-7.0/docs # Patch the eap bash jboss-eap-7.0/bin/jboss-cli.sh command="patch apply --override-all dr8_to_dr8x.zip" java.io.FileNotFoundException: /home/pkremens/workspace/jboss-eap-7.0/docs/schema/saml-schema-authn-context-xmldsig-2.0.xsd (No such file or directory)

      EAP installer allows user to exclude some packs from installation. Docs directory is one of them. If user choose to do so, $JBOSS_HOME/docs directory is not present in distribution.

      Trying to apply a patch (contains changes with docs files) on such a distribution gives me:

      java.io.FileNotFoundException: /home/pkremens/workspace/jboss-eap-7.0/docs/schema/saml-schema-authn-context-xmldsig-2.0.xsd (No such file or directory)
      

      This could block customers, who are using installer to get EAP, from consuming the patches for CP releases in future.

      Patch was generated using:
      https://github.com/jbossas/patch-gen

      dr8_to_dr8x.zip patch.xml:

      <?xml version="1.0" ?>
      
      <patch xmlns="urn:jboss:patch:1.0" id="dr8_to_dr8x">
          <description>
              No description available
          </description>
          <upgrade name="EAP" version="7.0.0.Alpha1" to-version="7.0.0.Alpha1"/>
          <element id="layer-base-dr8_to_dr8x">
              <description>
                  No description available
              </description>
              <upgrade name="base"/>
          </element>
          <misc-files>
              <added path="docs/schema/saml-schema-authn-context-xmldsig-2.1.xsd" hash="25d2e47a02d248101af86cff07daf9d51d8da379"/>
              <updated path="docs/schema/saml-schema-ecp-2.0.xsd" hash="97984434c30816939c0f64b9388dc75d977a3b17" new-hash="fa7e234444b3c5d9ede81b4799dfaff8632d987a"/>
              <removed path="docs/schema/saml-schema-authn-context-xmldsig-2.0.xsd" hash="25d2e47a02d248101af86cff07daf9d51d8da379"/>
          </misc-files>
      </patch>
      

              olubyans@redhat.com Alexey Loubyansky
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: