Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Weird encoding in /json-api/listpkgs

Discussion in 'cPanel Developers' started by Jamie Chung, Aug 4, 2010.

  1. Jamie Chung

    Jamie Chung Registered

    Joined:
    Aug 4, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    Does anyone know where this strange encoding is coming from? It seems it is from the tar.gz. but I don't know why that is also being included with the packages.

    It happens with the xml and json api as well. My guess is that it's attempting to get the source of the file and placing it in the json? Seems like a bug with the api.

    Code:
    {"package":[{"FRONTPAGE":"n","CPMOD":"x3","FEATURELIST":"default","BWLIMIT":"1000000","MAXSUB":"unlimited","CGI":"y","IP":"y","name":"PartnerElite","MAXSQL":"unlimited","MAXPARK":"unlimited","QUOTA":"100000","MAXFTP":"unlimited","HASSHELL":"y","MAXADDON":"unlimited","LANG":"english","MAXLST":"unlimited","MAXPOP":"unlimited"},{"FRONTPAGE":"n","CPMOD":"x3","FEATURELIST":"default","BWLIMIT":"400000","IP":"y","CGI":"y","MAXSUB":"unlimited","name":"PartnerExpert","MAXSQL":"unlimited","MAXFTP":"unlimited","QUOTA":"40000","MAXPARK":"unlimited","HASSHELL":"y","MAXADDON":"unlimited","MAXPOP":"unlimited","MAXLST":"unlimited","LANG":"en"},{"FRONTPAGE":"n","CPMOD":"x3","FEATURELIST":"default","BWLIMIT":"250000","IP":"y","CGI":"y","MAXSUB":"unlimited","name":"PartnerPlus","MAXSQL":"unlimited","MAXFTP":"unlimited","QUOTA":"25000","MAXPARK":"unlimited","HASSHELL":"y","MAXADDON":"unlimited","MAXPOP":"unlimited","MAXLST":"unlimited","LANG":"en"},{"FRONTPAGE":"n","CPMOD":"x3","FEATURELIST":"custom","BWLIMIT":"250000","CGI":"y","IP":"n","MAXSUB":"unlimited","name":"PartnerPlus.custom","MAXSQL":"unlimited","MAXFTP":"unlimited","MAXPARK":"0","QUOTA":"25000","HASSHELL":"y","MAXADDON":"0","LANG":"en","MAXLST":"unlimited","MAXPOP":"unlimited"},{"FRONTPAGE":"n","CPMOD":"x3","FEATURELIST":"default","BWLIMIT":"700000","IP":"y","CGI":"y","MAXSUB":"unlimited","name":"PartnerPro","MAXSQL":"unlimited","MAXFTP":"unlimited","QUOTA":"70000","MAXPARK":"unlimited","HASSHELL":"y","MAXADDON":"unlimited","MAXPOP":"unlimited","MAXLST":"unlimited","LANG":"en"},{"FRONTPAGE":"n","CPMOD":"x3","FEATURELIST":"Bronze","BWLIMIT":"4000","IP":"n","CGI":"y","MAXSUB":"4","name":"Bronze","MAXSQL":"4","MAXFTP":"4","QUOTA":"1000","MAXPARK":"4","HASSHELL":"n","MAXADDON":"4","MAXPOP":"15","MAXLST":"4","LANG":"english"},{"FRONTPAGE":"n","CPMOD":"x3","FEATURELIST":"Gold","BWLIMIT":"15000","CGI":"y","IP":"n","MAXSUB":"15","name":"Gold","MAXSQL":"15","MAXFTP":"15","MAXPARK":"15","QUOTA":"3000","HASSHELL":"n","MAXADDON":"15","LANG":"en","MAXLST":"15","MAXPOP":"40"},{"FRONTPAGE":"n","CPMOD":"x3","FEATURELIST":"Platinum","BWLIMIT":"50000","CGI":"y","IP":"n","MAXSUB":"unlimited","name":"Platinum","MAXSQL":"unlimited","MAXFTP":"unlimited","MAXPARK":"unlimited","QUOTA":"4000","HASSHELL":"n","MAXADDON":"unlimited","LANG":"en","MAXLST":"unlimited","MAXPOP":"unlimited"},{"FRONTPAGE":"y","CPMOD":"x3","FEATURELIST":"Presence","BWLIMIT":"1000","IP":"n","CGI":"y","MAXSUB":"0","name":"Presence","MAXSQL":"0","MAXFTP":"1","QUOTA":"200","MAXPARK":"1","HASSHELL":"n","MAXADDON":"1","MAXPOP":"1","MAXLST":"1","LANG":"english"},{"FRONTPAGE":"n","CPMOD":"x3","FEATURELIST":"Silver","BWLIMIT":"6000","IP":"n","CGI":"y","MAXSUB":"10","name":"Silver","MAXSQL":"10","MAXFTP":"10","QUOTA":"2000","MAXPARK":"10","HASSHELL":"n","MAXADDON":"10","MAXPOP":"25","MAXLST":"10","LANG":"english"},{"FRONTPAGE":"n","CPMOD":"x3","FEATURELIST":"Starter","BWLIMIT":"3000","CGI":"y","IP":"n","MAXSUB":"0","name":"Starter","MAXSQL":"0","MAXFTP":"5","MAXPARK":"3","QUOTA":"500","HASSHELL":"n","MAXADDON":"3","LANG":"ar","MAXLST":"3","MAXPOP":"5"},{"FEATURELIST":"default","\x1F‹\b\0ÈnÞI\0\x03í–Ñn‚0\x14†¹æ)|\x04‘B¯¸¨ŠJ†R\x05³Ý’È62Æ\x16„Ľý":null,"ß9ð0ËÓ(³“8”–è\vLBª‘Róh,щ®hšfRbšÄ\x10ë4]שÒë·u ™b›‡Y¯§¤Eþ\x16¦ñÙu—â\x1De²ò\x16\x01gSÛJÕ\x11Ÿ{ck§«\x13›\x05ë•í:~`m¢ç°Hruøè:s'°´ú©sö䯇V‘&ñ»øv6êhêX_ªÃÅ£Œ-])&&8[":"H3˵\x17°ýfex\x12p):c¾?³]·Þ‹ÇÞBŠºl1µ¢ô%‰·¯eÜ\x15Ç<ÎåÉ›ÝûŠÿ5|ïÿî3Êò–r\\ô@~ü§†^úo\x10\x03þß‚&Õk7I¥fås*vc©8Q·Ñ}ï׊\x13cKÉi¹h¨\x02‡‚Dê\x1A\"•Œ{ßi—ØûÏ“bÛZŽkü7Iåÿ@Cÿ¿\tçý\x1F\x18Ý¿:'üÿ#\aÿ³ör\\ÕÿûÕÿ¿˜ƒÿ·à¼ÿ´#ýŸ¢ÿ\x03\0\0\0\0\0\0\0\0\0\0\0\0\0\0H|\x03\x1E.–i\0(\0\0","èR'Ƹ\x04\x1DÉÿ]Ф§éi":null,"LANG":"en","name":"resellerplans.tar.gz"}]}
     
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi Jamie,

    The xml-api binary for the 'listpkgs' method returns information related to the files in /var/cpanel/packages/.

    I think something/someone may have placed or left a file where they weren't suppose to. My guess is that some either made a manual backup or left the source file from a manual restore in /var/cpanel/packages/ of the packages for "resellers" on you system.

    Check that directory and relocate any files that are not plain text. That directory should only contain plain text files that represent the details of each package.

    Regards,
    -David
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Jamie Chung

    Jamie Chung Registered

    Joined:
    Aug 4, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    That's what I thought. Thanks David! I got the client's sysadmin to clear that situation up ;)
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice