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

[GSS](7.2.z) WFCORE-4586 - patch apply ... --override-all does not work if layer module is corrupted

    Details

    • Target Release:
    • Steps to Reproduce:
      Hide

      Apply a patch, which creates a layer layer-base-jboss-eap-7.2.2.CP where a particular module has been patched.

      patch apply jboss-eap-7.2.2-patch.zip
      

      Edit one of the patched modules such as this one and add or remove something:

      ./modules/system/layers/base/.overlays/layer-base-jboss-eap-7.2.2.CP/com/fasterxml/jackson/core/jackson-annotations/main/module.xml

      Try to apply a new patch

      [disconnected /] patch apply ../jboss-eap-7.2.3-patch.zip
      Conflicts detected: com.fasterxml.jackson.core.jackson-annotations:main
      Use the --override-all, --override=[] or --preserve=[] arguments in order to resolve the conflict.
      
      [disconnected /] patch apply ../jboss-eap-7.2.3-patch.zip --override-all 
      java.io.SyncFailedException: WFLYPAT0018: copied content does not match expected hash for item: ModuleItem{com.fasterxml.jackson.core.jackson-annotations:main}
      
      [disconnected /] patch apply ../jboss-eap-7.2.3-patch.zip --override-modules 
      java.io.SyncFailedException: WFLYPAT0018: copied content does not match expected hash for item: ModuleItem{com.fasterxml.jackson.core.jackson-annotations:main}
      
      [disconnected /] patch apply ../jboss-eap-7.2.3-patch.zip --override=[com.fasterxml.jackson.core.jackson-annotations:main]
      Conflicts detected: com.fasterxml.jackson.core.jackson-annotations:main
      Use the --override-all, --override=[] or --preserve=[] arguments in order to resolve the conflict.
      
      Show
      Apply a patch, which creates a layer layer-base-jboss-eap-7.2.2.CP where a particular module has been patched. patch apply jboss-eap-7.2.2-patch.zip Edit one of the patched modules such as this one and add or remove something: ./modules/system/layers/base/.overlays/layer-base-jboss-eap-7.2.2.CP/com/fasterxml/jackson/core/jackson-annotations/main/module.xml Try to apply a new patch [disconnected /] patch apply ../jboss-eap-7.2.3-patch.zip Conflicts detected: com.fasterxml.jackson.core.jackson-annotations:main Use the --override-all, --override=[] or --preserve=[] arguments in order to resolve the conflict. [disconnected /] patch apply ../jboss-eap-7.2.3-patch.zip --override-all java.io.SyncFailedException: WFLYPAT0018: copied content does not match expected hash for item: ModuleItem{com.fasterxml.jackson.core.jackson-annotations:main} [disconnected /] patch apply ../jboss-eap-7.2.3-patch.zip --override-modules java.io.SyncFailedException: WFLYPAT0018: copied content does not match expected hash for item: ModuleItem{com.fasterxml.jackson.core.jackson-annotations:main} [disconnected /] patch apply ../jboss-eap-7.2.3-patch.zip --override=[com.fasterxml.jackson.core.jackson-annotations:main] Conflicts detected: com.fasterxml.jackson.core.jackson-annotations:main Use the --override-all, --override=[] or --preserve=[] arguments in order to resolve the conflict.
    • Workaround Description:
      Hide

      Run patch info and try to run a rollback command on everything applied until you get back down to 7.2.0

      patch rollback --patch-id=... --reset-configuration=...

      Show
      Run patch info and try to run a rollback command on everything applied until you get back down to 7.2.0 patch rollback --patch-id=... --reset-configuration=...
    • QE Test Coverage:
      +

      Description

      patch apply ... --override-all does not work if layer module is corrupted

      --override-all and the other overrides seems to work if there is a corruption in the base layer, but if one of the CP layers is corrupt, then the override does not seem to have any effect.

      patch apply ../jboss-eap-7.2.3-patch.zip --override-all
      java.io.SyncFailedException: WFLYPAT0018: copied content does not match expected hash for item: ModuleItem

      {com.fasterxml.jackson.core.jackson-annotations:main}

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  soul2zimate Chao Wang
                  Reporter:
                  bmaxwell Brad Maxwell
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: