Varun Thacker created SOLR-10818:
------------------------------------

             Summary: 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)
            Reporter: Varun Thacker


 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=&apos;{name: 
backup_test, collection: gettingstarted , location: /U&apos; 
AFTER=&apos;sers/varunthacker/solr-6.5.0 }}&apos;,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=&apos;{name: 
backup_test, collection: gettingstarted , location: /U&apos; 
AFTER=&apos;sers/varunthacker/solr-6.5.0 }}&apos;,code=400}</pre></p>
</body>
</html>
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to