Skip to content
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

YDA-6059 fix datarequest api tests #543

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

FuHsinyu
Copy link
Member

@FuHsinyu FuHsinyu commented Jan 8, 2025

Root cause analysis:
In irods, previously, the user can modify the ownership of the file without being the owner (the user may only have read-permission). but now, the user can only modify the ownership of the file, if they are the owner (or stronger rights like admin). For more discussion, see irods/irods#6579

What were done:

  1. Failure in api_datarequest_submit and file_write_and_lock -> moved the current user to be the last who does permission or ownership modification
  2. UPdated api.OK() call to api.Result.ok()

Note, in case you encountered the ReadTimeOut from HTTPConnectionPool, while running API tests. Try to update the timeout of HTTPConnectionPool, e.g, /yoda/yoda-ruleset/tests/venv_pytest/lib/python3.8/site-packages/urllib3/connectionpool.py in the function: _make_request()

Screenshot from 2025-01-08 15-08-15

@FuHsinyu FuHsinyu changed the title Yda 6059 fix datarequest api tests YDA-6059 fix datarequest api tests Jan 8, 2025
@FuHsinyu FuHsinyu marked this pull request as ready for review January 8, 2025 14:09
@lwesterhof lwesterhof self-requested a review January 8, 2025 14:12
Copy link
Member

@lwesterhof lwesterhof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, LGTM!

FuHsinyu and others added 2 commits January 8, 2025 15:46
In iRODS 4.3+, users can now only modify file ownership if they are the owner or have stronger rights (like admin). Previously, users with only read permission could change ownership. For more details, see irods/irods#6579.
@lwesterhof lwesterhof force-pushed the YDA-6059-fix-datarequest-api-tests branch from d9b2973 to a4adace Compare January 8, 2025 14:47
@lwesterhof lwesterhof merged commit 9485712 into development Jan 8, 2025
8 checks passed
@lwesterhof lwesterhof deleted the YDA-6059-fix-datarequest-api-tests branch January 8, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants