[ 
https://issues.apache.org/jira/browse/HDFS-17854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18036314#comment-18036314
 ] 

Jim Halfpenny commented on HDFS-17854:
--------------------------------------

The cause of the issue is down to how the delete confirmation modal is handled. 
If you select a file to delete and click on cancel the modal is hidden but the 
event is not cleaned up. This means several delete events can be stacked up 
that are all trigged when the Delete button is clicked in the confirmation 
modal. The screenshot from Firefox developer tools illustrates this, with 
multiple events being associated with the next click of the delete button.

!manky_modal.png!

> Namenode Web UI file deletion bug
> ---------------------------------
>
>                 Key: HDFS-17854
>                 URL: https://issues.apache.org/jira/browse/HDFS-17854
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 3.4.2
>            Reporter: Jim Halfpenny
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: manky_modal.png
>
>
> A bug in the namenode web UI can lead to unexpected deletion of files. When a 
> file is selection for deletion but the cancel button is pressed in the modal 
> popup the modal is hidden but the event is not deleted. A subsequent delete 
> operation will delete all files previously selected for deletion but 
> cancelled as well as the the intended file. 
> The following steps can be used to reproduce this issue:
>  * Open the namenode web UI and select utilities -> Browse the file system
>  * Click on the trashcan delete icon next to a file
>  * Click the cancel button on the delete confirmation modal
>  * Click in the delete icon for a different file
>  * Click the Delete button on the delete confirmation modal
>  * Both files are deleted



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to