New issue
Advanced search Search tips

Issue 890046 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 26
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Switch networks and contents of SMB directories doesn't appear back in Files app

Project Member Reported by mkarkada@chromium.org, Sep 27

Issue description

Chrome OS version: 11021.28.0, 70.0.3538.34 beta-channel eve

What steps will reproduce the problem?
1. Mount network file shares from Settings > Downloads > Network File Shares > Add File Share

Note that device connected to 'Network Files Shares Test' n/w
2. SMB file shares are mounted in Files app
3. Switch to a different n/w
4. Open Files app and wait for the directories to load
5. Connect back to 'Network Files Shares Test' n/w
6. Check the contents of SMB file shares in Files app

What happens instead?
File contents in the SMB directories don't appear back in Files app
 
Cc: -baileyberro@chromium.org zentaro@chromium.org
Owner: baileyberro@chromium.org
baileyberro@ Can we check the log to see if we are getting these requests, and if so what error codes we are getting.
Labels: -Pri-1 Pri-2
Labels: -M-70 M-71
Owner: jimmyxgong@chromium.org
Labels: -Pri-2 Pri-1
Labels: -Restrict-View-Google
May only happen when navigating away from the File Manager after switching networks.
Labels: CrOSFilesFeature-SMB
Project Member

Comment 9 by bugdroid1@chromium.org, Oct 23

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/9342c808866b2aacfe96cdd78d92c4a54ae6e3f0

commit 9342c808866b2aacfe96cdd78d92c4a54ae6e3f0
Author: jimmy <jimmyxgong@google.com>
Date: Tue Oct 23 20:01:56 2018

smbprovider: Add workaround fix with fake Stat to prevent SMB client hangs

- This fix is a workaround fix to handle the case of switching networks
  while a share is mounted.
- Previously, SmbProvider::GetMetaDataEntry would return an error if
  the root path was empty. The files app would then see the error and
  stop sending requests to the SMB daemon.

BUG= chromium:890046 
TEST=unit test + end to end

Change-Id: Ie41470a2db5899f20bfac60e8a6723e33728438a
Reviewed-on: https://chromium-review.googlesource.com/1287411
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: jimmy gong <jimmyxgong@chromium.org>
Reviewed-by: Zentaro Kavanagh <zentaro@chromium.org>

[modify] https://crrev.com/9342c808866b2aacfe96cdd78d92c4a54ae6e3f0/smbprovider/smbprovider.cc

Labels: Merge-Request-71
This fixes a bug where if you lose connectivity the share becomes unusable without a reboot or unmount/remount.
Project Member

Comment 11 by sheriffbot@chromium.org, Oct 24

Labels: -Merge-Request-71 Hotlist-Merge-Approved Merge-Approved-71
Your change meets the bar and is auto-approved for M71. Please go ahead and merge the CL to branch 3578 manually. Please contact milestone owner if you have questions.
Owners: benmason@(Android), kariahda@(iOS), kbleicher@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 13 by bugdroid1@chromium.org, Oct 26

Labels: merge-merged-release-R71-11151.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/8ede28dbc6f938fc7601888529d5886a5db3efbd

commit 8ede28dbc6f938fc7601888529d5886a5db3efbd
Author: jimmy <jimmyxgong@google.com>
Date: Fri Oct 26 21:21:15 2018

smbprovider: Add workaround fix with fake Stat to prevent SMB client hangs

- This fix is a workaround fix to handle the case of switching networks
  while a share is mounted.
- Previously, SmbProvider::GetMetaDataEntry would return an error if
  the root path was empty. The files app would then see the error and
  stop sending requests to the SMB daemon.

BUG= chromium:890046 
TEST=unit test + end to end

Change-Id: Ie41470a2db5899f20bfac60e8a6723e33728438a
Reviewed-on: https://chromium-review.googlesource.com/1287411
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: jimmy gong <jimmyxgong@chromium.org>
Reviewed-by: Zentaro Kavanagh <zentaro@chromium.org>
(cherry picked from commit 9342c808866b2aacfe96cdd78d92c4a54ae6e3f0)
Reviewed-on: https://chromium-review.googlesource.com/c/1303113
Commit-Queue: Zentaro Kavanagh <zentaro@chromium.org>
Tested-by: Zentaro Kavanagh <zentaro@chromium.org>

[modify] https://crrev.com/8ede28dbc6f938fc7601888529d5886a5db3efbd/smbprovider/smbprovider.cc

Status: Fixed (was: Assigned)
Project Member

Comment 15 by sheriffbot@chromium.org, Oct 29

Cc: zentaro@google.com
This issue has been approved for a merge. Please merge the fix to any appropriate branches as soon as possible!

If all merges have been completed, please remove any remaining Merge-Approved labels from this issue.

Thanks for your time! To disable nags, add the Disable-Nags label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 16 by sheriffbot@chromium.org, Nov 2

This issue has been approved for a merge. Please merge the fix to any appropriate branches as soon as possible!

If all merges have been completed, please remove any remaining Merge-Approved labels from this issue.

Thanks for your time! To disable nags, add the Disable-Nags label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Merge-Approved-71
Already merged

Sign in to add a comment