A stored record of a type with no codec no longer makes zone transfers fail #273
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.
Depends on
Reference
lantea-one/ninlil#273
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?
Why
RecordEntityCodec.ToWireRecordreturnsnullfor a record type that has no RDATA codec.RecordEntityCodec.CanWriteRdata(added by #28) lets such a record pass, so it stays in thecached zone. The AXFR path in
src/dotnet/src/Ninlil.Dns.Server.Authoritative/Transfer/ZoneTransferService.cs(around lines122-127) does not filter the nulls, and
DeduplicateRecords(around line 827) then readsrecord.Nameand throwsNullReferenceException. Rows of such a type can arrive by a restore, astorage switch, a cluster sync or a hand edit, like #28's unwritable rows.
TryWriteSoalikewisereturns
falsewith no log when the SOA converts tonull(theoretical while the SOA codec isregistered).
What changes
Treat "no codec for this type" like unwritable data:
CanWriteRdata(or the cache load) leavesthe record out with the same one Warning naming zone, type, name, id and reason, so the resolver,
AXFR, IXFR and the signer all see the same zone. Check every other caller of
ToWireRecordthatcan see a null and decide per site.
TryWriteSoalogs its Warning for a null too.Acceptance
queries for other names and completes an AXFR without that row; one Warning.
Source
Verifier report on #28 (finding 1).
Ghost referenced this issue2026-11-05 00:44:12 -05:00
Ghost referenced this issue2026-11-05 03:53:00 -05:00