Community
Participate
Working Groups
Build Identifier: WTP 3.2 If you go to a Java EE (5 or 6) module's 'Deployment Assembly' preference page -> 'Manifest Entries' tab -> select the 'Add...' button, the list of files that can be added to the MANIFEST file shows .jars that are inside the library directory of the EAR that contains the project. These entries should not be included for EE5 and EE6. Reproducible: Always Steps to Reproduce: 1. Create EAR project (5 or 6) with all default modules 2. Create a java project 3. Open the deployment assembly page for the EAR, and add a reference to the java project (the project will be added to the lib directory) 4. Now open the deployment assembly page of other project (i.e. the web project), go to the manifest entries tab, and click on Add 5. The project you added to the EAR is available to be added as entry to the manifest
Created attachment 170106 [details] Proposed Patch This patch modifies the JEEManifestDiscerner.trimEarHardRefs() method so that .jar references in the EAR's library directory are not added for EE5/EE6 projects.
Chuck, please put up for PMC after you review.
I approve
* Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such. The contents of the EAR's library directory are accessible to modules by default. Thus, .jar files that are in the library directory folder of the EAR shouldn't be included as options that the module can add to its MANIFEST file. * Is there a work-around? If so, why do you believe the work-around is insufficient? No * How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? Tested with UI. * Give a brief technical overview. Who has reviewed this fix? Check if the EAR's version is java EE5/EE6, and if so, .jar references in the EAR's library directory are not included in the list of files that can be added to the MANIFEST file of modules. This patch has been reviewed by Chuck and Jason. * What is the risk associated with this fix? No
Committed to HEAD for WTP 3.2 RC3