Bug 1293795

Summary: [GSS] (6.4.z) Can't stop JBoss service on windows when passing /jbosspass option which contains '!' in a service install command
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: sfu <sfu>
Component: jbossasAssignee: Vlado Pakan <vpakan>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4.5CC: fnasser, jason.greene, msochure, vpakan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-12 09:53:13 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 sfu@redhat.com 2015-12-23 05:53:48 UTC
Description of problem:

Can't stop JBoss service on windows when passing /jbosspass option which contains '!' in a service install command,it shows: Error 1053 The service did not respond to the start or control request in a timely fashion.

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


How reproducible:
always


Steps to Reproduce:
1.Install JBoss EAP 6.4.5 and Native Utilities for Windows Server x86_64 
2.Create a jboss user with add-user.bat,(jbossadmin/Redhat!23) note:please use'!' in the password.
3.Install EAP as a window service with command: C:\jboss-eap-6.4\modules\system\layers\base\native\sbin>service.bat install /jbossuser jbossadmin /jbosspass Redhat!23 /loglevel DEBUG /debug /startup
4.start EAP 6 service and stop it,error will appear.

Actual results:
Can't stop it and error appears.

Expected results:
Can stop it successfully.

Additional info:
Use regedit.exe and export (as TXT!) the branch "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation" we can see the '!' missing from the --password=Redhat23 ,it's the root cause of this issue,if the jboss user pwd doesn't use '!',it can be stopped normally.

registry.txt:
---------------------
Value 2
  Name:    Params
  Type:    REG_MULTI_SZ
  Data:    /c jboss-cli.bat --controller=localhost:9999 --connect --uesr=jbossadmin --password=Redhat23 --command=:shutdown