Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-896

Cannot patch EAP once Docs are excluded from installation

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Blocker
    • Resolution: Done
    • 2.0.0.Beta1
    • 2.0.0.Beta6
    • 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)

    Description

      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>
      

      Attachments

        Issue Links

          Activity

            People

              olubyans@redhat.com Oleksiy Lubyanskyy
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: