-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect type used for zone serial number. #1
Comments
Thank for finding and filing this bug. I've looked into it briefly and at first glance it appears that the fix for this is tricky, because the swagger spec (from which this library is generated - https://github.com/PowerDNS/pdns/blob/master/docs/http-api/swagger/authoritative-api-swagger.yaml) does not support the uint family of datatypes (https://swagger.io/docs/specification/data-models/data-types/). I'll try digging in a bit more to see if there's a work around. |
Wouldn't it be possible to use the minimum and maximum keywords to limit it from
|
we're also hitting this in production unfortunately :(
|
The Serial field of the Zone struct is set to the incorrect type (int32, while it should be uint32).
According to RFC1035 section 3.3.13 the serial number of a SOA resource record is a 32 bit unsigned integer.
This causes the following error when the serial number is larger than 2^31-1:
The text was updated successfully, but these errors were encountered: