Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1145185

Summary: [GSS](6.4.z) standalone.bat script does not parse JAVA_OPTS containing '|' symbol properly
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Jay SenSharma <jsenshar>
Component: Scripts and CommandsAssignee: Radovan STANCEL <rstancel>
Status: CLOSED WORKSFORME QA Contact: Marek Kopecky <mkopecky>
Severity: medium Docs Contact: Russell Dickenson <rdickens>
Priority: medium    
Version: 6.1.1CC: bmaxwell, fnasser, pgier, pkremens, rstancel, sjadhav
Target Milestone: ---   
Target Release: EAP 6.4.0   
Hardware: All   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-07 09:14:06 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:

Description Jay SenSharma 2014-09-22 13:51:21 UTC
Description of problem:
======================
Scenario-1)
============ With the following line of JAVA_OPTS in "standalone.bat.conf" file

set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost|127.0.0.1|10.10.10.*"

{code}
Error while starting EAP 6.1.1
C:\jboss-eap-6.1.1\bin>standalone.bat
Calling "C:\jboss-eap-6.1.1\bin\standalone.conf.bat"
Setting JAVA property to "C:\JDKs\jdk1.7.0_67\bin\java"
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
{code}

Scenario-2)
============ In Windows "^" sign is the escape character so we tried altering the JAVA_OPTS as following in the "standalone.bat.conf" file:

set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost^|127.0.0.1^|10.10.10.*"

Now EAP 6.1.1 server starts but still we see the following messages in windows console:

{code}
C:\jboss-eap-6.1.1\bin>standalone.bat
Calling "C:\jboss-eap-6.1.1\bin\standalone.conf.bat"
Setting JAVA property to "C:\JDKs\jdk1.7.0_67\bin\java"
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
{code}



Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
===================
1. Edit the "C:\jboss-eap-6.1.1\bin\standalone.conf.bat" by adding the following line of entry in it:

   set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost|127.0.0.1|10.10.10.*"

OR

   set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost^|127.0.0.1^|10.10.10.*"

2  Restart WildFly and notice the error messages in the Windows Console.



Actual results:
================
Error occurs while starting EAP6 as following:
{code}
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
{code}


Expected results:
================
- EAP6 should have started cleanly without those messages.


Additional info:
================
- Issue occurs on Windows OS using standalone.bat script.

Comment 2 Jay SenSharma 2014-10-07 04:53:50 UTC
*** Bug 1149971 has been marked as a duplicate of this bug. ***

Comment 4 JBoss JIRA Server 2014-11-07 14:03:40 UTC
Tomaz Cerar <tomaz.cerar> updated the status of jira WFCORE-99 to Resolved

Comment 8 Radovan STANCEL 2017-07-31 15:37:38 UTC
PR: https://github.com/jbossas/jboss-eap/pull/3043