New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 643475 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocked on:
issue 644043



Sign in to add a comment

Notification prompts disk format even when ExternalDeviceReadOnly policy is set

Project Member Reported by yamaguchi@chromium.org, Sep 2 2016

Issue description

Chrome OS Version: ToT

Steps To Reproduce:
(1) Set policy: ExternalStorageReadOnly = true, ExternalStorageDisabled = false
(2) Insert an unformatted USB drive.
(3) See the notification message popping up on the right-bottom of the screen.

Expected Result:
- The system should not prompt the user to format the disk
- It should notify it’s not readable because it's unformatted.

Actual Result:
- It says "Removable device detected  Explore the device content in the Files app.", which is same message as when ExternalStorageReadOnly=false.

How frequently does this problem reproduce? (Always, sometimes, hard to
reproduce?)
Always

What is the impact to the user, and is there a workaround? If so, what is
it?
Users will end up finding the drive is not formatted (and cannot format it because of the policy). Users cannot actually explore the files in it after opening Files app. It's harmless, but not correct. It'd be much better if user can know it without opening the files app.

 
Summary: Wrong notification of inserted disk when ExternalDeviceReadOnly policy is set (was: Wrong notification message when ExternalDeviceReadOnly policy is set)
The message currently shown in this situation is "Sorry, at least one partition on your external storage device could not be mounted."
(At least when ExternalStorageReadOnly=false).

https://cs.chromium.org/chromium/src/chrome/app/chromeos_strings.grdp?q=%22Sorry,+at+least+one+partition+on+your+external+storage+device+could+not+be+mounted%22&sq=package:chromium&l=4033&dr=C

Summary: Notification prompts disk format even when ExternalDeviceReadOnly policy is set (was: Wrong notification of inserted disk when ExternalDeviceReadOnly policy is set)
removable-device-detected.png
52.0 KB View Download
So far I have heard of 2 cases.
- unformatted disk recognized as unmountable (like the screenshot above)
- unformatted disk recognized as if it's formatted
The latter requires more investigation. This bug will focus on the former.

"Format this device" link in the notification should be removed when the read-only policy is applied.
Labels: M-54
Blockedon: 644043
Project Member

Comment 7 by bugdroid1@chromium.org, Sep 8 2016

Labels: merge-merged-2840
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/01d0c324611df6ceb900aae7766bc15517eb9bca

commit 01d0c324611df6ceb900aae7766bc15517eb9bca
Author: yamaguchi <yamaguchi@chromium.org>
Date: Thu Sep 08 05:44:44 2016

Hide "Format device" button in notification of unknown device when it is read only.

BUG= 644043 , 643475 
NOTRY=true
NOPRESUBMIT=true

Review-Url: https://codereview.chromium.org/2310783004
Cr-Commit-Position: refs/heads/master@{#416576}
(cherry picked from commit 5c3efcf062d49a2585fc3be33286e91118cd7efc)

Review-Url: https://codereview.chromium.org/2319603002
Cr-Commit-Position: refs/branch-heads/2840@{#228}
Cr-Branched-From: 1ae106dbab4bddd85132d5b75c670794311f4c57-refs/heads/master@{#414607}

[modify] https://crrev.com/01d0c324611df6ceb900aae7766bc15517eb9bca/ui/file_manager/file_manager/background/js/device_handler.js
[modify] https://crrev.com/01d0c324611df6ceb900aae7766bc15517eb9bca/ui/file_manager/file_manager/background/js/device_handler_unittest.js

Status: Fixed (was: Assigned)
Components: Enterprise
Cc: monachow@chromium.org trapti@chromium.org krishna...@chromium.org
Status: Verified (was: Fixed)
Verified.
M54-BETA-CHROMEOS-7 (8743.74.0, 54.0.2840.77)
Device: Stout PVT
Server: DM server
Project Member

Comment 12 by bugdroid1@chromium.org, Oct 27 2016

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

commit 01d0c324611df6ceb900aae7766bc15517eb9bca
Author: yamaguchi <yamaguchi@chromium.org>
Date: Thu Sep 08 05:44:44 2016

Hide "Format device" button in notification of unknown device when it is read only.

BUG= 644043 , 643475 
NOTRY=true
NOPRESUBMIT=true

Review-Url: https://codereview.chromium.org/2310783004
Cr-Commit-Position: refs/heads/master@{#416576}
(cherry picked from commit 5c3efcf062d49a2585fc3be33286e91118cd7efc)

Review-Url: https://codereview.chromium.org/2319603002
Cr-Commit-Position: refs/branch-heads/2840@{#228}
Cr-Branched-From: 1ae106dbab4bddd85132d5b75c670794311f4c57-refs/heads/master@{#414607}

[modify] https://crrev.com/01d0c324611df6ceb900aae7766bc15517eb9bca/ui/file_manager/file_manager/background/js/device_handler.js
[modify] https://crrev.com/01d0c324611df6ceb900aae7766bc15517eb9bca/ui/file_manager/file_manager/background/js/device_handler_unittest.js

Sign in to add a comment