New issue
Advanced search Search tips

Issue 681817 link

Starred by 3 users

Issue metadata

Status: Archived
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Chromad: Reloading policies does not fetch device policy (at first login after enrollment)

Project Member Reported by ljusten@chromium.org, Jan 17 2017

Issue description

Repro: Click "Reload policies" in Chrome, check /var/log/messages and notice that only user policy is fetched.

Tested with Chrome 57.0.2983.0 (~Jan 16, 2017).
 

Comment 1 by tnagel@chromium.org, Jan 17 2017

Labels: -M-58 -V2 Enterprise-Triaged M-57

Comment 2 by tnagel@chromium.org, Jan 17 2017

It works on a Linux build (ToT=57.0.2985.0).  Later I'll take a look on a real device.

Comment 3 by tnagel@chromium.org, Jan 19 2017

Works for me on 57.0.2984.0 / 9198.0.0 (chell canary).  Does ot still repro for you?

Comment 4 by tnagel@chromium.org, Jan 23 2017

Cc: tnagel@chromium.org
Owner: ljusten@chromium.org
Owner: tnagel@chromium.org
I tested on 58.0.2990.0 (built image with latest code). Reloading policy in Chrome only reloads user policy.
Cc: ljusten@chromium.org

Comment 7 by tnagel@chromium.org, Jan 26 2017

Labels: -Pri-2 Pri-1

Comment 8 by tnagel@chromium.org, Jan 26 2017

Cc: -ljusten@chromium.org
Owner: ljusten@chromium.org
Testing on 58.0.2990.0 / 9215.0.0 (with latest authpolicyd).  In guest mode, there's device policy fetch both during login and when clicking "Refresh policies".

And the same happens for a real user, again both during login and when hitting "Refresh policies":
2017-01-26T14:21:43.342348+01:00 INFO authpolicyd[4461]: Received 'RefreshDevicePolicy' request
[...]
2017-01-26T14:21:44.950388+01:00 INFO authpolicyd[4461]: Received 'RefreshUserPolicy' request

Back to Lutz again.  Please provide detailed repro steps.

Comment 9 by tnagel@chromium.org, Jan 26 2017

Cc: -tnagel@chromium.org ljusten@chromium.org
Labels: -Pri-1 Pri-2
Owner: tnagel@chromium.org
After offline discussion: The issue only repros for the very first login after enrollment.  (Reducing priority because of limited scope.)
Summary: authpolicy: Reloading policies does not fetch device policy (at first login after enrollment) (was: authpolicy: Reloading policies does not fetch device policy)
Summary: Chromad: Reloading policies does not fetch device policy (at first login after enrollment) (was: authpolicy: Reloading policies does not fetch device policy (at first login after enrollment))
Cc: rsorokin@chromium.org
Labels: -Pri-2 -M-57 M-60 Pri-1
Offline discussion with Roman: DevicePolicyManager doesn't get started after enrollment.
Project Member

Comment 13 by bugdroid1@chromium.org, May 2 2017

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

commit ac371d7a8f048986b667636aba153714157dc4e0
Author: tnagel <tnagel@chromium.org>
Date: Tue May 02 10:03:07 2017

Restart browser after Chromad enrollment

The current factoring of BrowserPolicyConnectorChromeOS only allows to
swap out the device policy provider at initialization time, not at run
time.  As a consequence, we end up with the wrong device policy provider
after Chromad enrollment.  A browser restart is the easiest way to fix
this.

BUG= 681817 

Review-Url: https://codereview.chromium.org/2842163002
Cr-Commit-Position: refs/heads/master@{#468592}

[modify] https://crrev.com/ac371d7a8f048986b667636aba153714157dc4e0/chrome/browser/chromeos/login/enrollment/enrollment_screen.cc

Status: Fixed (was: Assigned)

Comment 15 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Sign in to add a comment