more carefully prevent update/delete for user group#5284
Conversation
for handling users' directories
required for user photos
|
In general, this code block has long caused issues. I'm slightly nervous about having something as specific as |
|
It might be that I should create a DevX card for simpllifying this block, seeing which tests break, and justifying to ourselves that those tests aren't at fault. As things are, as with the graphs work, a facet of my initial approach to implementing light admin restrictions is to try to avoid unnecessary changes in behavior, so I am trying not to tweak existing tests. Speculating wildly: it is also possible that there is actually some |
|
tested locally with this PR in (scc merge roles). Testing the test in header of https://github.com/openmicroscopy/omero_private/issues/13 ended with failure as expected. Adjusting the test according to https://github.com/openmicroscopy/omero_private/pull/15#issuecomment-283307652 fixed the failing test into a passing test. The removal of the Skp lines in https://github.com/pwalczysko/openmicroscopy/blob/new-role-cleaned/components/tools/OmeroJava/test/integration/LightAdminRolesTest.java#L1577 . The skipped tests passed as well as expected. Ready to merge RMPOV |
|
Created https://trello.com/c/PAg0H0wB/756-review-group-permissions-in-server to note ongoing uncertainty. |
What this PR does
Makes the ACL checks for update/delete wrt the
usergroup clearer and safer.Testing this PR
https://10.0.51.154:8443/job/OMERO-test-integration/testngreports/ should have no skips or failures: @pwalczysko, this PR should fix all cases of
testOfficialScriptDeleteNoSudoif you want to try again removing the skip. (Can be tested locally if need be.)The test in the description of https://github.com/openmicroscopy/omero_private/issues/13 should fail. (Source may need a bit of tweaking for current branch, but not much:
PYTHON_MIMETYPE == "text/x-python"androlesis now already a field in the superclass.)