After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 752739 - a couple of auth prompt fixes
a couple of auth prompt fixes
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: login-screen
unspecified
Other All
: Normal normal
: ---
Assigned To: Ray Strode [halfline]
gnome-shell-maint
: 747395 753004 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-07-22 19:04 UTC by Ray Strode [halfline]
Modified: 2015-08-10 14:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
authPrompt: set next button to next when asking for username (2.84 KB, patch)
2015-07-22 19:05 UTC, Ray Strode [halfline]
committed Details | Review
authPrompt: don't allow next if entry is empty (2.84 KB, patch)
2015-07-22 19:05 UTC, Ray Strode [halfline]
none Details | Review
authPrompt: don't allow next if entry is empty (2.86 KB, patch)
2015-07-23 17:23 UTC, Ray Strode [halfline]
committed Details | Review
authPrompt: allow cancellation before verification starts (2.06 KB, patch)
2015-07-23 17:23 UTC, Ray Strode [halfline]
committed Details | Review

Description Ray Strode [halfline] 2015-07-22 19:04:56 UTC
These bugs were found by red hat QE.
Comment 1 Ray Strode [halfline] 2015-07-22 19:05:04 UTC
Created attachment 307926 [details] [review]
authPrompt: set next button to next when asking for username

If the next button ever gets set to Sign In, it won't
get reset to next until the next question asked by pam.

This commit ensures it gets reset to Next when asking
for the username.
Comment 2 Ray Strode [halfline] 2015-07-22 19:05:08 UTC
Created attachment 307927 [details] [review]
authPrompt: don't allow next if entry is empty

Normally the user isn't allowed to proceed passed
the username question until they've filled it in.
To ensure this, the authprompt code desensitizes
the next button when the number of characters change to
zero.

Unfortunately it fails to desensitize the next button
up front when the entry starts out empty.

This commit addresses that bug.
Comment 3 Rui Matos 2015-07-23 16:45:54 UTC
Review of attachment 307926 [details] [review]:

looks fine
Comment 4 Ray Strode [halfline] 2015-07-23 16:58:05 UTC
Review of attachment 307927 [details] [review]:

::: js/gdm/authPrompt.js
@@ +403,2 @@
     updateSensitivity: function(sensitive) {
+        this._updateNextButtonSensitivity(this._entry.text.length > 0);

actually this should be sensitive && this._entry.text.length > 0 I guess
Comment 5 Rui Matos 2015-07-23 16:58:31 UTC
Review of attachment 307927 [details] [review]:

I noticed another bug here: when prompting for the user name (after clicking "Not listed?") the cancel button doesn't do anything.

::: js/gdm/authPrompt.js
@@ +403,2 @@
     updateSensitivity: function(sensitive) {
+        this._updateNextButtonSensitivity(this._entry.text.length > 0);

Shouldn't this be (sensitive && length > 0) ? i.e. even if there's text in the entry, it seems that the calling code really intends to set this button insensitive when doing those async queries.
Comment 6 Ray Strode [halfline] 2015-07-23 17:16:26 UTC
(In reply to Rui Matos from comment #5)
> Review of attachment 307927 [details] [review] [review]:
> 
> I noticed another bug here: when prompting for the user name (after clicking
> "Not listed?") the cancel button doesn't do anything.
Oh right I fixed that in RHEL too, will post patch.
Comment 7 Ray Strode [halfline] 2015-07-23 17:23:33 UTC
Created attachment 308014 [details] [review]
authPrompt: don't allow next if entry is empty

Normally the user isn't allowed to proceed passed
the username question until they've filled it in.
To ensure this, the authprompt code desensitizes
the next button when the number of characters change to
zero.

Unfortunately it fails to desensitize the next button
up front when the entry starts out empty.

This commit addresses that bug.
Comment 8 Ray Strode [halfline] 2015-07-23 17:23:42 UTC
Created attachment 308015 [details] [review]
authPrompt: allow cancellation before verification starts

The user should be allowed to cancel if verification hasn't
started yet and they're typing in their username. This
commit changes the authPrompt cancel function to not
ignore such requests.
Comment 9 Rui Matos 2015-07-24 13:00:05 UTC
Review of attachment 308014 [details] [review]:

++
Comment 10 Rui Matos 2015-07-24 13:00:41 UTC
Review of attachment 308015 [details] [review]:

looks good
Comment 11 Ray Strode [halfline] 2015-07-24 13:44:46 UTC
Attachment 307926 [details] pushed as 378a3df - authPrompt: set next button to next when asking for username
Attachment 308014 [details] pushed as fe7dd13 - authPrompt: don't allow next if entry is empty
Attachment 308015 [details] pushed as 778ad49 - authPrompt: allow cancellation before verification starts
Comment 12 Florian Müllner 2015-07-29 09:03:28 UTC
*** Bug 753004 has been marked as a duplicate of this bug. ***
Comment 13 Ray Strode [halfline] 2015-08-10 14:26:11 UTC
*** Bug 747395 has been marked as a duplicate of this bug. ***
Comment 14 Ray Strode [halfline] 2015-08-10 14:27:23 UTC
note these fixes introduced bug 753181 so distros back porting this should include fixes from that bug as well.