Skip to content

KC-1408: Treat first-time share invitations as success in Service Mode - #2325

Merged
craiglurey merged 2 commits into
releasefrom
KC-1408
Aug 27, 2026
Merged

KC-1408: Treat first-time share invitations as success in Service Mode#2325
craiglurey merged 2 commits into
releasefrom
KC-1408

Conversation

@sshrushanth-ks

Copy link
Copy Markdown
Contributor

Summary

Fixed Service Mode so first-time shares to users with no existing relationship return success after sending an invitation, instead of HTTP 500. The invite itself was working; nsf-share-record treated the invitation notice as a hard error, and share-folder also logged User not found, which the Service Mode parser treated as failure. Invite success is now signaled with a distinct ShareInviteSentError so genuine share failures are not masked.

Changes

  • common.py / __init__.py: Added ShareInviteSentError and raised it from handle_share_invite on successful invite send
  • sharing_commands.py: Caught ShareInviteSentError for nsf-share-record and logged it as a warning
  • folder_commands.py: Narrowed the nsf-share-folder catch from broad ValueError to ShareInviteSentError
  • register.py: Stopped share-folder from logging User not found after a successful invite
  • parse_keeper_response.py: Treated “share invitation has been sent to” as success, with throttle and forbidden keeping precedence
  • test_nested_share_folder.py: Added invite-success and genuine-failure tests for nsf-share-record / nsf-share-folder
  • test_throttle_response.py: Added parser tests for invitation success and throttle/forbidden precedence

#2303)

* Treat first-time share invitations as success in Service Mode

* Use ShareInviteSentError so NSF invite success does not mask real share failures
@sshrushanth-ks sshrushanth-ks self-assigned this Aug 27, 2026
Remove imports and tests for PAMDebugACLCommand and PAMDebugLinkCommand,
which were deleted in commit 2f1447a. Update test file to only include
tests for modules that still exist.
@sshrushanth-ks
sshrushanth-ks marked this pull request as ready for review August 27, 2026 11:03
@craiglurey
craiglurey merged commit 1ec0485 into release Aug 27, 2026
4 checks passed
@sk-keeper
sk-keeper deleted the KC-1408 branch August 27, 2026 16:07
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