Bug 669578

Summary: creating dns zone can trow error reporting int exceeds XML-RPC limits
Product: [Retired] freeIPA Reporter: Michael Gregg <mgregg>
Component: ipa-admintoolsAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: benl, dpal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: freeipa-2.0.0-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-28 09:40:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michael Gregg 2011-01-14 02:29:37 UTC
Description of problem:
trying to create a new dns zone, I'm getting a error. 
I may be using the tool incorrectly at the moment, but it would be nice if it told me more about what is going on. I'm not sure what to change. 
What int is too large?

Version-Release number of selected component (if applicable):
ipa-admintools-2.0-0.2011011318git1dc48bc.fc14.x86_64

How reproducible:
always

Steps to Reproduce:
1.ipa dnszone-add --name-server=192.168.122.214 --admin-email=mgregg --serial=20100101010 --refresh=300 --retry=300 --expire=1200000 --minimum=3000 --maximum=9200 --ttl=100 newz
2.
3.
  
Actual results:
ipa: ERROR: non-public: OverflowError: int exceeds XML-RPC limits
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 125, in execute
    result = self.Command[_name](*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 417, in __call__
    ret = self.run(*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 697, in run
    return self.forward(*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 718, in forward
    return self.Backend.xmlclient.forward(self.name, *args, **kw)
  File "/usr/lib/python2.7/site-packages/ipalib/rpc.py", line 356, in forward
    response = command(*xml_wrap(params))
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1564, in __request
    allow_none=self.__allow_none)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1085, in dumps
    data = m.dumps(params)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 632, in dumps
    dump(v, write)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 654, in __dump
    f(self, value, write)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 735, in dump_struct
    dump(v, write)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 654, in __dump
    f(self, value, write)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 665, in dump_int
    raise OverflowError, "int exceeds XML-RPC limits"
OverflowError: int exceeds XML-RPC limits
ipa: ERROR: an internal error has occurred

Comment 1 Rob Crittenden 2011-01-14 02:40:58 UTC
I'm guessing it is the serial number that is causing the overflow. XML-RPC has rather limited data types, since we don't do any math on this I wonder if it makes sense to declare it a string.

Comment 2 Dmitri Pal 2011-01-14 16:44:44 UTC
https://fedorahosted.org/freeipa/ticket/770

Comment 3 Dmitri Pal 2011-02-10 21:04:27 UTC
Fixed in: 886e417fd76b25a28cde70be8de2851047ed0338