d3vilh / openvpn-ui

Web User Interface for OpenVPN
MIT License
169 stars 39 forks source link

Deleting a revoked client brings to the 404 page #85

Open zawyelwin opened 3 weeks ago

zawyelwin commented 3 weeks ago

When attempting to delete a revoked client, the action redirects to a 404 error page. The deletion process works perfectly if the client is deleted immediately after revocation. However, if the page is refreshed before attempting to delete the client, it results in a 404 error page.

d3vilh commented 2 weeks ago

Hi @zawyelwin, thanks for the reporting.

Let me test it, looks like a bug.

EDIT: Did you tried to delete certs created with UI or it were old certificates?

I tried to test it with 0.9.5.4 and 0.5.4 openvpn-server container it seems works fine now, but my test is not completed yet. have few reworked certs which will try to delete tomorrow.

zawyelwin commented 2 weeks ago

I tried to delete the certs created from UI. I am also using the same versions as yours. BTW setup using this https://github.com/d3vilh/openvpn-aws.

Thanks for looking into it.

GoranTopic commented 1 week ago

I am having the same problem and I am not running openvpn-aws. It seems like the UI got stuck thinking that there is a cert to be deleted, when you try to delete it (press the delete button) it redirects you to the 404 page.