[
https://issues.apache.org/jira/browse/SOLR-10818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16072115#comment-16072115
]
ASF subversion and git services commented on SOLR-10818:
--------------------------------------------------------
Commit d070ca6051bd13e2cee436225139127c7a37f69f in lucene-solr's branch
refs/heads/master from [~caomanhdat]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=d070ca6 ]
SOLR-10818: Fix bug in construct payload with special characters in
testCollectionsApi()
> 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]