#5894 makeapi validation fails on architectures where integer is less than 32 bits
Closed: Fixed None Opened 7 years ago 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:

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

ipa-4-3:

  • f8edf37 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

7 years ago

Login to comment on this ticket.

Metadata