You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why is it set to 5000 by default here, and why is it not loaded in the form of configuration? It is recommended to modify it to below 1000.
In S3, when the ListObjectisV2 API is called, it will default to returning up to 1000 objects. If it exceeds 1000, an error message will be returned: operation error S3: ListObjectisV2, https response error StatusCode: 400, api error InvalidRequest: The value of max-keys is not valid: 5000
error retrieving directory entries: operation error S3: ListObjectsV2, https response error StatusCode: 400, api error InvalidRequest: The value of max-keys is not valid: 5000
What are you using SFTPGo for?
Enterprise
Additional info
No response
The text was updated successfully, but these errors were encountered:
There is no such limitation in S3 and other S3-compatible implementations we have tested. You are probably using an S3-compatible implementation that has added this limitation, so this seems specific to your use case.
Please share the S3 implementation you are using. Thank you
sorry,We are a self-developed object storage that is compatible with the S3 protocol. Can we change this default value to a configuration for better compatibility ?
There is no such limitation in S3 and other S3-compatible implementations we have tested. You are probably using an S3-compatible implementation that has added this limitation, so this seems specific to your use case.
Please share the S3 implementation you are using. Thank you
Bug description
https://github.com/drakkan/sftpgo/blob/main/internal/vfs/s3fs.go#L69
s3DefaultPageSize = int32(5000)
Why is it set to 5000 by default here, and why is it not loaded in the form of configuration? It is recommended to modify it to below 1000.
In S3, when the ListObjectisV2 API is called, it will default to returning up to 1000 objects. If it exceeds 1000, an error message will be returned: operation error S3: ListObjectisV2, https response error StatusCode: 400, api error InvalidRequest: The value of max-keys is not valid: 5000
Steps to reproduce
1.s3 ListObjectisV2 api error
Expected behavior
https://github.com/drakkan/sftpgo/blob/main/internal/vfs/s3fs.go#L69
Change to s3DefaultPageSize=int32 (500)
SFTPGo version
2.6.4
Data provider
sqlite
Installation method
Community Docker image
Configuration
config
Relevant log output
What are you using SFTPGo for?
Enterprise
Additional info
No response
The text was updated successfully, but these errors were encountered: