documentation and behavior mismatch
URL https://api.docs.cpanel.net/guides/guide-to-custom-dnsadmin-plugins/guide-to-custom-dnsadmin-plugins-the-remote-module-command-methods/#savezone says: "The savezone()
method must include the following input values: ... zone ... zonedata ..."
But it seems that sometimes (For example when user creates subdomain) WHM (118.0.41) is using argument "cpdnszone-domain.tld" having zonedata. And no zone nor zonedata arguments.
Is it bug in WHM or bug in Documentation?
-
Hey there! Can you let me know the specific API call that you're using that you're experiencing an issue with so I can test and confirm this?
0 -
I am making my own dns-cluster plugin (for communicating with our own nameserver) in /usr/local/cpanel/Cpanel/NameServer/{Setup|Remote}. And my code occasionally detects invalid calls from system when doing something with web user interface - for example when user (not admin) adds subdomain.
0 -
I'm not sure I'm going to have a good answer to this one. The WHM interface may behave differently than just a plan API call, but unless you're able to reproduce a specific issue I don't have a way to perform any testing on my end.
0
Please sign in to leave a comment.
Comments
3 comments