-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check that a relative name plus the zone's origin is not too long. (#997
) Previously it was possible to add very long relative names to a relative zone which could never be rendered due to being too long for wire format. Now we check this as part of _validate_name(). This code also removes duplicated name validation code from Zone and Version, consolidating it into one helper function. Finally, we fix a few comments in get methods that have cut-and-paste typos from the find variant indicating they can raise KeyError when they cannot.
- Loading branch information
Showing
2 changed files
with
53 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters