Storage read-replica mode settings refuse comma lists #325
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#316 Epic: Enum fields in API request bodies accept names only
lantea-one/ninlil
Reference
lantea-one/ninlil#325
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of epic #316.
Why
The MySQL load-balance and MongoDB read-preference parsers use
Enum.TryParseon a non-flagsenum, so
"1,2"is read asLeastConnections.What changes
Both parsers use
EnumNameParser.TryParseName.Acceptance
dotnet test src/dotnet/tests/Ninlil.Dns.Data.Testspasses with the two new_IsRefusedtests, which fail first.Source
MySqlConnectionStringComposer.cs:139-153,MongoClientSettingsComposer.cs:199-213.Work package detail
MySqlConnectionStringComposer.cs:139-153andMongoClientSettingsComposer.cs:199-213:replace the
Enum.TryParse && IsDefined && !int.TryParsechain withEnumNameParser.TryParseName(value.Trim(), true, out …).src/dotnet/tests/Ninlil.Dns.Data.Tests/MongoClientSettingsComposerTests.cs, plus anew
MySqlConnectionStringComposerTests.csin the same project.Compose_WithACommaListLoadBalance_IsRefused("1,2")Compose_WithACommaListReadPreference_IsRefuseddotnet test src/dotnet/tests/Ninlil.Dns.Data.Tests.Ghost referenced this issue2026-11-05 20:00:31 -05:00
Ghost referenced this issue2026-11-05 20:01:25 -05:00