New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
introduce Chmod2 request #3773
introduce Chmod2 request #3773
Conversation
easy to get mixed up in writing it, so retain for future convenience
62d8c2a
to
3a6b21c
Compare
This method can be removed altogether once @dominikl's Java gateway work is in.
OMERO-5.1-merge-integration-java now has 48 more passing tests. 😃 |
Probably hold off extensive manual testing until the failing Python test is fixed. |
Just did a quick check connecting the |
After the fixes of @mtbc to be tested with the Step 2 of https://www.openmicroscopy.org/private/ome-internal/testing_scenarios/AdminGroupUserEdit.html |
Done. Currently "waiting" I'll leave you to re-list as appropriate. |
Thank you! I'll leave those gateway test changes for another time so as not to cause any test failures that may delay #3739. |
The last two commits bring to |
@mtbc : do I understand that now the test here is:
|
That's a really good question. Yes, I would guess, the last step is that user-5 chmods the group to be private. Of course, user-3's tag ought not be deleted. |
Also worth testing:
I should have thought about that before. |
Sorry, getting a bit confused here. Why @joshmoore mentions chown ? (change ownership, why ? the PR does not deal with this ?). Please relist for tomorrow with my name. |
(sorry, did not get earlier to this due to LDAP) |
No problem, the LDAP ones can be tricky to test. It is easy to mix up chown with chmod! 😃 |
Indeed! Corrected my typo. |
The test of #3773 (comment) passed as expected. Both a tag of user-3 on image as well as on the dataset itself were preserved when user-5 downgraded the group to private. |
Interestingly, the case #3773 (comment) (the downgrade of r-a to p when non-owner of the images tags an image) is not allowed in web client. Discussing with @will-moore , all what web client is doing in such cases is But all this together makes not sense - the client-server binding in this workflow seems to be lacking - are we missing some pieces here ? @mtbc @joshmoore |
So the chmod worked fine from the CLI but not web? |
@mtbc : No, the CLI failed as well with
Trying Insight now. |
Insight succeeded where Web and CLI failed. The group is now Private. Edit The group is now private. |
Tag was preserved but unlinked as expected in the case of #3773 (comment). What is surprising is the failure of Web and CLI to allow such downgrade, |
I suppose the integration test at https://github.com/snoopycrimecop/openmicroscopy/blob/merge/develop/latest/components/tools/OmeroJava/test/integration/chmod/PermissionsTest.java running at https://ci.openmicroscopy.org/job/OMERO-5.1-merge-integration-java/lastCompletedBuild/testngreports/integration.chmod/PermissionsTest/ actually covers a very similar case. |
NB: likely should consider the lack of |
Insight does seem to use |
At least in today's merge, web still uses the admin service's |
@pwalczysko: I think then good to merge? |
Good to merge |
Uses of
Chmod
requests are now actioned by theChmod2
implementation. Chmod-related integration tests should pass. Also try changing group permissions from the client to make sure it works correctly. (The admin service'schangePermissions
still uses the oldChmod
but the clients don't much use that.)This PR should be suitable for 5.1 so that a 5.1.1 (or trout-latest) client can work with a 5.1.2 (or trout-merge) server and vice versa: no commits with this PR switch clients to use
Chmod2
directly.--no-rebase