The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XML-API Posible Error

Discussion in 'cPanel Developers' started by paulipv, Jul 9, 2009.

  1. paulipv

    paulipv Member

    Joined:
    Jul 2, 2009
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    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. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page