Bug 1055898 - [GSS] (6.3.1) patch apply tilde (~ HOME) expansion "Path ... doesn't exist"
Summary: [GSS] (6.3.1) patch apply tilde (~ HOME) expansion "Path ... doesn't exist"
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Patching
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: CR1
: EAP 6.3.1
Assignee: Chao Wang
QA Contact: Jan Martiska
Russell Dickenson
Depends On: 1103783
Blocks: eap631-blockers, eap631-payload, eap63-cp01-blockers
TreeView+ depends on / blocked
Reported: 2014-01-21 07:53 UTC by Marek Schmidt
Modified: 2014-10-13 18:39 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-10-13 18:39:53 UTC
Type: Bug

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-2794 0 Major Resolved FileSystemPathArgument doesn't translate paths in getValue(args, required) 2015-10-15 13:49:12 UTC

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


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:


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

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

Note You need to log in before you can comment on or make changes to this bug.