Elasticsearch: Searching for a particular term breaks when logged in to mahara.org
Bug #1389446 reported by
Aaron Barnes
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Unassigned | ||
1.10 |
Fix Released
|
Medium
|
Unassigned | ||
15.04 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
This happens while using the search box in the upper right hand corner of the page on http://
I can consistently get the search to throw an error when searching for "Jaybee" while logged in. This does not occur while logged out, or the other user I tested.
The error is: "A nonrecoverable error occurred. This probably means you have encountered a bug in the system"
Changed in mahara: | |
milestone: | 1.9.4 → 1.9.5 |
Changed in mahara: | |
milestone: | 1.9.5 → 1.9.6 |
Changed in mahara: | |
status: | Triaged → Fix Committed |
milestone: | 15.10.0 → none |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Replicated. It errors out when I'm logged in, but it works when I'm logged out.
Here is the error from the Apache logs. It's unclear whether this is a code problem, or a mahara.org infrastructure problem.
[Thu Nov 06 14:57:56 2014] (lib/errors. php:457) An exception was thrown of class Elastica\ \Exception\ \ResponseExcept ion. , referer: https:/ /mahara. org/admin/ users/edit. php?id= 680 php:457) THIS IS BAD and should be changed to something extending MaharaException,, referer: https:/ /mahara. org/admin/ users/edit. php?id= 680 php:457) unless the exception is from a third party library., referer: https:/ /mahara. org/admin/ users/edit. php?id= 680 php:457) Original trace follows, referer: https:/ /mahara. org/admin/ users/edit. php?id= 680 lib/Elastica/ Transport/ Http.php: 137) SearchPhaseExec utionException[ Failed to execute phase [query], total failure; shardFailures {[EQCeqgZKTf6i_ 3a2-8Bz6Q] [mahara- mahara- org-prod- index-one] [2]: RemoteTransport Exception[ [learn- search2] [inet[/ 10.24.128. 40:9300] ][search/ phase/query] ]; nested: SearchParseExce ption[[ mahara- mahara- org-prod- index-one] [2]: query[_ all:jaybe] ,from[0] ,size[10] : Parse Failure [Failed to parse source [{"from" :0,"size" :10,"query" :{"query_ string" :{"query" :"Jaybee" ,"analyzer" :"mahara_ analyzer" ,"default_ operator" :"AND"} },"filter" :{"and" :[{"or" :[{"missing" :{"field" :"access. general" }},{"term" :{"access. general" :"public" }},{"term" :{"access. general" :"loggedin" }},{"and" :[{"term" :{"access. general" :"friends" }},{"terms" :{"owner" :["206" ,"1688" ,"33864" ,"2491" ,"35573" ,"4872" ,"801"] }}]},{" terms": {"access. groups. member" :["1033" ,"3","3" ,"1028" ,"1028" ,"1","6" ,"6","118" ,"118", "40","20" ,"20"," 37","37" ]}},{"terms" :{"access. groups. ad 1033"," 1","40" ]}},{"term" :{"owner" :"32554" }},{"term" :{"access. usrs":" 32554"} }]},{"term" :{"mainfacetter m":null} }]},"facets" :{"mainFacetTer m":{"facet_ filter" :{"and" :[{"or" :[{"missing" :{"field" :"access. general" }},{"term" :{"access. general" :"public" }},{"term" :{"access. general" :"loggedin" }},{"and" :[{"term" :{"access. general" :"friends" }},{"terms" :{"owner" :["206" ,"1688" ,"33864" ,"2491" ,"35573" ,"4872" ,"801"] }}]},{" terms": {"access. groups. member" :["1033" ,"3","3" ,"1028" ,"1028" ,"1","6" ,"6","118" ,"118", "40","20" ,"20"," 37","37" ]}},{"terms" :{"access. groups. admin": ["1033" ,"1","40" ]}},{"term" :{"owner" :"32554" }},{"term" :{"access. usrs":" 32554"} }]}]}," terms": {"field" :"mainfacetterm ","order" :"count" }},"secFacetTer m":{"facet_ filter" :{"and" :[{"or" :[{"missing" :{"field" :"access. general" }},{"term" :{"access. general" :"public" }},{"term" :{"access. general" :"loggedin" }},{"and" :[{"term" :{"access. general" :"friends" }},{"terms" :{"owner" :["206" ,"1688" ,"33864" ,"2491" ,"35573" ,"4872" ,"801"] }}]},{" terms": {"access. groups. member" :["1033" ,"3","3" , "1028", "1","6" ,"6","118" ,"118", "40","20" ,"20"," 37","37" ]}},{"terms" :{"access. groups. admin": ["1033" ,"1","40" ]}},{"term" :{"owner" :"32554" }},{"term" :{"access. usrs":" 32554"} }]},{"term" :{"mainfacetter m":null} }]},"terms" :{"field" :"secfacetterm" ,"order" :"count" }}},"sort" :[{"_score" :{"order" :"desc" }},{"_score" :{"order" :"desc" }}]}]]] ; nested...
[Thu Nov 06 14:57:56 2014] (lib/errors.
[Thu Nov 06 14:57:56 2014] (lib/errors.
[Thu Nov 06 14:57:56 2014] (lib/errors.
[Thu Nov 06 14:57:56 2014] (lib/elastica/
min":["
"1028",