Skip to content

Fix misleading error for empty etcd2 endpoints#2363

Open
vakhov wants to merge 1 commit into
masterfrom
gh-2319-fix-empty-etcd2-endpoints
Open

Fix misleading error for empty etcd2 endpoints#2363
vakhov wants to merge 1 commit into
masterfrom
gh-2319-fix-empty-etcd2-endpoints

Conversation

@vakhov
Copy link
Copy Markdown
Contributor

@vakhov vakhov commented Jan 30, 2026

Fix issue where trailing newlines in etcd2 endpoint configuration caused confusing 'Invalid URI ""' validation errors.

Changes:

  • Backend: Skip empty strings in topology.lua endpoint validation
  • Frontend: Add trim and filter to FailoverModalForm before submission

Fixes #2319

I didn't forget about

  • Tests
  • Changelog
  • Documentation

Fix issue where trailing newlines in etcd2 endpoint configuration
caused confusing 'Invalid URI ""' validation errors.

Changes:
- Backend: Skip empty strings in topology.lua endpoint validation
- Frontend: Add trim and filter to FailoverModalForm before submission

Fixes #2319
@vakhov vakhov self-assigned this Jan 30, 2026
@olegrok
Copy link
Copy Markdown
Contributor

olegrok commented Feb 2, 2026

Maybe we just need to filter here empty strings?

endpoints: etcd2_params.endpoints ? etcd2_params.endpoints.split('\n') : null,

Just change it to etcd2_params.endpoints.trim().split('\n')

I mean we don't need to filter something on backend.

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.

Error when adding empty etcd endpoint

2 participants