Closed v-xianya closed 2 months ago
@v-xianya I understand why Clone and Delete are "extra", but why do you consider create snapshot to be extra?
@MRayermannMSFT Refer to one SAS attached file share. there is no 'Create Snapshot' action. So, we guess it might be an extra action for OAuth attached file share.
Also, when executing 'Create Snapshot'. there is a failed activity log with error details:
"name": "RestError", "message": "This request is not authorized to perform this operation.\nRequestId:2e6567cd-301a-005c-2693-d29358000000\nTime:2024-07-10T06:36:19.6209522Z",
@v-xianya a couple of things I've learned today:
Delete and clone should be hidden for directly attached file shares and blob containers as a design choice. That is to say, no matter how you authorize a directly attached file share or blob container, we always disable delete and clone. That is because we do not believe something directly attached should be deleted or cloned. A user should be doing that from the context of the storage account (e.g., attaching the storage account, listing the storage account under a subscription, etc.). This is currently broken for file shares.
Create share snapshot is not always hidden for directly attached file shares. If you attach one using an account level SAS, the action is available and works (assuming the right account SAS permissions):
For an OAuth authenticated direct attached file share, create share snapshot will work if you have an RBAC role that grants the necessary permission (example: Owner).
So, I'm going to:
Hi @MRayermannMSFT Succeed to create snapshot if have Owner role.
Ok. On builds for main
, the actions for clone and delete should be gone now.
Verified this issue on the main build 20240726.3. Fixed. Clone and Delete actions have been removed.
Storage Explorer Version: 1.34.0-dev (98) Build Number: 20240327.12 Branch: main Platform/OS: Windows 10/Linux Ubuntu 22.04/MacOS Sonoma 14.4(Apple M1 Pro) Architecture: x64/x64/arm64 How Found: From running test cases Regression From: Not a regression
Steps to Reproduce
Expected Experience
There is no extra action.
Actual Experience
There are three extra actions.