pdns icon indicating copy to clipboard operation
pdns copied to clipboard

auth: invalid LOC normalization

Open peterthomassen opened this issue 3 years ago • 1 comments

  • 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

  1. 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.

peterthomassen avatar Jul 02 '21 13:07 peterthomassen

Yep! 18 minutes and 0 seconds should be represented as 18 and 0, not 17 and 60. The 60 is out of range.

Habbie avatar Jul 02 '21 13:07 Habbie

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.

peterthomassen avatar Mar 21 '23 15:03 peterthomassen