Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jul 2009
    Posts
    19

    Default XML-API Posible Error

    We have found a posible bug in your XML-API

    Bug Info
    ================================================
    Action: listaccts (search).

    query key (1): search
    query value (1): myacc

    query key (2): searchtype
    query value (2): package

    myacc (package) does not exist but the XML return:

    <status>1</status>
    <statusmsg>Ok</statusmsg>

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,711
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by paulipv View Post
    We have found a posible bug in your XML-API

    Bug Info
    ================================================
    Action: listaccts (search).

    query key (1): search
    query value (1): myacc

    query key (2): searchtype
    query value (2): package

    myacc (package) does not exist but the XML return:

    <status>1</status>
    <statusmsg>Ok</statusmsg>
    The status and statusmsg indicate the call executed successfully. With searches in the XML API, if there are no matches, then the call executes successfully and just doesn't return any search results.

    For example, if you search for an existing package that is being used, you will receive results returned in <acct> tags - but when you do a search for a non-existent package, no <acct> tags are returned.

Similar Threads & Tags
Similar threads

  1. xml-api removeacct error
    By uzor in forum cPanel Developers
    Replies: 2
    Last Post: 07-14-2011, 09:12 AM
  2. PHP XML API - output in error log but not on screen!
    By benwiggy in forum cPanel Developers
    Replies: 2
    Last Post: 05-28-2011, 12:23 PM
  3. XML-API function "setacls" documentation error
    By MSTF in forum cPanel Developers
    Replies: 3
    Last Post: 03-04-2011, 09:16 AM
  4. XML-API DNS (killdns response error)
    By paulipv in forum cPanel Developers
    Replies: 2
    Last Post: 07-13-2009, 07:20 PM
  5. XML API: always get login screen, not XML
    By sldff3ald in forum cPanel Developers
    Replies: 3
    Last Post: 09-19-2007, 10:29 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube