It seems reg-publish-s3-plugin does not list all objects in the downloading process when there are more than 1000 objects.
The plugin passes Marker parameter to ListObjectsV2Command to get all objects recursively.
But ListObjectsV2Command does not support Marker and ignores it. So ListObjectsV2Command is called infinitely..
We should use ContinuationToken instead.
Describe the bug
It seems
reg-publish-s3-plugin
does not list all objects in the downloading process when there are more than 1000 objects. The plugin passesMarker
parameter toListObjectsV2Command
to get all objects recursively. ButListObjectsV2Command
does not supportMarker
and ignores it. SoListObjectsV2Command
is called infinitely.. We should useContinuationToken
instead.https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/ListObjectsV2CommandInput/
https://github.com/reg-viz/reg-suit/blob/cf3ba8cbe24ecbcdab14d97617a72a7e62dfb5b6/packages/reg-publish-s3-plugin/src/s3-publisher-plugin.ts#L167-L173
Reproduced step
Steps to reproduce the behavior:
Expected behavior
Downloading items finishes.
Actual behavior
Downloading items never finishes.