microsoft / microsoft/AzureStorageExplorer

Need to give a better error on a sharing violation

Open
#3,207 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:beetle: azcopy error reporting :gear: azcopy
Dominant language
No language data
Stars
452
Forks
92
Avg merge
15h 20m
Merged PRs (30d)
3

Description

Storage Explorer Version: 1.14.0
Build Number: 20200624.3
Platform/OS: Windows 10
Architecture: x64
Regression From: unknown

Bug Description

When another program has a file open with exclusive access, ASE gives a confusing error message when uploading.

Steps to Reproduce

  1. Open c:\temp\foo.csv in Excel (Excel opens with exclusive access)
  2. In ASE, try to upload c:\temp\foo.csv to blob storage

Expected Experience

An error message like "Unable to open c:\temp\foo.csv because another program has it open"

Actual Experience

Transfer of 'C:\temp\foo.csv' to 'datacontainer' failed: error: failed to perform copy command due to error: cannot start job due to error: cannot scan the path \?\C:\temp\foo.csv, please verify that it is a valid. (used SAS, discovery not completed)

Additional Context

I thought since I took a recent update, it was getting confused about this "\?\c:" path format. Instead it was a sharing violation.

Considering Excel is so unfriendly about sharing, this has to happen on occasion.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the upload from c:\temp\foo.csv while Excel holds the file with exclusive access, using the listed Windows and Storage Explorer versions as context. Trace how the sharing violation becomes the transfer error, and consider the issue done when the upload reports that another program has the file open instead of the confusing scan-path message.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.