roxy icon indicating copy to clipboard operation
roxy copied to clipboard

Granular "Data" permissions and collections

Open prestonmcgowan opened this issue 10 years ago • 6 comments

I would like to have more granular control over the permissions and collections being applied to the documents I put in the Data directory.

I think xqsync keeps a metadata document which stores permissions and collections when syncing from ML to a filesystem/zip. Could this format be used?

prestonmcgowan avatar Sep 06 '13 12:09 prestonmcgowan

This is related to #106, but goes further.

dmcassel avatar Sep 09 '13 20:09 dmcassel

You can do this with MLCP too..

grtjn avatar Mar 04 '16 19:03 grtjn

I propose closing this, since Roxy is integrated with MLCP and MLCP can already do this. If anyone thinks this still needs to be added to Roxy, please speak up.

dmcassel avatar Mar 04 '16 21:03 dmcassel

I still think it would be useful to support it in Roxy. In my scenario the container running Roxy does not Java runtime so MLCP is not an easy option. I tries to set

options[:collections]="my-collection"

but that does not seem to work. From AccessLog I can see:

"PUT /insert?uri=%2Ftest%2Fxray%2Ftriplestore%2Fparent%2Fparent-11.xml&coll=my-collection&perm=Raptp-dev-role&perm=Uaptp-dev-role&tzoffset=3600&dbname=aptp-dev-content-test XDBC/1.0" 200 0 - ""

But the document does not have collection.

rlouapre avatar Nov 02 '16 14:11 rlouapre

Nervermind options[:collections] works to set collection.

rlouapre avatar Nov 02 '16 15:11 rlouapre

I'm a little reluctant to support granular permissions and collections. People will likely think such a configuration is cumbersome, and rather tie things to a directory structure instead. I think the ml load command would be useful for this. #106 already suggests adding collection support, this could add command-line permission support on top. Should be relatively straight-forward to add..

grtjn avatar Jun 13 '17 15:06 grtjn