fix: listobjects return empty response for invalid prefix/marker (#5425)

Currently minio server returns a NotImplemented error when marker
is not common with prefix. Instead, return an empty ListObjectsResponse
This commit is contained in:
poornas
2018-01-18 14:39:39 -08:00
committed by kannappanr
parent b6e4f053a3
commit dd5a3289dd
3 changed files with 26 additions and 3 deletions
+2 -2
View File
@@ -696,7 +696,7 @@ func TestValidateHealQueryParams(t *testing.T) {
marker: "notmatchingmarker",
delimiter: "/",
maxKeys: "10",
apiErr: ErrNotImplemented,
apiErr: ErrInvalidPrefixMarker,
},
// 8. Invalid params with unsupported delimiter.
{
@@ -812,7 +812,7 @@ func TestListObjectsHealHandler(t *testing.T) {
marker: "notmatchingmarker",
delimiter: "/",
maxKeys: "10",
statusCode: getAPIError(ErrNotImplemented).HTTPStatusCode,
statusCode: getAPIError(ErrInvalidPrefixMarker).HTTPStatusCode,
},
// 8. Invalid params with unsupported delimiter.
{