Details
-
Bug
-
Resolution: Done
-
Major
-
7.0.9.GA, 7.1.6.GA, 7.2.9.GA, 7.3.x
-
False
-
False
-
+
-
Undefined
-
Description
The "service.bat" can handle "servicepass" incorrectly and pass a wrong value to run prunsrv.exe. For example, when the specified password contains "!".
If specifying the parameter [/servicepass "password^^!1^^!"] to set the password "password!1!", the script shows incorrect password like [--ServicePassword="password"].
Updating the way to refer the parameter surrounded by "!" would be effective("%SERVICE_PASS%" would be "!SERVICE_PASS!").
The variable "RUNAS" in the "service.bat" script can be fixed.
[AS IS]
468 set RUNAS=--ServiceUser="%SERVICE_USER%" --ServicePassword="%SERVICE_PASS%"
:
507 echo RUNAS=%RUNAS%
:
529 echo %PRUNSRV% install %SHORTNAME% %RUNAS% --DisplayName=%DISPLAYNAME% ...
:
531 %PRUNSRV% install %SHORTNAME% %RUNAS% --DisplayName=%DISPLAYNAME% ...
[TO BE]
468 set RUNAS=--ServiceUser="%SERVICE_USER%" --ServicePassword="!SERVICE_PASS!"
:
507 echo RUNAS=!RUNAS!
:
529 echo %PRUNSRV% install %SHORTNAME% !RUNAS! --DisplayName=%DISPLAYNAME% ...
:
531 %PRUNSRV% install %SHORTNAME% !RUNAS! --DisplayName=%DISPLAYNAME% ...
:
532 @rem %PRUNSRV% install "%SHORTNAME%" "!RUNAS!" --DisplayName="%DISPLAYNAME%" ...
Attachments
Issue Links
- clones
-
JBEAP-21939 [GSS](7.3.z) "servicepass" is not correctly passed to the parameter to run prunsrv.exe in service.bat
- Verified