Bug 1032041

Summary: [QE] (6.3.0) NPE in cli is thrown when using preserve, override without parameter
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Martin Simka <msimka>
Component: PatchingAssignee: Emanuel Muckenhuber <emuckenh>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Martiska <jmartisk>
Severity: low Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0CC: crobson, dandread, jason.greene, jawilson, kconner, kkhan, myarboro, olubyans, rlucente, tfonteyn
Target Milestone: DR2   
Target Release: EAP 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-28 15:28:57 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: 1065874    

Description Martin Simka 2013-11-19 12:44:16 UTC
Description of problem:
NPE in cli is thrown when using preserve, override without parameter

Version-Release number of selected component (if applicable):
EAP 6.2.0.CR2

Steps to Reproduce:
1. in jboss-cli run command patch apply <path_to_patch> --preserve or patch apply <path_to_patch> --override

Actual results:
java.lang.NullPointerException
        at org.jboss.as.patching.cli.PatchHandler.createPatchOperationBuilder(PatchHandler.java:353)
        at org.jboss.as.patching.cli.PatchHandler.doHandle(PatchHandler.java:246)
        at org.jboss.as.cli.handlers.CommandHandlerWithHelp.handle(CommandHandlerWithHelp.java:86)
        at org.jboss.as.cli.impl.CommandContextImpl.handle(CommandContextImpl.java:600)
        at org.jboss.as.cli.impl.CommandContextImpl.handleSafe(CommandContextImpl.java:616)
        at org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1204)
        at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:263)
        at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.jboss.modules.Module.run(Module.java:292)
        at org.jboss.modules.Main.main(Main.java:455)


Expected results:
Error message saying that preserve and override requires path as parameter

Comment 1 Carlo de Wolf 2013-11-21 11:15:47 UTC
*** Bug 1032095 has been marked as a duplicate of this bug. ***

Comment 2 JBoss JIRA Server 2013-12-03 14:05:20 UTC
Alexey Loubyansky <alex> updated the status of jira WFLY-2536 to Resolved

Comment 3 JBoss JIRA Server 2013-12-03 14:05:20 UTC
Alexey Loubyansky <alex> made a comment on jira WFLY-2536

This was fixed and merged https://github.com/wildfly/wildfly/commit/30cd3c084b575589fcda8005897f4c18a696f66d

Comment 4 Emanuel Muckenhuber 2014-02-24 15:52:49 UTC
PR: https://github.com/jbossas/jboss-eap/pull/965

Comment 5 Emanuel Muckenhuber 2014-02-27 10:46:59 UTC
*** Bug 1070330 has been marked as a duplicate of this bug. ***

Comment 6 Emanuel Muckenhuber 2014-02-27 10:52:23 UTC
*** Bug 1065536 has been marked as a duplicate of this bug. ***

Comment 7 Jan Martiska 2014-03-06 11:20:45 UTC
Verified in EAP 6.3.0.DR2.