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

Houston Putman commented on SOLR-16686:
---------------------------------------

[~elyograg] I see that you put the CHANGES.txt version as 9.3, but it was 
merged into 9x before the 9.2 branch was cut. So this should make it into 9.2. 
Could you add a fixVersion on this Jira and also move the changes.txt section 
across main, branch_9x and branch_9_2?

> When using bin/solr zk cp, a non-zk destination requires a path, won't work 
> with bare filename
> ----------------------------------------------------------------------------------------------
>
>                 Key: SOLR-16686
>                 URL: https://issues.apache.org/jira/browse/SOLR-16686
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 9.1
>            Reporter: Shawn Heisey
>            Assignee: Shawn Heisey
>            Priority: Minor
>              Labels: patch
>         Attachments: SOLR_16686.patch
>
>
> I uploaded a security.json file from a bare filename, manipulated the 
> security config in the UI, then tried to download the modified file.  The 
> download failed.
> This is the command used to upload:
> {code:none}
> /opt/solr/bin/solr zk cp security.json zk:/security.json -z localhost:9983
> {code}
> This is the command I tried that didn't work:
> {code:none}
> /opt/solr/bin/solr zk cp zk:/security.json security.json -z localhost:9983
> {code}
> If I change it to this, it works:
> {code:none}
> /opt/solr/bin/solr zk cp zk:/security.json ./security.json -z localhost:9983
> {code}
> The problem here is that it parses the local filename to extract the path 
> component and then uses that to get a FileSystem object.  With the bare 
> filename, there IS no path info to be extracted, so it gets null and the code 
> fails.
> Instead, if the extracted path is null, it should use the current working 
> directory as the path.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to