#5894 makeapi validation fails on architectures where integer is less than 32 bits
Closed: Fixed Opened by jcholast.

It fails with:

Option in dnszone_add doesn't match. Got Int('idnssoaserial', attribute=True, autofill=True, cli_name='serial', maxvalue=4294967295L, minvalue=1, multivalue=False, required=True) Expected Int('idnssoaserial', attribute=True, autofill=True, cli_name='serial', maxvalue=4294967295, minvalue=1, multivalue=False, required=True)
Option in dnszone_find doesn't match. Got Int('idnssoaserial', attribute=True, autofill=False, cli_name='serial', maxvalue=4294967295L, minvalue=1, multivalue=False, query=True, required=False) Expected Int('idnssoaserial', attribute=True, autofill=False, cli_name='serial', maxvalue=4294967295, minvalue=1, multivalue=False, query=True, required=False)
Option in dnszone_mod doesn't match. Got Int('idnssoaserial', attribute=True, autofill=False, cli_name='serial', maxvalue=4294967295L, minvalue=1, multivalue=False, required=False) Expected Int('idnssoaserial', attribute=True, autofill=False, cli_name='serial', maxvalue=4294967295, minvalue=1, multivalue=False, required=False)
There are one or more changes to the API.
Either undo the API changes or update API.txt and increment the major version in VERSION.

To fix this, we need to use the same formatting for int and long values.


master:

  • 83f6ddb473156c0eb1d85f98a7eb2997e7b70dc5 makeapi: use the same formatting for int and long values

ipa-4-3:

  • f8edf37e9544e319adfff75ba87df826bb1ca42e makeapi: use the same formatting for int and long values

Must go to 4.3, this is blocking build on some architectures.

Metadata Update from @jcholast:
- Issue assigned to jcholast
- Issue set to the milestone: FreeIPA 4.3.2

Metadata