You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue seems to be partially analized and fixed; right at mx.nic.rdap.server.servlet.DomainSearchServlet.getPartialSearch(String, RdapSearchRequest, DomainDAO) there's this block:
switch (request.getParameterName()) {
caseDOMAIN_NAME:
if (!RdapConfiguration.hasZoneConfigured()) {
// Is valid if there are no available zones, because the// rdap could only respond to autnum and ip networks// (RIR).thrownewNotImplementedException();
}
Fine, probably that's the case why the zones weren't configured, but what if they where intentionally not configured by other reasons, or they weren't configured just by mistake?
As I've understood, the server will return the 501 code when the configurator/user explicitly wants to, not by business validations (probably in some cases this is the best option). So, if the server "could only respond to autnum and ip networks" the most likely case is that the other servlets (domain(s), nameserver(s)) will be disabled at a higher level.
My proposal is that instead of returning "NotImplementedException" the function could return a "NotFoundException" (if possible, with a significative message), since the service actually could be implemented.
The same issue is at function getRegexSearch in the same class.
The text was updated successfully, but these errors were encountered:
Well, the fix was made but it has been invalidated by commit ec56939 since the zones configuration has changed its logic and now depends mostly of the implementation.
Verified. If a user searches a domain that is managed by a zone that is not configured in rdap-server (for example, domain.fr), the following error message is returned:
{"rdapConformance":["rdap_level_0"],"errorCode":"404","title":"Object not found","description":"Zone not found."}
This issue seems to be partially analized and fixed; right at
mx.nic.rdap.server.servlet.DomainSearchServlet.getPartialSearch(String, RdapSearchRequest, DomainDAO)
there's this block:Fine, probably that's the case why the zones weren't configured, but what if they where intentionally not configured by other reasons, or they weren't configured just by mistake?
As I've understood, the server will return the 501 code when the configurator/user explicitly wants to, not by business validations (probably in some cases this is the best option). So, if the server "could only respond to autnum and ip networks" the most likely case is that the other servlets (domain(s), nameserver(s)) will be disabled at a higher level.
My proposal is that instead of returning "NotImplementedException" the function could return a "NotFoundException" (if possible, with a significative message), since the service actually could be implemented.
The same issue is at function getRegexSearch in the same class.
The text was updated successfully, but these errors were encountered: