Bug 450859

Summary: Fingerprint accepted but does not appear in the list of configured fingerprints when using python-validity
Product: [Applications] systemsettings Reporter: Dan Sunter <dsunter>
Component: kcm_usersAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: biladina102, espidev, maximilian, nate, uhhadd
Priority: NOR    
Version First Reported In: 5.24.2   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
URL: https://github.com/uunicorn/python-validity/issues/116
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: as on image, enrolled fingerprint list not showing after fingerprint added..

Description Dan Sunter 2022-02-26 03:25:10 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Add fingerprints with either terminal or GUI
2. Complete Enrollment
3. Check GUI List of fingerprints

OBSERVED RESULT

No fingerprints in Configure Fingerprints GUI

EXPECTED RESULT

Fingerprint showing in list after successful enrollment

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91
Qt Version: 5.15.2

ADDITIONAL INFORMATION

Thinkpad T480s
Fingerprint Reader used: ID 06cb:009a Synaptics, Inc. Metallica MIS Touch Fingerprint Reader
Fingerprints verify in terminal but don't show in the list of fingerprints when in "Configure Fingerprint authentication..." menu.
Comment 1 Dan Sunter 2022-02-26 03:27:57 UTC
Fingerprint seems to work just doesn't show in the UI for KDE
Comment 2 biladina 2022-02-26 07:25:54 UTC
Created attachment 147132 [details]
as on image, enrolled fingerprint list not showing after fingerprint added..
Comment 3 biladina 2022-02-26 07:28:53 UTC
(In reply to biladina from comment #2)
> Created attachment 147132 [details]
> as on image, enrolled fingerprint list not showing after fingerprint added..

also tested on Thinkpad P52 :
Bus 001 Device 004: ID 06cb:009a Synaptics, Inc. Metallica MIS Touch Fingerprint Reader
Comment 4 maximilian 2022-03-15 15:05:55 UTC
Same problem on Arch Linux and X270
Comment 5 Nate Graham 2022-03-25 16:50:33 UTC
Is that the actual root user you're adding fingerprints for? Or a non-root user that happens to have been given the name "root"?

Works for me with a ThinkPad X1 Yoga G4 with this hardware:
> Bus 001 Device 032: ID 06cb:00bd Synaptics, Inc. Prometheus MIS Touch Fingerprint Reader
Comment 6 Devin Lin 2022-03-25 17:01:38 UTC
Which version of fprintd is installed? Is this fprintd, or something else, like python-validity?
Comment 7 maximilian 2022-03-25 19:21:21 UTC
In my case python-validity with open-fprintd
(In reply to espidev from comment #6)
> Which version of fprintd is installed? Is this fprintd, or something else,
> like python-validity?
Comment 8 Devin Lin 2022-03-25 21:04:44 UTC
(In reply to maximilian from comment #7)
> In my case python-validity with open-fprintd
> (In reply to espidev from comment #6)
> > Which version of fprintd is installed? Is this fprintd, or something else,
> > like python-validity?

I suspect that whatever is supplying the dbus api isn't behaving the same as fprintd. I vaguely recall someone having the same issue on the original MR, when they used python-validity.
Comment 9 Devin Lin 2022-03-25 21:07:02 UTC
I recommend doing a quick check with another implementation that uses the fprint dbus API (ex. GNOME's interface) to see if the same issue occurs, perhaps this is an issue for that fprint implementation to fix.
Comment 10 maximilian 2022-03-25 21:31:15 UTC
Is there a more light way but installing gnome?
(In reply to espidev from comment #9)
> I recommend doing a quick check with another implementation that uses the
> fprint dbus API (ex. GNOME's interface) to see if the same issue occurs,
> perhaps this is an issue for that fprint implementation to fix.
Comment 11 Dan Sunter 2022-03-25 23:36:26 UTC
I am using python-validity as well.
Comment 12 Devin Lin 2022-03-26 15:43:55 UTC
(In reply to maximilian from comment #10)
> Is there a more light way but installing gnome?
> (In reply to espidev from comment #9)
> > I recommend doing a quick check with another implementation that uses the
> > fprint dbus API (ex. GNOME's interface) to see if the same issue occurs,
> > perhaps this is an issue for that fprint implementation to fix.

I guess another way you can test is by:
-> Open system settings and the fingerprint dialog, and leave it open when following further steps
-> Open QDBusViewer (an app)
-> Go to System Bus 
-> go to "net.reactivated.Fprint" on the left pane 
-> on the right bay, navigate the methods to "net/reactivated/Fprint/Device/0/net.reactivated.Fprint.Device"
-> double click on "Method: ListEnrolledFingers"
-> enter your username, and see what the reply is on the bottom pane

I get:

Received reply from :1.5423
  Arguments: {"right-little-finger", "right-ring-finger", "right-middle-finger", "right-index-finger"}
Comment 13 maximilian 2022-03-27 14:32:44 UTC
(In reply to espidev from comment #12)
> (In reply to maximilian from comment #10)
> > Is there a more light way but installing gnome?
> > (In reply to espidev from comment #9)
> > > I recommend doing a quick check with another implementation that uses the
> > > fprint dbus API (ex. GNOME's interface) to see if the same issue occurs,
> > > perhaps this is an issue for that fprint implementation to fix.
> 
> I guess another way you can test is by:
> -> Open system settings and the fingerprint dialog, and leave it open when
> following further steps
> -> Open QDBusViewer (an app)
> -> Go to System Bus 
> -> go to "net.reactivated.Fprint" on the left pane 
> -> on the right bay, navigate the methods to
> "net/reactivated/Fprint/Device/0/net.reactivated.Fprint.Device"
> -> double click on "Method: ListEnrolledFingers"
> -> enter your username, and see what the reply is on the bottom pane
> 
> I get:
> 
> Received reply from :1.5423
>   Arguments: {"right-little-finger", "right-ring-finger",
> "right-middle-finger", "right-index-finger"}

Thanks for your reply!
This is my output:
Connected to D-Bus.

Received reply from :1.20
  Arguments: {"WINBIO_ANSI_381_POS_RH_INDEX_FINGER"}
Comment 14 Devin Lin 2022-03-28 16:59:03 UTC
(In reply to maximilian from comment #13)
> (In reply to espidev from comment #12)
> > (In reply to maximilian from comment #10)
> > > Is there a more light way but installing gnome?
> > > (In reply to espidev from comment #9)
> > > > I recommend doing a quick check with another implementation that uses the
> > > > fprint dbus API (ex. GNOME's interface) to see if the same issue occurs,
> > > > perhaps this is an issue for that fprint implementation to fix.
> > 
> > I guess another way you can test is by:
> > -> Open system settings and the fingerprint dialog, and leave it open when
> > following further steps
> > -> Open QDBusViewer (an app)
> > -> Go to System Bus 
> > -> go to "net.reactivated.Fprint" on the left pane 
> > -> on the right bay, navigate the methods to
> > "net/reactivated/Fprint/Device/0/net.reactivated.Fprint.Device"
> > -> double click on "Method: ListEnrolledFingers"
> > -> enter your username, and see what the reply is on the bottom pane
> > 
> > I get:
> > 
> > Received reply from :1.5423
> >   Arguments: {"right-little-finger", "right-ring-finger",
> > "right-middle-finger", "right-index-finger"}
> 
> Thanks for your reply!
> This is my output:
> Connected to D-Bus.
> 
> Received reply from :1.20
>   Arguments: {"WINBIO_ANSI_381_POS_RH_INDEX_FINGER"}

It seems python-validity/open-fprintd is giving fingerprint names not listed in the fprint API specification: https://fprint.freedesktop.org/fprintd-dev/Device.html#fingerprint-names

I think this issue should be addressed from their side.
Comment 15 Nate Graham 2022-03-28 17:12:37 UTC
Can folks file bug reports for those projects, and link them here?
Comment 16 Devin Lin 2022-03-28 17:17:06 UTC
(In reply to Nate Graham from comment #15)
> Can folks file bug reports for those projects, and link them here?

https://github.com/uunicorn/python-validity/issues/116
Comment 17 maximilian 2022-03-28 18:15:00 UTC
(In reply to espidev from comment #16)
> (In reply to Nate Graham from comment #15)
> > Can folks file bug reports for those projects, and link them here?
> 
> https://github.com/uunicorn/python-validity/issues/116

Thx!