Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10432 V2 API follow up items
  3. SOLR-10818

backup-collection V2 API doesn't parse params correctly

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: v2 API
    • Labels:
      None

      Description

      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

      ~/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>
      

        Attachments

          Activity

            People

            • Assignee:
              caomanhdat Cao Manh Dat
              Reporter:
              varun Varun Thacker
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: