whole-tale / dashboard

Whole Tale Dashboard
http://wholetale.org
MIT License
7 stars 2 forks source link

Rename file/folder allows duplicates, but a refresh reveals that saving has failed #622

Open bodom0015 opened 4 years ago

bodom0015 commented 4 years ago

Steps to Reproduce

  1. Login to the WholeTale Dashboard
  2. Create a Tale, if you haven't already
  3. Navigate to Run > Files > Home or Run > Files > Tale Workspace
  4. Upload the same file twice
  5. Expand the dropdown menu beside the (1) file and choose Rename

Expected Results The rename operation should fail and alert the user of the failure

Actual Results The rename operation fails silently, and doesn't notify the user. A refresh reverts the file name change that failed to save to the backend.

The user can choose to rename a file or folder in the UI. Without validation, this form allows the user to submit a duplicate file name. Since the backend doesn't allow this, and the UI does not handle the error properly, the user is led to believe that their rename was successful. Refreshing the page reveals that the save actually failed.