]> git.ipfire.org Git - thirdparty/pdns.git/commit - pdns/ws-auth.cc
API: dot correctness
authorChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Fri, 4 Dec 2015 19:28:16 +0000 (20:28 +0100)
committerChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Sun, 6 Dec 2015 14:57:31 +0000 (15:57 +0100)
commit1d6b70f9d72a2554b0be08d19f646ee3899d4225
tree254b821104e70df72876605805902a4f2259a048
parentbe9d7339ad735a8d7a01508bd1a8b645a986abc5
API: dot correctness

From and to API consumers we'll now always require/send names (and
content) with dots. To the backend, we'll always require/send without
dots. Some API tests now check the data written to the sqlite DB, too.

Incoming names are now checked against a restricted list of chars,
fixing #1437. The double dot case is taken care of by DNSName (and
we'll no longer report an ISE if DNSName parsing fails - we make
sure to parse all names in a try/except).

Cleanup leftovers from pre-DNSName times.

Turn auth api tests back on in travis.
.travis.yml
docs/markdown/httpapi/api_spec.md
pdns/json.cc
pdns/json.hh
pdns/ws-api.cc
pdns/ws-api.hh
pdns/ws-auth.cc
pdns/ws-recursor.cc
regression-tests.api/runtests.py
regression-tests.api/test_Zones.py
regression-tests.api/test_helper.py