Bug 491843 - Can't input timeout for password-less unlock that's longer than 999 seconds.
Summary: Can't input timeout for password-less unlock that's longer than 999 seconds.
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_screenlocker (other bugs)
Version First Reported In: 6.0.5
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-18 00:25 UTC by id.stk
Modified: 2024-08-20 16:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description id.stk 2024-08-18 00:25:07 UTC
SUMMARY
The field "Allow unlocking without password for:" erroneously transforms its input when the input has more than three digits and when the field loses focus. Incrementing the number beyond 999 with the mouse while keyboard focus is elsewhere works.

I have not checked whether that value is actually honoured as the timeout value.

STEPS TO REPRODUCE and OBSERVED RESULTS
It seems there are two opinions on how to parse the input that can be triggered distinctly:

a1. enter a four digit number;
a2. hit enter  =>  the input is formatted according to the locale by inserting a blank or a comma (tested with en_GB and de_AT) and the cursor is moved behind "seconds";
a3. hit enter  =>  the three rightmost digits are truncated.

b1. enter a four digit number;
b2. move focus elsewhere  =>   the input is formatted according to the locale and this setting could be applied at this point;
b3. move focus back to the field;
b4. move focus elsewhere  =>   the three rightmost digits are truncated.

c1. enter a four digit number;
c2. move focus elsewhere  =>  the input is formatted according to the locale;
c3. increment the timeout value with the mouse, without focusing the field  =>  the value is incremented correctly.

This may be a different bug:
d1. enter a four digit number;
d2. move focus elsewhere  =>  the input is formatted according to the locale;
d3. move focus back to the field;
d4. remove the thousands separator;
d5. move focus elsewhere  =>  the input is NOT formatted according to the locale.


EXPECTED RESULT
Four digit numbers not having their three rightmost digits truncated.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.6.44-1-MANJARO (64-bit)
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Wayland
Comment 1 Nate Graham 2024-08-20 16:50:28 UTC
The UI here has changed in Plasma 6.2 to make the issue impossible to experience.