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
377 stars 87 forks source link

Unnamed folder could not be deleted or renamed #8255

Closed smdibm closed 3 weeks ago

smdibm commented 1 month ago

Preflight Checklist

Storage Explorer Version

1.33.1

Regression From

No response

Architecture

x64

Storage Explorer Build Number

20240410.2

Platform

All

OS Version

No response

Bug Description

I am trying to delete a unnamed folder in blob storage but getting below error.

{ "name": "RestError", "message": "The source URI is invalid.\nRequestId:f0b7dc10-a01f-006f-6fe8-24c042000000\nTime:2024-10-23T01:14:33.2993977Z", "stack": "RestError: The source URI is invalid.\nRequestId:f0b7dc10-a01f-006f-6fe8-24c042000000\nTime:2024-10-23T01:14:33.2993977Z\n at handleErrorResponse (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\adls2-extension\dist\src\index.js:15:2973)\n at C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\adls2-extension\dist\src\index.js:15:1827\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async gl.attemptSendRequest (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\adls2-extension\dist\src\index.js:36:58311)\n at async xl.sendOperationRequest (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\adls2-extension\dist\src\index.js:16:12049)\n at async a.move (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\adls2-extension\dist\src\index.js:42:12256)\n at async Nc.runOperation (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\adls2-extension\dist\src\index.js:59:5875)\n at async Nc.movePath (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\adls2-extension\dist\src\index.js:85:5906)\n at async renamePath (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\adls2-extension\dist\src\index.js:85:15671)\n at async Azure.Storage.AdlsGen2.renamePath (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\adls2-extension\dist\src\index.js:87:10482)", "code": "InvalidSourceUri", "statusCode": 400, "request": { "streamResponseStatusCodes": {}, "url": "https://st0ds0tst0dse0gb0cc0hub.dfs.core.windows.net/datasource/test1234?mode=legacy", "method": "PUT", "headers": { "_headersMap": { "accept": { "name": "Accept", "value": "application/json" }, "x-ms-version": { "name": "x-ms-version", "value": "2023-11-03" }, "x-ms-rename-source": { "name": "x-ms-rename-source", "value": "/datasource/%20" }, "user-agent": { "name": "User-Agent", "value": "Microsoft Azure Storage Explorer/1.33.1 (win32) azsdk-js-storagedatalake/12.16.0 (NODE-VERSION v18.18.2; Windows_NT 10.0.22000)" }, "response": { "request": { "streamResponseStatusCodes": {}, "url": "https://st0ds0tst0dse0gb0cc0hub.dfs.core.windows.net/datasource/test1234?mode=legacy", "method": "PUT", "headers": { "_headersMap": { "accept": { "name": "Accept", "value": "application/json" }, "x-ms-version": { "name": "x-ms-version", "value": "2023-11-03" }, "x-ms-rename-source": { "name": "x-ms-rename-source", "value": "/datasource/%20" }, "user-agent": { "name": "User-Agent", "value": "Microsoft Azure Storage Explorer/1.33.1 (win32) azsdk-js-storagedatalake/12.16.0 (NODE-VERSION v18.18.2; Windows_NT 10.0.22000)" }, "x-ms-client-request-id": { "name": "x-ms-client-request-id", "value": "2827b133-9141-4e4d-846d-39bbfde39fe6" }, "x-ms-date": { "name": "x-ms-date", "value": "Wed, 23 Oct 2024 01:14:33 GMT" }, "authorization": { "name": "Authorization", "value": "**" }, "content-type": { "name": "Content-Type", "value": "" } } }, "withCredentials": false, "timeout": 0, "keepAlive": true, "decompressResponse": false, "requestId": "2827b133-9141-4e4d-846d-39bbfde39fe6", "operationSpec": { "path": "/{filesystem}/{path}", "httpMethod": "PUT", "responses": { "201": { "headersMapper": { "serializedName": "Path_createHeaders", "type": { "name": "Composite", "className": "PathCreateHeaders", "modelProperties": { "date": { "serializedName": "date", "xmlName": "date", "type": { "name": "DateTimeRfc1123" } }, "etag": { "serializedName": "etag", "xmlName": "etag", "type": { "name": "String" } }, "lastModified": { "serializedName": "last-modified", "xmlName": "last-modified", "type": { "name": "DateTimeRfc1123" } },

"bodyAsText": "{\"error\":{\"code\":\"InvalidSourceUri\",\"message\":\"The source URI is invalid.\\nRequestId:f0b7dc10-a01f-006f-6fe8-24c042000000\\nTime:2024-10-23T01:14:33.2993977Z\"}}",
"parsedBody": {
  "error": {
    "code": "InvalidSourceUri",
    "message": "The source URI is invalid.\nRequestId:f0b7dc10-a01f-006f-6fe8-24c042000000\nTime:2024-10-23T01:14:33.2993977Z"
  }
},
"parsedHeaders": {
  "errorCode": "InvalidSourceUri",
  "content-length": "159",
  "content-type": "application/json;charset=utf-8",
  "date": "Wed, 23 Oct 2024 01:14:32 GMT",
  "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0",
  "x-ms-client-request-id": "2827b133-9141-4e4d-846d-39bbfde39fe6",
  "x-ms-request-id": "f0b7dc10-a01f-006f-6fe8-24c042000000",
  "x-ms-version": "2023-11-03"
}

}, "details": { "errorCode": "InvalidSourceUri", "content-length": "159", "content-type": "application/json;charset=utf-8", "date": "Wed, 23 Oct 2024 01:14:32 GMT", "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", "x-ms-client-request-id": "2827b133-9141-4e4d-846d-39bbfde39fe6", "x-ms-request-id": "f0b7dc10-a01f-006f-6fe8-24c042000000", "x-ms-version": "2023-11-03", "error": { "code": "InvalidSourceUri", "message": "The source URI is invalid.\nRequestId:f0b7dc10-a01f-006f-6fe8-24c042000000\nTime:2024-10-23T01:14:33.2993977Z" } } }

Steps to Reproduce

  1. Launch Storage Explorer
  2. Open storage account and expand blob containers
  3. delete the unnamed folder

Actual Experience

Long back there was a unnamed folder created in Azure blob storage and now we are trying to delete it but getting the above error, we tried to delete the same folder from Azure portal too but no luck

Expected Experience

No response

Additional Context

No response

craxal commented 4 weeks ago

If the Azure Portal is also unable to delete it, then it sounds like it's not a Storage Explorer issue. I suggest you open an Azure support request to get help with the problematic folder.