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 1.3] Bugfix: Allow opensearch.bat file and opensearch-env.bat files to run when install path includes a space. #5474

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

xuezhou25
Copy link
Contributor

@xuezhou25 xuezhou25 commented Dec 7, 2022

Signed-off-by: Xue Zhou xuezhou@amazon.com

Description

[Backport 1.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 <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>
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2022

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

Codecov Report

Merging #5474 (ea3c3d0) into 1.3 (5813f36) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                1.3    #5474      +/-   ##
============================================
- Coverage     77.92%   77.90%   -0.03%     
+ Complexity    63450    63439      -11     
============================================
  Files          4454     4454              
  Lines        274943   274943              
  Branches      41166    41166              
============================================
- Hits         214261   214204      -57     
- Misses        43779    43840      +61     
+ Partials      16903    16899       -4     
Impacted Files Coverage Δ
...nsearch/indices/recovery/PeerRecoveryNotFound.java 0.00% <0.00%> (-100.00%) ⬇️
.../action/ingest/SimulatePipelineRequestBuilder.java 0.00% <0.00%> (-50.00%) ⬇️
.../index/shard/IndexShardNotRecoveringException.java 50.00% <0.00%> (-50.00%) ⬇️
...gregations/bucket/range/BinaryRangeAggregator.java 54.72% <0.00%> (-29.73%) ⬇️
...rch/client/transport/NoNodeAvailableException.java 71.42% <0.00%> (-28.58%) ⬇️
...va/org/opensearch/monitor/process/ProcessInfo.java 68.00% <0.00%> (-24.00%) ⬇️
.../java/org/opensearch/index/reindex/RemoteInfo.java 48.67% <0.00%> (-23.01%) ⬇️
...rc/main/java/org/opensearch/monitor/os/OsInfo.java 64.70% <0.00%> (-19.61%) ⬇️
...opensearch/index/shard/ShardNotFoundException.java 81.81% <0.00%> (-18.19%) ⬇️
...regations/pipeline/SimulatedAnealingMinimizer.java 75.86% <0.00%> (-17.25%) ⬇️
... and 442 more

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

@peterzhuamazon peterzhuamazon merged commit db18a0d into opensearch-project:1.3 Dec 7, 2022
@xuezhou25 xuezhou25 deleted the backport-4362-1.3 branch December 7, 2022 01:19
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.

5 participants