Skip to content

[Studio] fix: validate instance updates - #615

Open
yx9o wants to merge 1 commit into
apache:rocketmq-studiofrom
yx9o:dev-613
Open

[Studio] fix: validate instance updates#615
yx9o wants to merge 1 commit into
apache:rocketmq-studiofrom
yx9o:dev-613

Conversation

@yx9o

@yx9o yx9o commented Jul 26, 2026

Copy link
Copy Markdown

What is the purpose of the change

Fixes #613 .

Prevent /api/instances/update from accepting blank name or endpoint values and persisting invalid instance data.

Brief changelog

  • Reject non-null blank instance names and endpoints with HTTP 400.
  • Validate all supplied required fields before modifying the existing instance.
  • Preserve partial update semantics for omitted fields.
  • Add regression tests for validation failures and mutation prevention.

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