Bug 1055898

Summary: [GSS] (6.3.1) patch apply tilde (~ HOME) expansion "Path ... doesn't exist"
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Marek Schmidt <maschmid>
Component: PatchingAssignee: Chao Wang <chaowan>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Martiska <jmartisk>
Severity: medium Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0CC: bbaranow, bmaxwell, chaowan, jason.greene, jawilson, jdoyle, jlivings, kconner, msimka, myarboro, olubyans
Target Milestone: CR1Keywords: Triaged
Target Release: EAP 6.3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-13 18:39:53 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: 1103783    
Bug Blocks: 1102082    

Description Marek Schmidt 2014-01-21 07:53:51 UTC
Description of problem:

Running

patch apply ~/testing/eap6.2.0.CP1.CR1/jboss-eap-6.2.1.CP.CR1-patch.zip

results in

"
Path /home/maschmid/tmp/~/testing/eap6.2.0.CP1.CR1/jboss-eap-6.2.1.CP.CR1-patch.zip doesn't exist.
"

specifying the full path works.


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

EAP6 6.2.0.GA

How reproducible:

always

Steps to Reproduce:
1. Get the 6.2.0 CP1 patch to ~/tmp/jboss-eap-6.2.1.CP.CR1-patch.zip
2. start EAP 6.2.0 ./standalone.sh
3. run jboss-cli.sh --connect
4. in the console "patch apply ~/tmp/jboss-eap-6.2.1.CP.CR1-patch.zip"
5. notice the error

Actual results:
Path /home/foo/tmp/~/tmp/jboss-eap-6.2.1.CP.CR1-patch.zip doesn't exist

Expected results:
patch should apply

Additional info:

Comment 3 JBoss JIRA Server 2014-01-25 05:08:48 UTC
Alexey Loubyansky <alex> updated the status of jira WFLY-2794 to Resolved

Comment 4 James Livingston 2014-02-14 02:13:31 UTC
This is made more likely to hit people due to the fact that tab-completion on the "patch apply" command does handle ~ correctly.

e.g. patch apply ~/jboss-eap-6<tab> will complete to ~/jboss-eap-6.2.1.CP.zip, but then fail to work.

Comment 13 baranowb 2014-08-21 08:50:05 UTC
Merged.

Comment 14 Jan Martiska 2014-08-29 12:42:58 UTC
Verified in EAP 6.3.1.CR1.