The cookie in ACME processing was supposed to be passed as a part of the REST request but we did not pass those additional headers. Pylint on Rawhide noticed that headers objects were left unused.
2020-11-13T11:26:46.1038078Z Please wait ... 2020-11-13T11:26:46.1038385Z 2020-11-13T11:28:02.8563776Z ************* Module ipaserver.install.ipa_acme_manage 2020-11-13T11:28:02.8565974Z ipaserver/install/ipa_acme_manage.py:50: [W0612(unused-variable), acme_state.__exit__] Unused variable 'headers') 2020-11-13T11:28:02.8567071Z ipaserver/install/ipa_acme_manage.py:57: [W0612(unused-variable), acme_state.enable] Unused variable 'headers') 2020-11-13T11:28:02.8568031Z ipaserver/install/ipa_acme_manage.py:63: [W0612(unused-variable), acme_state.disable] Unused variable 'headers') 2020-11-13T11:28:03.0414660Z ipaserver/install/ipa_acme_manage.py:50: [W0612(unused-variable), acme_state.__exit__] Unused variable 'headers') 2020-11-13T11:28:03.0416409Z ipaserver/install/ipa_acme_manage.py:57: [W0612(unused-variable), acme_state.enable] Unused variable 'headers') 2020-11-13T11:28:03.0417399Z ipaserver/install/ipa_acme_manage.py:63: [W0612(unused-variable), acme_state.disable] Unused variable 'headers') 2020-11-13T11:28:03.4562279Z ipaserver/install/ipa_acme_manage.py:50: [W0612(unused-variable), acme_state.__exit__] Unused variable 'headers') 2020-11-13T11:28:03.4563879Z ipaserver/install/ipa_acme_manage.py:57: [W0612(unused-variable), acme_state.enable] Unused variable 'headers') 2020-11-13T11:28:03.4565294Z ipaserver/install/ipa_acme_manage.py:63: [W0612(unused-variable), acme_state.disable] Unused variable 'headers') 2020-11-13T11:28:03.8391323Z ipaserver/install/ipa_acme_manage.py:50: [W0612(unused-variable), acme_state.__exit__] Unused variable 'headers') 2020-11-13T11:28:03.8393040Z ipaserver/install/ipa_acme_manage.py:57: [W0612(unused-variable), acme_state.enable] Unused variable 'headers') 2020-11-13T11:28:03.8393811Z ipaserver/install/ipa_acme_manage.py:63: [W0612(unused-variable), acme_state.disable] Unused variable 'headers') 2020-11-13T11:28:06.8384030Z ipaserver/install/ipa_acme_manage.py:50: [W0612(unused-variable), acme_state.__exit__] Unused variable 'headers') 2020-11-13T11:28:06.8385241Z ipaserver/install/ipa_acme_manage.py:57: [W0612(unused-variable), acme_state.enable] Unused variable 'headers') 2020-11-13T11:28:06.8385979Z ipaserver/install/ipa_acme_manage.py:63: [W0612(unused-variable), acme_state.disable] Unused variable 'headers') 2020-11-13T11:28:08.5773358Z ipaserver/install/ipa_acme_manage.py:50: [W0612(unused-variable), acme_state.__exit__] Unused variable 'headers') 2020-11-13T11:28:08.5775131Z ipaserver/install/ipa_acme_manage.py:57: [W0612(unused-variable), acme_state.enable] Unused variable 'headers') 2020-11-13T11:28:08.5776117Z ipaserver/install/ipa_acme_manage.py:63: [W0612(unused-variable), acme_state.disable] Unused variable 'headers') 2020-11-13T11:28:08.7965764Z ipaserver/install/ipa_acme_manage.py:50: [W0612(unused-variable), acme_state.__exit__] Unused variable 'headers') 2020-11-13T11:28:08.7967422Z ipaserver/install/ipa_acme_manage.py:57: [W0612(unused-variable), acme_state.enable] Unused variable 'headers') 2020-11-13T11:28:08.7968600Z ipaserver/install/ipa_acme_manage.py:63: [W0612(unused-variable), acme_state.disable] Unused variable 'headers') 2020-11-13T11:28:09.0848289Z ipaserver/install/ipa_acme_manage.py:50: [W0612(unused-variable), acme_state.__exit__] Unused variable 'headers') 2020-11-13T11:28:09.0849746Z ipaserver/install/ipa_acme_manage.py:57: [W0612(unused-variable), acme_state.enable] Unused variable 'headers') 2020-11-13T11:28:09.0850573Z ipaserver/install/ipa_acme_manage.py:63: [W0612(unused-variable), acme_state.disable] Unused variable 'headers')
and so on.
I have a fix in my Rawhide adaptation patchset: https://github.com/freeipa/freeipa/pull/5258/commits/a249c4d14a1c4a9fe87bb1e3436cb3d065de606d
I fixed it in a slightly different way. There is a **kw option available to pass things like the set of headers so I used that interface.
PR https://github.com/freeipa/freeipa/pull/5271
Metadata Update from @abbra: - Assignee reset
Metadata Update from @abbra: - Issue assigned to rcritten
master:
Metadata Update from @abbra: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.