-
Notifications
You must be signed in to change notification settings - Fork 53
Description
Description
When using VersityGW with Azure Blob Storage as the backend and setting MaxKeys (e.g., to 2) while having more objects (e.g., 4), the first ListObjectsV2 call succeeds. However, the gateway returns the last key as the continuation token, and passing this token to the next call causes the Azure API to throw 400 Bad Request with InvalidQueryParameterValue.
Steps to Reproduce
- Deploy VersityGW configured to use Azure Blob Storage as the backend.
- Upload 4 objects to the bucket.
- Call ListObjectsV2 with MaxKeys = 2.
- Observe that the response returns the last object's key as ContinuationToken.
- Use that token in the next ListObjectsV2 call — the response results in an error.
Expected Behavior
Azure’s pagination requires using the provided NextMarker from Azure responses, not simply the last retrieved key. If Azure returns a NextMarker, it should be used as the continuation token going forward.
Actual Behavior
VersityGW incorrectly uses the last key (from listing results) as the continuation token, rather than the Azure-provided NextMarker, causing invalid queries when passed to Azure.
Refer #1410
Metadata
Metadata
Assignees
Labels
Type
Projects
Status