pdns
pdns copied to clipboard
auth: invalid LOC normalization
- Program: Authoritative
- Issue type: Bug report
Short description
For certain valid LOC record contents, the API returns an error: Not in expected format
.
Environment
- Operating system: Ubuntu
- Software version: 4.4.1-1pdns.bionic
- Software source: PowerDNS repository
Steps to reproduce
- Provision a LOC record with content
49 18 0.000 N 10 35 0.000 E 409.00m
using the API
Expected behaviour
record accepted
Actual behaviour
The API returns an error: Not in expected format (parsed as '49 17 60.000 N 10 35 0.000 E 409.00m 1.00m 10000.00m 10.00m'
Other information
@Habbie stated on IRC that that's a bug.
Yep! 18 minutes and 0 seconds should be represented as 18 and 0, not 17 and 60. The 60 is out of range.
Some of the issues I reported and which are now in this milestone don't really affect our production (such as CDS record content validation, which we do through dnspython).
However, this is one out of two bugs relevant to us, and has caused us to disable LOC support, with some users now (surprisingly ...) waiting to be able to use it. Just wanted to let you know in case it makes a prio difference.