← Back to team overview

mahara-contributors team mailing list archive

[Bug 1237177] Re: Elastic Search does not find media in a group

 

Ok from what I can work out the
ElasticsearchType_artefact::getRecordById() only checks for access
attached to a view.

And group files are not attached to a view so can't be seen.

One can see files in Content -> Files because the files have an owner id
set but not in Group -> [groupname] -> Files because they don't have an
owner.

So I think we need to check if artefact has no owner but has a group id
and then get who is allowed to view artefact and add that to its access
array.

Does that sound like what the problem is?

-- 
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/1237177

Title:
  Elastic Search does not find media in a group

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  Version: Mahara 1.8rc2dev
  DB: PostGres
  Vanilla install.

  (but also same issue with MySql Elastic search on my local changes for
  Palnet - v1.4 upgraded to 1.8).

  
  Create a document under a group with all permissions enabled (Admin and Member: view, edit, public ticked). 

  Once the cron job has run, the search cannot find the file.

  If you create a group page with the same document embeded and share
  the page, the search will find the file.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1237177/+subscriptions


Follow ups

References