18.7 captive portal and vouchers doesn't work
Hi. After upgrading to 18.7 my exisiting vouchers are gone... OK. Now when I'm creating new vouchers I get the *.csv for download. But the list is still empty. After this checkup I deleted the voucher server and created a new one. But still doesn't work.
Is there a log file int the cli for the voucher server?
Sounds like the database was damaged. I'm not sure what is where, maybe @AdSchellevis has a bit of time to explain.
I have exactly the same problem. It started after upgrading from 18.1.11 to 18.1.13. I tried to track down the changes and apparently the problem is related to https://github.com/opnsense/core/commit/fbca4bf4cc36a9dff4d89d9564cb595de92d6be1 For 18.1.13 reverting the changes make the vouches visible again.
@frank499 thanks for pinning this down, officially handing this over now
at my end the vouchers look normal

@frank499 If this page is empty on your end, could you gather some network responses from the webbrowser? maybe one of the endpoints fails in some scenario.
Soo.
I played around with the voucher server.
Yesterday I told you that I deleted my old and created a new voucher server and nothing works.
Today I created a new server again but now with another name of the server.
Now I'm a surprised... it works fine.

For me also doesn't work: Production - OPNsense v18.1.13 ( voucher not working, but it worked on earlier version) Test: Clean install 18.1.1->18.1.13->18.7 (voucher not working).
@advcron same question, when inspecting the network traffic in your browser, are there failed requests, if so, what does the response look like.
Sorry but how can I " inspecting the network traffic in your browser" ?
@advcron no problem, in chrome, right click on the page and choose "inspect", then look at the "network traffic" when you load the page. like this:

If you filter on "api" in the top left, you should see all api requests, if one fails, usually it's coloured red.
A correct call with response looks like this

When I enter to voucher menu:
When I click generate voucher:
https://192.168.0.2/api/captiveportal/voucher/generateVouchers/Capative%20Voucher/ -> Respone {"status":"error"} https://192.168.0.2/api/captiveportal/voucher/listVoucherGroups/Capative%20Voucher/ -> Respone {} https://192.168.0.2/api/captiveportal/voucher/listVouchers/Capative%20Voucher/undefined/ -> Respone {}
@advcron ok, got it, can you try to add a voucher group without a space in it? I'm guessing that's the issue.
There isn't any space in voucher gorup
"Capative Voucher"? my mistake, it's the server :)
I can reproduce this here, no further actions needed.
This is it !!! It works on 18.1.13 and 18.7.
Thank you very much!
@advcron I'm still going to fix the issue, it should work with the space in between
Hi,
Could it be that there is an similar issue when you use ä,ö,ü in the groupnames?
Since i addet a groupname with some umlauts, i see also no vouchers for this group, and the login page does not apere on the devices...
Thx Paul
After up to 18.7.1_3 also umlauts ar working in groupnames
@peysche have you even tried the supplied patch?
hi, yes latest release fixes the problem!
thx paul