lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomoko Uchida (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-6893) DIH doen't work using URL and wget
Date Sun, 28 Dec 2014 19:57:13 GMT

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

Tomoko Uchida commented on SOLR-6893:
-------------------------------------

Hi,
At my environment (Mac OS), DIH works well with wget command.
Maybe you should remove '/#/' from request url.

I have tested two patterns with /#/ and without /#/
It works.
{code}
$ wget -O response "http://localhost:8983/solr/wikipedia/dataimport?command=full-import&indent=true"
$ wget -O response "http://localhost:8983/solr/wikipedia/dataimport?command=status&indent=true"
$ cat response 
<?xml version="1.0" encoding="UTF-8"?>
<response>

<lst name="responseHeader">
  <int name="status">0</int>
  <int name="QTime">0</int>
</lst>
<lst name="initArgs">
  <lst name="defaults">
    <str name="config">db-data-config.xml</str>
  </lst>
</lst>
<str name="command">status</str>
<str name="status">busy</str>
<str name="importResponse">A command is still running...</str>
<lst name="statusMessages">
  <str name="Time Elapsed">0:6:59.792</str>
  <str name="Total Requests made to DataSource">1</str>
  <str name="Total Rows Fetched">121772</str>
  <str name="Total Documents Processed">60885</str>
  <str name="Total Documents Skipped">0</str>
  <str name="Full Dump Started">2014-12-28 19:38:24</str>
</lst>
</response>
{code}

It does not work.
{code}
$ wget -O response "http://localhost:8983/solr/#/wikipedia/dataimport?command=full-import&indent=true"
{code}

Please try again after removing '#' character (this character has special meaning in URI specification.)

> DIH doen't work using URL and wget
> ----------------------------------
>
>                 Key: SOLR-6893
>                 URL: https://issues.apache.org/jira/browse/SOLR-6893
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.6.1, 4.8.1, 4.10.2
>         Environment: Linux (Ubuntu, CentOS)
>            Reporter: Dani
>            Priority: Minor
>
> I put this URL on browser and import correctly starts:
> http://localhost:8983/solr/#/sintesicontratti/dataimport//importazione?command=full-import&entity=fileImport&clean=true&commit=true
> But if I use wget it doens't work:
> wget "http://localhost:8983/solr/#/sintesicontratti/dataimport//importazione?command=full-import&entity=fileImport&clean=true&commit=true"
> nor also using escape:
> wget "http://localhost:8983/solr/#/sintesicontratti/dataimport//importazione?command=full-import\&entity=fileImport\&clean=true\&commit=true"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message