From e5722c3f96f72abd34d3808fa4f7c29722fc50be Mon Sep 17 00:00:00 2001 From: Ishan Chattopadhyaya Date: Thu, 20 Jul 2017 16:56:09 +0530 Subject: [PATCH] SOLR-11128: Escape script usage strings containing quotes --- solr/CHANGES.txt | 2 +- solr/bin/solr | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index d7f195a9cab..0c025851de8 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -301,7 +301,7 @@ New Features multivalued fields, a new JSON request language, and more. DocValues are now required for any field used in the analytics expression whereas previously docValues was not required. Please see SOLR-10123 for details. (Houston Putman) -* SOLR-10282: bin/solr support for enabling Kerberos authentication (Ishan Chattopadhyaya) +* SOLR-10282: bin/solr support for enabling Kerberos authentication (Ishan Chattopadhyaya, Jason Gerlowski) Bug Fixes ---------------------- diff --git a/solr/bin/solr b/solr/bin/solr index 3d2834057ff..8e7c8d8a8e2 100755 --- a/solr/bin/solr +++ b/solr/bin/solr @@ -555,7 +555,7 @@ function print_usage() { echo "" echo "Usage: solr auth enable [-type basicAuth] -credentials user:pass [-blockUnknown ] [-updateIncludeFileOnly ]" echo " solr auth enable [-type basicAuth] -prompt [-blockUnknown ] [-updateIncludeFileOnly ]" - echo " solr auth enable -type kerberos -config "" [-updateIncludeFileOnly ]" + echo " solr auth enable -type kerberos -config \"\" [-updateIncludeFileOnly ]" echo " solr auth disable [-updateIncludeFileOnly ]" echo "" echo " -type The authentication mechanism (basicAuth or kerberos) to enable. Defaults to 'basicAuth'." @@ -563,7 +563,7 @@ function print_usage() { echo " -credentials The username and password of the initial user. Applicable for basicAuth only." echo " Note: only one of -prompt or -credentials must be provided" echo "" - echo " -config "" Configuration parameters (Solr startup parameters). Required and applicable only for Kerberos" + echo " -config \"\" Configuration parameters (Solr startup parameters). Required and applicable only for Kerberos" echo "" echo " -prompt Prompts the user to provide the credentials. Applicable for basicAuth only." echo " Note: only one of -prompt or -credentials must be provided"