BIND 10 #1373: DataSourceClient::getIterator should differentiate no-such-zone case
BIND 10 Development
do-not-reply at isc.org
Sat Nov 5 05:58:39 UTC 2011
#1373: DataSourceClient::getIterator should differentiate no-such-zone case
-------------------------------------+-------------------------------------
Reporter: jinmei | Owner:
Type: defect | Status: new
Priority: major | Milestone: Next-
Component: data source | Sprint-Proposed
Sensitive: 0 | Keywords:
Sub-Project: DNS | Defect Severity: N/A
Estimated Difficulty: 0 | Feature Depending on Ticket:
Total Hours: 0 | Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
Currently it throws a generic DataSourceError exception (and the
python version raises isc.datasrc.Error). Since this can be thrown
for other reasons than the case where the specified zone doesn't
exisit, xfrout cannot decide whether it should return NOTAUTH
or other Rcode.
The bottom line is we should differentiate this case with other errors.
Possibilities include a separate error code with NULL/None (like find())
and a dedicated exception. I personally prefer the former especially
for C++, but that's debatable.
--
Ticket URL: <http://bind10.isc.org/ticket/1373>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list