New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SolrCoreAdmin malfunction #186
Comments
When using Solr 6.5.1 with pysolr the core admin functionality seems still not to work properly. It seems like the problem has not been fixed on the master branch yet. When switching the implementation of _get_url (params=params) as proposed by @pdelboca the corresponding test cases are failing:
The response message from the create core call looks like:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Using the SolrCoreAdmin I have spotted some errors. (I'm glad to fix them with some guidance.)
Problem:
When calling the
_get_url
method, theparams
argument is being use to override thedata
argument of requests.get(). It should be used to replace theparams
argument instead.This is the current code:
This causes all the methods of the SolrCoreAdmin to malfunction because they call only the URL (http://localhost:8983/solr/admin/cores) without the parameters. The tests check if the response of those calls contains
''<int name="status">0</int>''
, however, when calling to the URL without the parameters Solr responses with some data about the cluster and always returns status = 0. So tests aren't actually testing correctly neither.I'm missing something important here o is this a bug in this class? If so...
Proposal:
Changing
requests.get
to useparams
instead ofdata
will make the _get_url work properly. After that I will need to fix all tests.Any suggestion / warning?
The text was updated successfully, but these errors were encountered: