Bug 1351768 - [GSS](6.4.z) CLI fails to find deployment artifact located in a Windows Share UNC path
Summary: [GSS](6.4.z) CLI fails to find deployment artifact located in a Windows Share...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: CLI
Version: 6.4.6
Hardware: Unspecified
OS: Windows
high
high
Target Milestone: CR1
: EAP 6.4.10
Assignee: Radovan Netuka
QA Contact: Petr Kremensky
URL:
Whiteboard:
Depends On:
Blocks: eap6410-payload
TreeView+ depends on / blocked
 
Reported: 2016-06-30 18:56 UTC by Taneem Ibrahim
Modified: 2019-11-14 08:35 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-01-17 13:01:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Taneem Ibrahim 2016-06-30 18:56:52 UTC
Description of problem:

This worked fine until CP06 release. If a WAR or EAR file path is an UNC windows share file path then the deployment fails with file not found error. In this scenario, CLI adds an extra "s" character in the deployment path. However, the same WAR/EAR deploys fine if the path is changed to a local path.

Example:

This deployment is successful:

1. jboss-cli.bat -c --controller=$mytestserver.dot.com:9999  --command="deploy "d:\Test\Drop732863\TEST.war" --server-groups=MyHA"

However, this one fails to find the WAR file even though it exists in the same folder as above but the path is an UNC one instead of the local one:

2. jboss-cli.bat -c --controller=$mytestserver.dot.com:9999  --command="deploy "\\stlmjbad001\Test\Drop732863\TEST.war" --server-groups=MyHA"

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

JBoss EAP 6.4 CP06


How reproducible:

Using a UNC path for the WAR file location on a Windows server consistently shows the same error.

Steps to Reproduce:
1. Deploy a WAR or an EAR file with a UNC path using the following CLI:

jboss-cli.bat -c --controller=$mytestserver.dot.com:9999  --command="deploy "\\stlmjbad001\Test\Drop732863\TEST.war" --server-groups=MyHA"


Actual results:

Path \\stlmjbad001\Test\Drop732863\TEST.war doesn't exist. 

Expected results:

It should deploy successfully since TEST.war exists. This worked fine until CP06 release. Same deployment when attempted on a EAP 6.4.0 CP05 instance it is successful.


Additional info:

This is preventing the customer from patching JBoss EAP 6.4.z. They have to use the Windows share paths for deployment from Jenkins.

Comment 1 Taneem Ibrahim 2016-06-30 19:20:35 UTC
Just to clarify this does not work in JBoss EAP 6.4.6, 6.47, and 6.4.8 versions. It worked until 6.4.5 fine. So something between 6.4.5 and 6.4.6 caused this windows share UNC path based deployments to fail.

Also when the deployment fails it adds an extra "s" in the path:

Path \\sstlmjbad001\Test\Drop732863\TEST.war doesn't exist. 

In this case the actual path was \\stlmjbad001\Test\Drop732863\TEST.war .

Comment 2 Taneem Ibrahim 2016-07-01 18:38:17 UTC
Windows UNC path - http://compnetworking.about.com/od/windowsnetworking/g/unc-name.htm

Comment 3 Taneem Ibrahim 2016-07-01 19:22:24 UTC
Customer Environment info:

OS: Microsoft Windows Server 2012 R2 Standard - 64-bit

JDK: Oracle Java SE Development Kit 8 Update 51 (64-bit) 8.0.510.16

Comment 10 Radovan Netuka 2016-07-19 14:16:58 UTC
No upstream fix is required.

Comment 12 Radovan Netuka 2016-07-20 11:34:08 UTC
PR: https://github.com/jbossas/jboss-eap/pull/2809

Comment 14 Jiří Bílek 2016-08-29 15:24:11 UTC
Verified with EAP 6.4.10.CP.CR2

Comment 15 Petr Penicka 2017-01-17 13:01:34 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.


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