lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cao Manh Dat (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-10818) backup-collection V2 API doesn't parse params correctly
Date Mon, 03 Jul 2017 08:35:00 GMT

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

Cao Manh Dat commented on SOLR-10818:
-------------------------------------

Thank [~hossman], I will take a look at this problem.

> 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=&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.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message