Skip to content

sharing rules: the recipient guard does not judge two re-point cases (organization_id-only update, and a full-form move that re-sends the same user) #39387

Backlog

Description

@objectstack-fleet

repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

Part of #38254 · review follow-up of PR #39361 (zone ACCEPT 7385421916).
Governing text: PR #39361's rule that the Setup data door refuses a sharing rule whose recipient is invalid.
Filing gate: ③ a follow-up the reviewed change owes. Grading: area:data · domain:server · Task · p3.

What is owed

The recipient guard does not judge two re-point cases:

  • an update that changes only organization_id (packages/plugins/plugin-sharing/src/rule-hooks.ts, about line 482);
  • a full-form save that moves the rule and re-sends the same user (same file, about line 488).

Both can be reached only under group posture or with no wall. After PR #39361 merges, judge the recipient again whenever the rule's organization or target moves, and pin both cases.

Re-check: sed -n 470,500p packages/plugins/plugin-sharing/src/rule-hooks.ts

Activity

  1. added
    pm:queue
    domain:server
    on Dec 3, 2026
  2. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:data · domain:server · Task · p3 · pm:queue · size S, touched 2026-12-03T17:11Z. Rationale: the filer's grade stands. This is a review follow-up PR #39361 owes under #38254: two re-point cases of a sharing rule are not judged again. Both are reachable only under one posture, and the work is pinning them.
    Grade: area:data · Task · p3 · sharing-rule authors under group posture or no wall · read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:datadomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions