New issue
Advanced search Search tips

Issue 855635 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

PIN settings with policy strings validation strings have off by one error

Project Member Reported by jdufault@chromium.org, Jun 22 2018

Issue description

If pin length must be set then the error messages for

- [0,3] digits: "PIN must be at least 4 digits"
- [5..] digits: "PIN must be less than 4 digits"

The 5.. digit case should be "PIN must be less than 5 digits"
 
Labels: OS-Chrome
Project Member

Comment 2 by bugdroid1@chromium.org, Jun 22 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/77ab0de570765fd0c702a8a66454c4abd778ffa0

commit 77ab0de570765fd0c702a8a66454c4abd778ffa0
Author: Jacob Dufault <jdufault@google.com>
Date: Fri Jun 22 19:10:23 2018

cros: Fix off-by-one error in PIN settings.

If pin length must be set then the error messages for

- [0,3] digits: "PIN must be at least 4 digits"
- [5..] digits: "PIN must be less than 4 digits"

The 5.. digit case should be "PIN must be less than 5 digits"

Bug:  855635 
Cq-Include-Trybots: luci.chromium.try:closure_compilation
Change-Id: I840772182b292f150626aa670594221bd1096904
Reviewed-on: https://chromium-review.googlesource.com/1112210
Reviewed-by: Sammie Quon <sammiequon@chromium.org>
Reviewed-by: Tommy Li <tommycli@chromium.org>
Commit-Queue: Jacob Dufault <jdufault@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569724}
[modify] https://crrev.com/77ab0de570765fd0c702a8a66454c4abd778ffa0/chrome/browser/resources/settings/people_page/setup_pin_dialog.js

Status: Fixed (was: Assigned)

Sign in to add a comment