Thanks for your comments, Chris.  In response to the solr issue... (see
below)

On Wed, Dec 22, 2010 at 12:51 AM, Christopher Brooks
<[email protected]>wrote:

> Hi Tobias,
>
> > Once we are inside the REST-endpoint, we know who the user is, what
> > groups he/she belongs to and thus what he/she is allowed to see. The
> > difficult part with filtering the search result *after* querying is
> > to return a fixed number of result items when a limit and offset is
> > used for paging. Say the user wants to see page 5 of *his/her* search
>
> I don't know if it is so much difficult as just not really performant
> to do.  But it seems straight forward to do.
>

Solr's queryFilter mechanism [1] is straightforward to use, would require
less time and be less buggy than custom filtering in our code, IMO.


>
> > Solr could do all of that for us in a much faster way without
> > requiring to load all the data if we were able to specify the
> > auth-filter criteria at search time.
>
> I wasn't aware that solr had an understanding of auth - can you point
> me to more info on this?


Solr has an understanding only of what you teach it :)  We can add a new
multivalue "column" to the solr schema containing the group IDs that are
allowed to view a recording, and add a filter to our queries that will limit
results to only those recordings that are available to one of the current
user's groups.

If this needs to change in the future, we simply wipe out solr and reindex
on the next startup.

 As long as it fits with the models we're
> interested in it sounds fine to me to do it.  It's only if it means
> munging all of our auth info into solr that I think it should be
> avoided in a first cut.


FWIW, this seems like the smallest work item in the list to me.


>  I would hate to see us need to keep some 3rd
> party auth system up to date with a custom solr setup if we don't have
> too; that's just asking for synchronization issues.
>

As long as we keep only group IDs in the solr search index, we don't need to
worry about synchronization when memberships change.  If a recording was
somehow moved from one course to another (say, because there was an error
during scheduling that was detected only after publishing), we just re-add
the mediapackage with the correct series, and the auth data will be fixed.

[1]
http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/SolrQuery.html#addFilterQuery(java.lang.String..
.)

Josh
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to