UAPI userdata mismatching "ssl" field between users

Jul 4, 2017
5
1
3
Sofia, Bulgaria
cPanel Access Level
Root Administrator
Hello,

I'm noticing strange behavior when using UAPI's DomainInfo single_domain_data - when using the json I'm getting field "ssl": 1 (int) for some users and "ssl":"1" (string) for other users. Why is this happening and how can I fix this? Anyone had similar problems?
 
  • Like
Reactions: anowar

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

Could you post the full output that you see, ensuring to replace any identifying information with examples? Also, could you confirm what steps you are taking to reproduce the issue?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

Can you reproduce this when using the "uapi --user=user1 DomainInfo single_domain_data domain=domain1.com_SSL --output=json" command on in it's own, before it's output to ".result.data.ssl"?

Also, per the documentation, this UAPI function only supports the domain name itself, as opposed to "domain1.com_SSL". If you'd like to see if the SSL certificate is installed, you may find one of these UAPI functions more helpful:

UAPI Functions - SSL::installed_host - Software Development Kit - cPanel Documentation
UAPI Functions - SSL::installed_hosts - Software Development Kit - cPanel Documentation

Thank you.