diff --git a/CHANGES b/CHANGES index 8507723892..4c987efd83 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +3527. [compat] Add a URI to allow applications to explicitly + request a particular XML schema from the statistics + channel, returning 404 if not supported. [RT #32481] + 3526. [cleanup] Set up dependencies for unit tests correctly during build. [RT #32803] diff --git a/bin/named/statschannel.c b/bin/named/statschannel.c index 0cee240fb7..466fdc12a2 100644 --- a/bin/named/statschannel.c +++ b/bin/named/statschannel.c @@ -1984,8 +1984,10 @@ add_listener(ns_server_t *server, ns_statschannel_t **listenerp, goto cleanup; #ifdef HAVE_LIBXML2 - isc_httpdmgr_addurl(listener->httpdmgr, "/xml", render_index, server); isc_httpdmgr_addurl(listener->httpdmgr, "/", render_index, server); + isc_httpdmgr_addurl(listener->httpdmgr, "/xml", render_index, server); + isc_httpdmgr_addurl(listener->httpdmgr, "/xml/v3", render_index, + server); #endif #ifdef HAVE_JSON isc_httpdmgr_addurl(listener->httpdmgr, "/json", diff --git a/doc/arm/Bv9ARM-book.xml b/doc/arm/Bv9ARM-book.xml index 5eab36cfe5..d1396487e1 100644 --- a/doc/arm/Bv9ARM-book.xml +++ b/doc/arm/Bv9ARM-book.xml @@ -10564,7 +10564,21 @@ ns.domain.com.rpz-nsdname CNAME . >http://127.0.0.1:8888/xml. A CSS file is included which can format the XML statistics into tables when viewed with a stylesheet-capable browser, and into - charts and graphs when using a javascript-capable browser. + charts and graphs using the Google Charts API when using a + javascript-capable browser. + + + + Applications that depend on a particular XML schema + can request + http://127.0.0.1:8888/xml/v2 for version 2 + of the statistics XML schema or + http://127.0.0.1:8888/xml/v3 for version 3. + If the requested schema is supported by the server, then + it will respond; if not, it will return a "page not found" + error.