Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

peterzhuamazon
Copy link
Member

Description

[Backport 2.3] 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 <[email protected]>

* Add changelog entry for fix

Signed-off-by: Mike Wilkinson <[email protected]>

* 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 <[email protected]>

Signed-off-by: Mike Wilkinson <[email protected]>
Co-authored-by: Mike Wilkinson <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Sep 9, 2022

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

Codecov Report

Merging #4473 (0ec1c22) into 2.3 (6f6e84e) will increase coverage by 0.20%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                2.3    #4473      +/-   ##
============================================
+ Coverage     70.50%   70.70%   +0.20%     
- Complexity    57063    57137      +74     
============================================
  Files          4585     4585              
  Lines        274507   274507              
  Branches      40229    40229              
============================================
+ Hits         193540   194097     +557     
+ Misses        64755    64137     -618     
- Partials      16212    16273      +61     
Impacted Files Coverage Δ
...a/org/opensearch/client/cluster/SniffModeInfo.java 0.00% <0.00%> (-56.25%) ⬇️
...a/org/opensearch/tasks/TaskCancelledException.java 50.00% <0.00%> (-50.00%) ⬇️
...cluster/coordination/PendingClusterStateStats.java 20.00% <0.00%> (-48.00%) ⬇️
...r/src/main/java/org/opensearch/http/HttpStats.java 21.05% <0.00%> (-47.37%) ⬇️
...regations/metrics/AbstractHyperLogLogPlusPlus.java 51.72% <0.00%> (-44.83%) ⬇️
...search/aggregations/metrics/ParsedPercentiles.java 46.31% <0.00%> (-31.58%) ⬇️
...arch/search/aggregations/pipeline/SimpleModel.java 38.46% <0.00%> (-30.77%) ⬇️
...rch/client/transport/NoNodeAvailableException.java 42.85% <0.00%> (-28.58%) ⬇️
...a/org/opensearch/index/mapper/MapperException.java 75.00% <0.00%> (-25.00%) ⬇️
...ion/admin/cluster/node/info/PluginsAndModules.java 53.12% <0.00%> (-25.00%) ⬇️
... and 488 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@reta reta merged commit d4a162b into opensearch-project:2.3 Sep 9, 2022
@peterzhuamazon peterzhuamazon deleted the backport-4362-2.3 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.

4 participants