hydroshare / IrodsShare

HydroShare access control model for use in Irods and other Irods-based projects.
1 stars 0 forks source link

institute homogeneity testing for HSAccess versus HSAccessObjects #19

Open alvacouch opened 9 years ago

alvacouch commented 9 years ago

There is an assumption of homogeneity between HSAccess and HSAccessObjects responses that should be constantly and consistently verified, regardless of the state changes involved. For example, resource.is_owned() should always return the exact same thing as hsaccess.resource_is_owned(resource.get_uuid()).

However, for purposes of performance, these are implemented differently: HSAccess via direct database queries and HSAccessObjects via cached metadata. .

Thus it is necessary to check that they are always in sync.