mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #27199
[Bug 1457709] A change has been merged
Reviewed: https://reviews.mahara.org/4788
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/278889b5bd6e33cadbd5e28f77b94cc256ab6a17
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch: master
commit 278889b5bd6e33cadbd5e28f77b94cc256ab6a17
Author: Aaron Wells <aaronw@xxxxxxxxxxxxxxx>
Date: Thu May 21 14:36:32 2015 +1200
elasticsearch: Add index name to _bulk command path
Bug 1457709: We only do this when the command comes
from an Index object itself, which means that all the
data in the bulk request will have the same index anyway.
You'll still need to set rest.action.multi.allow_explicit_index:false
in your config.yml, or else the data will be able to override the
index name in the URL.
See https://www.elastic.co/guide/en/elasticsearch/reference/current/url-
access-control.html
Change-Id: I2f441bd3613e3c3195c88609989d122e6e26de76
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1457709
Title:
Elasticsearch plugin doesn't work with URL-based access control
Status in Mahara ePortfolio:
Fix Committed
Bug description:
We changed the Elasticsearch plugin to use the _bulk command to load
data into Elasticsearch. But this poses problems for hosting setups
that are using URL-based access control, as described here:
https://www.elastic.co/guide/en/elasticsearch/reference/1.x/url-
access-control.html
This is because the way Elastica handles the _bulk command, it puts
the index name into the request body: localhost/_bulk, instead of
localhost/index/_bulk
Elasticsearch *can* handle the indexname in the URL for _bulk
commands. But we'll need to patch Elastica to handle it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1457709/+subscriptions
References