https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162017-10-20T21:27:42ZpfSense bugtrackerpfSense - Bug #7972: Captive portals do not synchronize voucher data in both directionshttps://redmine.pfsense.org/issues/7972?journal_id=345232017-10-20T21:27:42ZJim Thompsonjim@netgate.com
<ul><li><strong>Assignee</strong> set to <i>Renato Botelho</i></li><li><strong>Target version</strong> set to <i>2.4.3</i></li></ul> pfSense - Bug #7972: Captive portals do not synchronize voucher data in both directionshttps://redmine.pfsense.org/issues/7972?journal_id=359362018-02-26T07:00:07ZRenato Botelhorenato@netgate.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Fix #7972 Rework the way Captive Portal vouchers are synchronized on HA: - When voucher use is ..." href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/b8963db6fc4ab59aae673f229b76495e85cb3b46">b8963db6fc4ab59aae673f229b76495e85cb3b46</a>.</p> pfSense - Bug #7972: Captive portals do not synchronize voucher data in both directionshttps://redmine.pfsense.org/issues/7972?journal_id=359812018-03-05T23:01:51ZPaighton Bisconer
<ul></ul><p>Tested on 2.4.3.a.20180305.1550</p>
<p>Was able to sync expired vouchers in both directions, resolved.</p> pfSense - Bug #7972: Captive portals do not synchronize voucher data in both directionshttps://redmine.pfsense.org/issues/7972?journal_id=360352018-03-08T14:52:23ZJim Pingle
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul> pfSense - Bug #7972: Captive portals do not synchronize voucher data in both directionshttps://redmine.pfsense.org/issues/7972?journal_id=392062018-11-10T04:02:07ZA FL
<ul></ul><p>Renato wrote:</p>
<blockquote>
<p>When voucher is used, disconnected or expired, sync it in both<br />directions using HA main information on primary to secondary</p>
</blockquote>
<p>It seems that backward synchronization is still not working correctly.</p>
<p><em>xmlrpc_sync_voucher_details()</em> of slave node returns false when a voucher is used/expired on slave, even if credentials of the master node are entered in the slave voucher page.</p>
<p>This happens because a <strong>global $cpzone;</strong> is missing in <em>xmlrpc_sync_voucher_details()</em>, causing the function to never get credentials entered in the voucher page.</p>
<p>Adding this <strong>global $cpzone;</strong> also seems to cause other issues (I am still investigating, but I am suspecting a CARP loop).</p>