-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悶 Bogus UI when loading voting booth without credentials #262
Comments
@ElectricPaperInformationssystemeGmbH I have not been able to replicate this error. Please provide a way to replicate this issue:
I tried to:
|
@edulix Try this one https://vnext.gremienwahlen.de/booth/100/vote |
@ElectricPaperInformationssystemeGmbH thank you very much! that probably should be fixed, but I think it's a different issue: in v10 the demo voting booth is not https://vnext.gremienwahlen.de/booth/100/vote but https://vnext.gremienwahlen.de/booth/100/demo-vote . And with this second link, things seem to work? If the behavior is also failing after after authentication, then please provide a minimal election.json config so we can replicate in our environment. |
@edulix ok, I think this is the main problem. Sorry about that, I was misinformed. |
No worries, you actually detected a bug since it's failing to show a valid error message or redirect anywhere and in the console log there is an exception being thrown which generates that. I'll still fix it :-) |
Preflight checklist
Current Behavior
When entering the path
![MicrosoftTeams-image (1)](https://private-user-images.githubusercontent.com/87812708/271384595-141f665b-55e6-4839-8dae-5a90947a4cfd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA5NzkzMzQsIm5iZiI6MTcyMDk3OTAzNCwicGF0aCI6Ii84NzgxMjcwOC8yNzEzODQ1OTUtMTQxZjY2NWItNTVlNi00ODM5LThkYWUtNWE5MDk0N2E0Y2ZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE0VDE3NDM1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAwMjQwZDQwMzAxZmEwMDYzNzY2YjEyZjI1NWU0NjVmZGMyMmUyMDkxYTIyMzliYjU0OTFlOWQ4YWE1YzY3NTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.I71i6cv7HJVzjf7bahXTLDrIcY6FfNc5HnN52lZsaBk)
/booth/<election-id>/vote
without having logged in (without user credentials), errors happen (shown in the debug console) and an invalid and unexpected erroneous UI appears to the voter.Expected Behavior
A proper error page explaining that no credentials were found should appear to the visitant.
Implemented solution
The error page is now shown instead, and the
![image](https://private-user-images.githubusercontent.com/81968/273638696-7518d507-de04-49ff-af26-3e95279ff1e4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA5NzkzMzQsIm5iZiI6MTcyMDk3OTAzNCwicGF0aCI6Ii84MTk2OC8yNzM2Mzg2OTYtNzUxOGQ1MDctZGUwNC00OWZmLWFmMjYtM2U5NTI3OWZmMWU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE0VDE3NDM1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAzNjhhYzQzN2MwODhjYzdhYjM4YWVlYTU4YWMwNDE5MmY0MjcxMWZkMzNmZDVkNWUwYzU5ZTE2OWExYWMyMzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.uxIST80UDo7MEd65mtmFqEthfEoMBH-svgSbjmK3ni0)
Go back
button goes to theConfigService.defaultRoute
. Here is a screenshot:Steps To Reproduce
No response
Environment
Tasks
Tasks
Master PRs
Stable PRs
Additional context
No response
The text was updated successfully, but these errors were encountered: