Bug 1054874

Summary: [GSS] (6.4.0) jboss-cli.sh cygwin support
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Aleksandar Kostadinov <akostadi>
Component: CLIAssignee: Alexey Loubyansky <olubyans>
Status: CLOSED WONTFIX QA Contact: Petr Kremensky <pkremens>
Severity: low Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0CC: bbaranow, brian.stansberry, darran.lofthouse, fnasser, jpallich, lcosti, myarboro, pgier, sgilda, smumford
Target Milestone: ---Keywords: Documentation, Triaged
Target Release: TBD EAP 7   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Known Issue
Doc Text:
This release of JBoss EAP 6 contains a bug that may create problems using the product in a Cygwin environment. Differences in the POSIX and Microsoft Windows pathing implementations may cause the path variables in the +jboss-cli.sh+ shell script to not function as expected. This issue is expected to be resolved in a future release of the product.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-23 12:55:11 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:

Description Aleksandar Kostadinov 2014-01-17 16:16:59 UTC
Currently EAP 6.2.x has broken cygwin support. To fix and bring in sync with upstream which is already fixed:

> diff --git a/build/src/main/resources/bin/jboss-cli.sh b/build/src/main/resources/bi
> index b971615..969151f 100755
> --- a/build/src/main/resources/bin/jboss-cli.sh
> +++ b/build/src/main/resources/bin/jboss-cli.sh
> @@ -61,6 +61,7 @@ fi
>  if $cygwin; then
>      JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"`
>      JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> +    JBOSS_MODULEPATH=`cygpath --path --windows "$JBOSS_MODULEPATH"`
>  fi
>  if $darwin ; then

Comment 1 Aleksandar Kostadinov 2014-01-17 16:24:38 UTC
It is actually WFLY-2523 that fixed it upstream and this is the upstream commit:

Comment 3 Scott Mumford 2014-01-20 06:00:24 UTC
Marking for inclusion in 6.2.1 release notes documentation.

Comment 8 sgilda 2014-05-13 17:40:19 UTC
Changed from Bug Fix to Known Issue to fix Bug 1097087

Comment 9 Scott Mumford 2014-05-14 02:38:26 UTC
Refactored release note text for this as a Known Issue (ER4 fixes will not be picked up in the 6.3.0 Beta release)

Original note included here for use at 6.3.0 GA:

Problems were encountered using earlier versions of JBoss EAP 6 in Cygwin. Differences in the POSIX and Microsoft Windows pathing implementations caused the path variables in the +jboss-cli.sh+ shell script to fail to function as expected. A refinement in the +jboss-cli.sh+ shell script now allows the variables to operate as expected in Cygwin environments.

Comment 10 Darran Lofthouse 2014-07-22 12:48:13 UTC
Just spotted this, don't believe it should be dev acked - we have already rejected another BZ as we have no solution for prompting for a password without echoing on cygwin.

Overall I believe cygwin support should currently be classed as an RFE.