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
365 stars 85 forks source link

All columns disappear if try to delete one entity and then only make one column visible in one SAS attached table which doesn't have "Delete" permission #7881

Closed v-kellyluo closed 2 months ago

v-kellyluo commented 2 months ago

Storage Explorer Version: 1.34.0-dev (98) Build Number: 20240417.1 Branch: main Platform/OS: Windows 10/Linux Ubuntu 22.04/MacOS Sonoma 14.3(Apple M1 Pro) Architecture: x64/x64//x64 How Found: Ad-hoc testing Regression From: Previous release (1.33.1)

Steps to Reproduce

  1. Expand one storage account -> Tables.
  2. Select one table which contains entities.
  3. SAS attach the table without 'Delete' permission.
  4. Switch to the attached table - > Try to delete an entity.
  5. Click 'Customize Columns' -> Make one column visible -> Click 'OK'.
  6. Check whether one column appears.

Expected Experience

One column appears.

Actual Experience

All columns disappear. image

Additional Context

This issue doesn't reproduce for other services.

craxal commented 2 months ago

Root cause not really related to SAS or delete permissions. It happens when you select a column and then hide enough columns such that the index of the selected column lies outside of the range of visible columns (for example, if you select the second column then hide all but one of the columns).

v-kellyluo commented 2 months ago

Verified this issue on the build 20240419.1. Fixed.