Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11128

Fix 'No such file or directory' in "bin/solr auth" usage output

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments


    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 8.0
    • Fix Version/s: 7.0, 8.0
    • Component/s: scripts and tools
    • Labels:
    • Environment:

      Any POSIX-complaint machine that can run the "bin/solr" script.


      The usage/help text for bin/solr auth currently contains two error messages that are output as part of echo commands:

      [~/c/l/solr] $ bin/solr auth
      Usage: solr auth enable [-type basicAuth] -credentials user:pass [-blockUnknown <true|false>] [-updateIncludeFileOnly <true|false>]
             solr auth enable [-type basicAuth] -prompt <true|false> [-blockUnknown <true|false>] [-updateIncludeFileOnly <true|false>]
      bin/solr: line 558: kerberos: No such file or directory
             solr auth disable [-updateIncludeFileOnly <true|false>]
        -type <type>                           The authentication mechanism (basicAuth or kerberos) to enable. Defaults to 'basicAuth'.
        -credentials <user:pass>               The username and password of the initial user. Applicable for basicAuth only.
                                               Note: only one of -prompt or -credentials must be provided
      bin/solr: line 566: configs: No such file or directory
        -prompt <true|false>                   Prompts the user to provide the credentials. Applicable for basicAuth only.
                                               Note: only one of -prompt or -credentials must be provided

      These "No such file or directory" errors making their way into the output come from unescaped double quotes in the echo commands outputing those lines.

      They can be fixed by either escaping the double quotes, or changing them to single quotes on the two lines mentioned above.


        Issue Links



            • Assignee:
              ichattopadhyaya Ishan Chattopadhyaya
              gerlowskija Jason Gerlowski


              • Created:

                Issue deployment