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

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

XMLWordPrintable

    • 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.
    • 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=...

      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}

              chaowan@redhat.com Chao Wang
              chaowan@redhat.com Chao Wang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: