Elasticsearch7 - search results don't show the owner of the page when owned by a group
Bug #1970358 reported by
Dianne Tennent
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon |
Bug Description
MySQL8+Firefox on main
To replicate:
1. Add a person to the site
2. Enable Elasticsearch 7, select all artefact types and index the site
3. Masquerade as the person you added
4. Click the search button without anything in the search field
Result:
- About/Dashboard
Expected:
- When About/Dashboard
no longer affects: | mahara/22.04 |
no longer affects: | mahara/22.10 |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This also happens in Postgres. In both MySQL and Postgres, it happens whether 'Show people in public search' is set to 'Yes' or 'No'
When I have 10 people plus admin on the site, there are 27 results under 'Text' which are mostly blank 'Documents' that are located on profile pages, dashboard pages or group homepages.
There is considerable repetition of results e.g. at least 6 results that all point to the same url: view/view.php?id=2. It looks like they are supposed to be pointing to a profile page, so that would be the wrong URL (as a profile page is /user/view. php?id= x). And there is the problem of not showing the person's name which is not very helpful in a result list of many profile/dashboard pages.
I've attached screenshots of my results and the error message.