Login with eID fails if gtk2 is not installed
Task Info (Flyspray) | |
---|---|
Opened By | Wim Herremans (herremaw) |
Task ID | 75530 |
Type | Bug Report |
Project | Community Packages |
Category | Packages |
Version | None |
OS | All |
Opened | 2022-08-06 17:53:42 UTC |
Status | Assigned |
Assignee | Jerome Leclanche (Adys) |
Details
Description:
I have been using 'eid-mw' successfully for a long time on my Arch system. A few days ago I installed a new Arch system. I could not login with my eID on the new Arch system, but at the same time, I still could login successfully on my old Arch system.
I compared the software versions of 'eid-mw' and 'firefox' on both systems. They were identical.
I vaguely remembered that 'eid-mw' uses the package 'pinentry'. Looking at that, I saw that it has 'gtk2' as an optional dependency. I also saw that gtk2 was installed on my old Arch system but not on my new one.
Installing 'gtk2' on my new Arch system made 'eid-mw' function normally again.
Curiously enough 'pinentry' also has the optional dependencies 'qt5-base' and 'gcr', both of which were installed on my new Arch system. Apparently 'qt5-base' and 'gcr' are not sufficient for 'eid-mw' to function normally.
The solution to the problem could be to add 'gtk2' as a dependency for 'eid-mw', but since 'gtk2' is no longer maintained, that might be a problem.
Additional info:
- package version(s): 5.1.4-1
- config and/or log files etc.
- link to upstream bug report, if any
Steps to reproduce:
CASE A: gtk2 is not installed and firefox is started from desktop menu
- Start firefox from desktop menu and surf to https://eid.belgium.be/
- Click on "Log in with CSAM" in the section "Test login" and follow the instructions.
- Normally, the user should be asked to enter the PIN, but the website refuses the login with the error message SEC_ERROR_PKCS11_GENERAL_ERROR
CASE B: gtk2 is not installed and firefox is started from a terminal
- Open a terminal and type "firefox"
- Surf to https://eid.belgium.be/
- Click on "Log in with CSAM" in the section "Test login" and follow the instructions.
- The user is asked from the terminal to enter the PIN with the message "pinentry:pinentry-curses: no LC_CTYPE known - assuming UTF-8" and "The application [/usr/lib/firefox/firefox] requests your eID Basic PIN code"
- Enter the PIN via the terminal.
- Login succeeds
CASE C: gtk2 is installed
- Start firefox from desktop menu and surf to https://eid.belgium.be/
- Click on "Log in with CSAM" in the section "Test login" and follow the instructions.
- A small window pops up in which the user can enter the PIN
- Login succeeds