-
Type:
Bug
-
Resolution: Low Engagement
-
Priority:
Low
-
None
-
Affects Version/s: 7.3.0, 7.10.2, 8.6.1
-
Component/s: Installation
-
7.03
-
16
-
Severity 3 - Minor
-
1
Summary
When trying to enable JIRA to run on service using below command, it does not take in the input provided. Based on the input below, the service name should be "JIRASW7_3_0, however it is creating a service name with a hardcoded name in service.bat.
Note that this was working with JIRA 7.2.6, but it is not working for JIRA 7.3:
service.bat install JIRASW7_3_0
Expected Results
After executing the command below, we should see the service name = "JIRASW7_3_0".
service.bat install JIRASW7_3_0
Actual Results
Regardless of the input provided, it will create the service name as JIRASoftware120117184653 as hard-coded in the service.bat. For example:
7.3 service.bat code responsible for this:
set SERVICE_NAME=JIRASoftware120117184653 set DISPLAYNAME=Atlassian JIRA if "x%1x" == "xx" goto displayUsage set SERVICE_CMD=%1 shift if "x%1x" == "xx" goto checkServiceCmd :checkUser if "x%1x" == "x/userx" goto runAsUser if "x%1x" == "x--userx" goto runAsUser set SERVICE_NAME=JIRASoftware120117184653 set DISPLAYNAME=Atlassian JIRA
7.2.6 service.bat code that is working with user input:
set SERVICE_NAME=JIRACore091216145826 set DISPLAYNAME=Atlassian JIRA if "x%1x" == "xx" goto displayUsage set SERVICE_CMD=%1 shift if "x%1x" == "xx" goto checkServiceCmd :checkUser if "x%1x" == "x/userx" goto runAsUser if "x%1x" == "x--userx" goto runAsUser set SERVICE_NAME=%1 set DISPLAYNAME=Apache Tomcat 8.0 %1
Workaround
Modify the code in 7.3 service.bat as below.
- Locate the following lines in service.bat
if "x%1x" == "x--userx" goto runAsUser set SERVICE_NAME=JIRASoftware120117184653
- Modify the lines to the following:
if "x%1x" == "x--userx" goto runAsUser set SERVICE_NAME=%1
- is related to
-
GHS-68053 Loading...