fix browser hang when listobjects is denied (#6385)

When Deny ListObjects policy is set on bucket, the browser
is hanging while trying to list the object. This is now
fixed by showing appropriate error message and an
empty object list.

Fixes #6371
This commit is contained in:
Kanagaraj Mayilsamy
2018-09-05 01:32:02 +05:30
committed by kannappanr
parent d13bd5b9b5
commit 2c46214291
4 changed files with 126 additions and 37 deletions

View File

@@ -50,6 +50,13 @@ export default (
marker: action.marker,
isTruncated: action.isTruncated
}
case actionsObjects.RESET_LIST:
return {
...state,
list: [],
marker: "",
isTruncated: false
}
case actionsObjects.APPEND_LIST:
return {
...state,