Skip to content

KC-1339: Fix nsf-share-folder team/user remove on NSF subfolders#2201

Closed
sshrushanth-ks wants to merge 1 commit into
releasefrom
nsf-share-folder-fix
Closed

KC-1339: Fix nsf-share-folder team/user remove on NSF subfolders#2201
sshrushanth-ks wants to merge 1 commit into
releasefrom
nsf-share-folder-fix

Conversation

@sshrushanth-ks

Copy link
Copy Markdown
Contributor

Summary

nsf-share-folder -a remove failed on NSF subfolders due to incomplete team resolution and accessor lookup. This fix resolves teams from cache, loads accessors via get_folder_access_v3, blocks inherited removes, and syncs local state after success.

Changes

  • helpers.py — resolve team recipients from team_cache when missing from share_objects
  • folder_commands.py@existing uses get_folder_access_v3 for subfolders; skips inherited accessors; sets sync_data on success
  • folder_api.pyrevoke_folder_access_v3 verifies direct access, uses server accessor UIDs, evicts cache, sets sync_data
  • common.pyparse_folder_access_result treats SUCCESS with a message as success
  • test_nested_share_folder.py — added subfolder remove/share tests; moved imports to top; added docstrings
  • test_command_record.py — added docstring for folder JSON consistency test

@sshrushanth-ks sshrushanth-ks self-assigned this Jul 9, 2026
@sshrushanth-ks sshrushanth-ks marked this pull request as ready for review July 9, 2026 05:42
@sshrushanth-ks sshrushanth-ks marked this pull request as draft July 9, 2026 06:56
* Fix nsf-share-folder team/user remove on NSF subfolders

Team recipients are now resolved via team_cache when absent from share_objects, @eXisting uses get_folder_access_v3 for subfolders, revoke verifies direct (non-inherited) accessors before calling access_update, and successful removes set sync_data and update the local access cache.

* refactored code

* Fix nsf-share-folder team grant/remove on NSF subfolders

* addressed review comment
@adeshmukh-ks adeshmukh-ks force-pushed the nsf-share-folder-fix branch from c18359e to 76343d2 Compare July 10, 2026 09:58
@adeshmukh-ks

Copy link
Copy Markdown
Contributor

Closing in favour of this PR

@adeshmukh-ks adeshmukh-ks deleted the nsf-share-folder-fix branch July 10, 2026 12:18
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