Skip to content

[Backport 2.x] Bugfix: Allow opensearch.bat file and opensearch-env.bat files to run when install path includes a space.#4472

Merged
reta merged 1 commit intoopensearch-project:2.xfrom
peterzhuamazon:backport-4362-2.x
Sep 9, 2022
Merged

[Backport 2.x] Bugfix: Allow opensearch.bat file and opensearch-env.bat files to run when install path includes a space.#4472
reta merged 1 commit intoopensearch-project:2.xfrom
peterzhuamazon:backport-4362-2.x

Conversation

@peterzhuamazon
Copy link
Copy Markdown
Member

Description

[Backport 2.x] Bugfix: Allow opensearch.bat file and opensearch-env.bat files to run when install path includes a space.

Issues Resolved

#4362

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

… when install path includes a space. (opensearch-project#4362)

* Bugfix: Prevent escaping of in `else-if` statement by setting variable without double quotes.

Signed-off-by: Mike Wilkinson <mwilkinson@imohealth.com>

* Add changelog entry for fix

Signed-off-by: Mike Wilkinson <mwilkinson@imohealth.com>

* Escape double quotes for environment variables set by `opensearch-env.bat`. Explicitly apply quotes where those environment variables are invoked.

Signed-off-by: Mike Wilkinson <mwilkinson@imohealth.com>

Signed-off-by: Mike Wilkinson <mwilkinson@imohealth.com>
Co-authored-by: Mike Wilkinson <mwilkinson@imohealth.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Sep 9, 2022

Gradle Check (Jenkins) Run Completed with:

@reta reta merged commit 3080dfd into opensearch-project:2.x Sep 9, 2022
@peterzhuamazon peterzhuamazon deleted the backport-4362-2.x branch September 9, 2022 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants