lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-11128) Fix 'No such file or directory' in "bin/solr auth" usage output
Date Thu, 20 Jul 2017 11:27:01 GMT

    [ https://issues.apache.org/jira/browse/SOLR-11128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16094555#comment-16094555
] 

ASF subversion and git services commented on SOLR-11128:
--------------------------------------------------------

Commit e5722c3f96f72abd34d3808fa4f7c29722fc50be in lucene-solr's branch refs/heads/master
from [~ichattopadhyaya]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e5722c3 ]

SOLR-11128: Escape script usage strings containing quotes


> Fix 'No such file or directory' in "bin/solr auth" usage output
> ---------------------------------------------------------------
>
>                 Key: SOLR-11128
>                 URL: https://issues.apache.org/jira/browse/SOLR-11128
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: scripts and tools
>    Affects Versions: master (8.0)
>         Environment: Any POSIX-complaint machine that can run the "bin/solr" script.
>            Reporter: Jason Gerlowski
>            Assignee: Ishan Chattopadhyaya
>            Priority: Trivial
>         Attachments: SOLR-11128.patch
>
>
> The usage/help text for {{bin/solr auth}} currently contains two error messages that
are output as part of echo commands:
> {noformat}
> [~/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
> ...
> {noformat}
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message