Skip to content

fix: ignore client sent option UUID and generate new UUID on column update - #2899

Open
samin-z wants to merge 2 commits into
mainfrom
bug/2897-selection-column-uuid
Open

fix: ignore client sent option UUID and generate new UUID on column update#2899
samin-z wants to merge 2 commits into
mainfrom
bug/2897-selection-column-uuid

Conversation

@samin-z

@samin-z samin-z commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Issue: #2897

Behaviour:

Upon column update, any UUID sent in the request payload is ignored (to prevent client manipulation and to preserve the server managed identity). existing options keep their stored UUID and new options get a newly generated one.

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔙 Backport requests are created or not needed: /backport to stableX.X
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

…pdate

Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
@samin-z
samin-z requested review from blizzz and enjeck as code owners August 19, 2026 08:28
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Aug 19, 2026
@samin-z samin-z moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Aug 19, 2026

@blizzz blizzz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Brief look, left a comment. But a UUID should never be regenerated, it must remain stable once assigned upon creation.

$this->setUuid($existingUuid);
return;
}
$this->setUuid(Uuid::v7()->toRfc4122());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure having it here. It should be exclusively generated when creating an option first time.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks for the review, i refactored it.

Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
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