Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1134735

Summary: [QE] (6.4.0) Some module JARs are not crippled by patching subsystem
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Jan Martiska <jmartisk>
Component: PatchingAssignee: baranowb <bbaranow>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Martiska <jmartisk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbaranow, istudens, jason.greene, jawilson, jdoyle, jkudrnac, kconner, kkhan, msimka, nziakova, olubyans
Target Milestone: DR6   
Target Release: EAP 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1136365 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1136365    

Description Jan Martiska 2014-08-28 08:14:52 UTC
Description of problem:
After installation of 6.3.1.CR1 patch on 6.3.0, we noticed that the this jar:

modules/system/layers/base/org/jboss/resteasy/resteasy-spring/main/bundled/resteasy-spring-jar/resteasy-spring-2.3.8.Final-redhat-3.jar

does not get crippled (its MD5 sum stays the same after patch installation). It might be because patching subsystem doesn't expect jars being under two subdirectories under the 'main' directory (?)

Steps to Reproduce:
1. Install this patch: http://download.devel.redhat.com/devel/candidates/JBEAP/JBEAP-6.3.1.CP.CR1/jboss-eap-6.3.1.CP.CR1-patch.zip on EAP 6.3.0.

Actual results:
resteasy-spring-2.3.8.Final-redhat-3.jar is not crippled (even though this module was overlaid by the patch) and JRE is able to load classes from it

Expected results:
all jars in overlaid modules should be unusable

Additional info:
For a quick check whether JRE is able to load classes from a JAR, you can use this groovy command:

groovysh -cp resteasy-spring-2.3.8.Final-redhat-3.jar "Class.forName('javax.ws.rs.core.MediaTypeEditor')"

where javax.ws.rs.core.MediaTypeEditor is a class included in the jar. If the JRE is unable to load the class, you will get a ClassNotFoundException.

Comment 2 Jan Martiska 2014-11-10 14:36:15 UTC
Works now correctly in EAP 6.4.0.DR6.