New issue
Advanced search Search tips

Issue 808359 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Components:
EstimatedDays: 2
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Policies with path variables should handle correctly the presence or absence of trailing slashes in them

Project Member Reported by pastarmovj@chromium.org, Feb 2 2018

Issue description

Currently it seems that Chrome will append a second slash if a path variable contains a trailing slash at least for the root directory (according to reporter https://productforums.google.com/forum/#!topic/chrome-admins/aW3Zz54uWow )

We should fix that so no matter what a variable expands to it is properly handled.
 
Status: Started (was: Untriaged)
CL is in review here https://chromium-review.googlesource.com/#/c/chromium/src/+/1012065

Project Member

Comment 2 by bugdroid1@chromium.org, Apr 16 2018

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

commit 5156ea734c64658e63b7ccf8b6ec107d8889f744
Author: Julian Pastarmov <pastarmovj@chromium.org>
Date: Mon Apr 16 15:55:34 2018

Fix double trailing slashes for Windows special path expansion.

BUG= 808359 

Change-Id: Ia95a6f90086f0aa8ea62e81838f1ae95c7c6496c
Reviewed-on: https://chromium-review.googlesource.com/1012065
Reviewed-by: Greg Thompson <grt@chromium.org>
Reviewed-by: Lutz Justen <ljusten@chromium.org>
Commit-Queue: Julian Pastarmov <pastarmovj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550969}
[modify] https://crrev.com/5156ea734c64658e63b7ccf8b6ec107d8889f744/chrome/install_static/policy_path_parser.cc

Labels: M-68
Status: Fixed (was: Started)
Julian@ Could you please help us with repro steps to verify the fix from TE end.

Thank You...
You should be able to test by changing the location of the documents folder locally to c:\ or d:\ by following the instruction here http://www.dummies.com/computers/operating-systems/windows-10/how-to-change-the-location-of-user-folders-in-windows-10/ and then set a policy like the DowloadDirectory policy to say ${documents}\test and check that the policy value is resolved to d:\test and not to d:\\test in chrome://policy and that downloads indeed land in this directory.
Labels: TE-Verified-M68 TE-Verified-68.0.3398.0
Verified this issue on Debian Rodete and Win 10 with chrome #68.0.3398.0 and the fix is working as expected. hence adding verified labels

Attaching the screen-cast for reference.

Note: Soon will verify this issue on Mac and update the behavior 

808359-1.mp4
3.1 MB View Download
Project Member

Comment 7 by bugdroid1@chromium.org, Apr 17 2018

Labels: merge-merged-testbranch
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5156ea734c64658e63b7ccf8b6ec107d8889f744

commit 5156ea734c64658e63b7ccf8b6ec107d8889f744
Author: Julian Pastarmov <pastarmovj@chromium.org>
Date: Mon Apr 16 15:55:34 2018

Fix double trailing slashes for Windows special path expansion.

BUG= 808359 

Change-Id: Ia95a6f90086f0aa8ea62e81838f1ae95c7c6496c
Reviewed-on: https://chromium-review.googlesource.com/1012065
Reviewed-by: Greg Thompson <grt@chromium.org>
Reviewed-by: Lutz Justen <ljusten@chromium.org>
Commit-Queue: Julian Pastarmov <pastarmovj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550969}
[modify] https://crrev.com/5156ea734c64658e63b7ccf8b6ec107d8889f744/chrome/install_static/policy_path_parser.cc

Sign in to add a comment