Skip to content

Service should respect elevation level of the original mount #1089

Open

Description

@alameenshah

GVFS.Service should remember the elevation level of GVFS.Mount process as they register for auto-mount. During auto-mount GVFS.Service should start GVFS.Mount in the saved elevation level.

Activity

  1. added this to the Backlog milestone on May 1, 2019
  2. wilbaker commented on May 7, 2019

    @wilbaker
    Member

    More details/history from User Story 1043088 in Azure Repos:

    Copied from Repro Steps when changed from Bug to User Story
    We need to ensure ACL-related failures are properly communicated to the user. For classification, I looked into cases that happened during mounting and once mounted both for files that are critical to the functioning of the GVFS enlistment, and for files that are virtualized and part of the repo "content".

    On mount, issues with critical files:

    1. index, PlaceholderList, and other DBs access issues cause crash on GVFS.Mount.exe. In these cases, the console will see a BrokenPipeException. The exceptions reported in the background process log make it seem as though we should be able to properly communicate the issue to the client before crashing.
    2. Repo metadata access issues reports: Failed to upgrade repo disk layout. Run 'gvfs log D:\code\test\GVFS.ACLS' for more info.
    3. Access to .gvfs\logs or any other folder crashes processes and reports unhandled exception in the console.

    After mount:

    1. If user loses access to GVFS_projection, background thread can loop forever on unauthorized access exception and fill up logs. Console will just display spinner. Also, user won't be able to unmount. Very unlikely case but it definitely results in an ugly experience with possible data loss. What if GVFS.Mount instead just saves to an alternate file/location (if it can) and report the issue then end the mount. Repair could try to bring it back to working state or guidance for the user after they unblock access to GVFS_projection
    2. Losing access to gitObjectCache will result in any source file reads failing with: "The process cannot access the file because it is being used by another process." which is very confusing since the logs correctly state that the access problem was against the object case. If user tries to read say Readme.md, GVFS will download data and fail to update cache at which point it tells the user the "file" is in used by another process but that's not correct. Communication here is difficult, perhaps an item for the health monitor to notify on.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions