Bug 1446458

Summary: [GSS](6.4.z) Patching EAP 6.x returns only "Patching Exception" rather than providing the actual reason for failure
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Harshada <harshada>
Component: CLI, PatchingAssignee: Radovan STANCEL <rstancel>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kremensky <pkremens>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.14CC: bmaxwell, brian.stansberry, jbilek, jboss-set, rstancel
Target Milestone: CR1   
Target Release: EAP 6.4.16   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-22 09:20:37 UTC 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: 1434495    

Description Harshada 2017-04-28 05:53:02 UTC
Description of problem: If you try to apply a patch on a wrong or unexpected version of EAP 6.4, the CLI command returns with only "Patching Exception" message rather than a detailed or verbose message regarding what version was expected and what version was encountered.  For example, if you try to apply CP09 on EAP 6.4.9, it returns with just "Patching Exception " rather than "Patch does not apply - expected (a.b.c.GA), but was (x.y.z.GA)"


Version-Release number of selected component (if applicable):


How reproducible: Always


Steps to Reproduce:
1.Take a Jboss EAP 6.4.9 or higher installation.
2.Via CLI, try to apply CP09 or any CP version lower than the actual EAP 6.4.x version


Actual results:
Patching Exception

Expected results:
JBAS016840: Patch does not apply - expected (6.4.x.GA), but was (6.4.y.GA) 


Additional info: A more detailed information regarding the failure would be convenient than just the Patching Exception

Comment 9 Jiří Bílek 2017-06-09 10:07:43 UTC
Exception on EAP 6.4.15 and older:
patching exception

Exception on EAP 6.4.16.CP.CR1:
JBAS016952: The patch does not contain metadata for currently installed EAP version 6.4.16.GA

Verified with EAP 6.4.16.CP.CR1

Comment 10 Petr Penicka 2017-06-22 09:20:37 UTC
Released on June 20 2017 as part of the EAP 6.4.16 maintenance release.