microsoft / AzureStorageExplorer

Easily manage the contents of your storage account with Azure Storage Explorer. Upload, download, and manage blobs, files, queues, tables, and Cosmos DB entities. Gain easy access to manage your virtual machine disks. Work with either Azure Resource Manager or classic storage accounts, plus manage and configure cross-origin resource sharing (CORS) rules.
Creative Commons Attribution 4.0 International
370 stars 84 forks source link

Not able to change public access level to 'Public read access for container and blobs' #8065

Closed sameer9 closed 2 weeks ago

sameer9 commented 1 month ago

Preflight Checklist

Storage Explorer Version

1.19.0

Regression From

1.18.0

Architecture

i86

Storage Explorer Build Number

No response

Platform

All

OS Version

Window

Bug Description

"name": "RestError", "message": "Public access is not permitted on this storage account.\nRequestId:be67d219-901e-0033-0f0e-d9508f000000\nTime:2024-07-18T12:32:19.5848554Z", "stack": "RestError: Public access is not permitted on this storage account.\nRequestId:be67d219-901e-0033-0f0e-d9508f000000\nTime:2024-07-18T12:32:19.5848554Z\n at handleErrorResponse (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\blob-extension\dist\src\index.js:15:2973)\n at C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\blob-extension\dist\src\index.js:15:1827\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Xp.attemptSendRequest (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\blob-extension\dist\src\index.js:20:12494)\n at async oo.sendOperationRequest (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\blob-extension\dist\src\index.js:16:12049)\n at async ec.setAccessPolicy (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\blob-extension\dist\src\index.js:30:93493)\n at async sd.runOperation (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\blob-extension\dist\src\index.js:47:6274)\n at async setAccessLevel (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\blob-extension\dist\src\index.js:89:19449)\n at async Azure.Storage.BlobContainer.manageAccessLevel (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\blob-extension\dist\src\index.js:89:47976)\n at async Ye.executeOperation (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\out\app\node\NodeProcessHostProxy.js:3:2742)", "code": "PublicAccessNotPermitted", "statusCode": 409, "request": { "streamResponseStatusCodes": {}, "url": "https://huntscaler.blob.core.windows.net/trendyburst?restype=container&comp=acl", "method": "PUT", "headers": { "_headersMap": { "content-type": { "name": "Content-Type", "value": "application/xml" }, "accept": { "name": "Accept", "value": "application/xml" }, "x-ms-version": { "name": "x-ms-version", "value": "2023-01-03" }, "x-ms-blob-public-access": { "name": "x-ms-blob-public-access", "value": "container" },

Steps to Reproduce

Open Azure Storage Explorer or use the Azure Portal. Navigate to the Blob Container:

In Storage Explorer: Expand the storage account, then Blob Containers, and select the container where the blob is stored.
In Azure Portal: Navigate to your storage account, then select "Blob service" > "Containers".

Change Access Level:

Right-click on the container in Storage Explorer and select "Set Public Access Level".
Choose "Blob" or "Container" as the access level (Blob means blobs can be accessed publicly, Container means the entire container and blobs can be accessed).
Click "Apply".

Actual Experience

Open Azure Storage Explorer or use the Azure Portal. Navigate to the Blob Container:

In Storage Explorer: Expand the storage account, then Blob Containers, and select the container where the blob is stored.
In Azure Portal: Navigate to your storage account, then select "Blob service" > "Containers".

Change Access Level:

Right-click on the container in Storage Explorer and select "Set Public Access Level".
Choose "Blob" or "Container" as the access level (Blob means blobs can be accessed publicly, Container means the entire container and blobs can be accessed).
Click "Apply".

Expected Experience

Open Azure Storage Explorer or use the Azure Portal. Navigate to the Blob Container:

In Storage Explorer: Expand the storage account, then Blob Containers, and select the container where the blob is stored.
In Azure Portal: Navigate to your storage account, then select "Blob service" > "Containers".

Change Access Level:

Right-click on the container in Storage Explorer and select "Set Public Access Level".
Choose "Blob" or "Container" as the access level (Blob means blobs can be accessed publicly, Container means the entire container and blobs can be accessed).
Click "Apply".

Additional Context

No response

craxal commented 1 month ago

@sameer9 The error message indicates that your administrator has disabled public anonymous access in your storage account, which means you cannot change the public access level. If you want to change it, you'll have to get your administrator to enable it.

image
craxal commented 2 weeks ago

Closing due to inactivity. If this is still an issue, please respond by providing the requested information, and we will review.