Skip to content

KC-1403: Fix NSF record update "This object no longer exists" after PAM tunnel/connection edit - #2298

Draft
sshrushanth-ks wants to merge 2 commits into
KC-1403from
KC-1403-int
Draft

KC-1403: Fix NSF record update "This object no longer exists" after PAM tunnel/connection edit#2298
sshrushanth-ks wants to merge 2 commits into
KC-1403from
KC-1403-int

Conversation

@sshrushanth-ks

Copy link
Copy Markdown
Contributor

Summary

Fixed nsf-record-update failing with RS_OUT_OF_SYNC / "This object no longer exists" after pam tunnel edit and/or pam connection edit on NSF PAM records. Stale nested_share_records.revision was preferred over a newer classic record_cache revision, and post-PAM sync could roll the revision back from lagging NSF drive metadata.

Changes

  • nested_share_folder/common.py / __init__.py: added get_record_revision() and patch_record_revision() helpers
  • nested_share_folder/record_api.py: update_record_v3 now uses the max known revision, patches both caches on success, and retries once after sync on RS_OUT_OF_SYNC
  • nested_share_folder/sync.py: NSF sync no longer downgrades a newer local revision; reconstruct prefers a fresher classic vault payload over lagging keeperDriveData
  • sync_down.py: classic response.records now refreshes nested_share_records.revision when the UID is NSF
  • tunnel_and_connections.py: switched pam connection edit, pam rbi edit, and pam-split to NSF-aware update_pam_record (same pattern as pam tunnel edit)
  • Updated PAM connection/RBI/split unit tests to mock update_pam_record
  • Added revision/sync coverage in test_nested_share_folder.py and test_sync_down.py

…edits

Keep nested_share_records and record_cache revisions aligned after PAM and
classic sync so NSF updates no longer send a stale revision. Route PAM
connection/RBI/split updates through update_pam_record and retry once on
RS_OUT_OF_SYNC.
Keep NSF permission caches after classic sync, mark classic PAM edits for
resync, and safely retry stale-revision updates.
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.

1 participant