[
https://issues.apache.org/jira/browse/SOLR-10818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16047811#comment-16047811
]
Cao Manh Dat commented on SOLR-10818:
-------------------------------------
[~varunthacker] Your command seems wrong, it should be
{code}
~/solr-6.5.0$ curl -X POST -d '{backup-collection:{name: backup_test,
collection: gettingstarted , location: "/Users/varunthacker/solr-6.5.0" }}'
http://localhost:8983/v2/c
{code}
> backup-collection V2 API doesn't parse params correctly
> -------------------------------------------------------
>
> Key: SOLR-10818
> URL: https://issues.apache.org/jira/browse/SOLR-10818
> Project: Solr
> Issue Type: Sub-task
> Security Level: Public(Default Security Level. Issues are Public)
> Components: v2 API
> Reporter: Varun Thacker
> Assignee: Cao Manh Dat
>
> tried the backup-collection command and I got an error which seems to
> indicate that the location param is getting escaped? Also didn't see any
> tests for backup-collection
> {code}
> ~/solr-6.5.0$ curl -X POST -d '{backup-collection:{name: backup_test,
> collection: gettingstarted , location: '/Users/varunthacker/solr-6.5.0' }}'
> http://localhost:8983/v2/c
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
> <title>Error 400
> {metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.noggit.JSONParser$ParseException},msg=org.noggit.JSONParser$ParseException:
> Invalid comment: expected //, /*, or #: char=U,position=79
> BEFORE='{name: backup_test, collection: gettingstarted , location:
> /U' AFTER='sers/varunthacker/solr-6.5.0 }}',code=400}</title>
> </head>
> <body><h2>HTTP ERROR 400</h2>
> <p>Problem accessing /solr/____v2/c. Reason:
> <pre>
> {metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.noggit.JSONParser$ParseException},msg=org.noggit.JSONParser$ParseException:
> Invalid comment: expected //, /*, or #: char=U,position=79
> BEFORE='{name: backup_test, collection: gettingstarted , location:
> /U' AFTER='sers/varunthacker/solr-6.5.0 }}',code=400}</pre></p>
> </body>
> </html>
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]