microsoft / microsoft/AzureStorageExplorer

An error "UnexpectedCancel" displays in the activity log when uploading items to one attached blob container which SAS URL is created by an access policy (List, Read)

Open
#4,905 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Storage Explorer Version: 1.21.0
Build Number: 20210908.7
Branch: rel/1.21.0
Platform/OS: Windows 10/Linux Ubuntu 20.04/MacOS Big Sur 11.4
Architecture: ia32\x64
How Found: From running test case
Regression From: Not a regression

Steps to Reproduce

  1. Expand one storage account -> Blob Containers.
  2. Create a blob container -> Right click the blob container.
  3. Click 'Manage Access Policies...' -> Add one access policy with 'Read, List' permissions.
  4. Generate a SAS URL via the access policy.
  5. Attach the blob container via the SAS URL.
  6. Upload one blob to the attached blob container -> Click 'OK' on the prompt detected dialog.
  7. Check whether a helpful error message displays in the activity log.

Expected Experience

A helpful error message displays in the activity log.

Actual Experience

An error "UnexpectedCancel" displays in the activity log.
image

Error Details:
{ "message": "\"UnexpectedCancel\"" }

Additional Context

  1. Here is the AzCopy log:
    0238cd79-e76f-ab4d-6af8-414b55630e88.log
  2. This issue also reproduces for ADLS Gen2 blob containers/file shares.
  3. This issue doesn't reproduce when attaching via SAS permissions.

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 with the listed reproduction steps for a blob container attached using an access-policy SAS, then inspect the linked AzCopy log and compare the activity-log handling with direct SAS permissions. Done means uploads no longer surface only "UnexpectedCancel" and instead display a helpful error message, including for the reported ADLS Gen2 and file-share cases.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.