StorageGRID S3 Copy fails with 404 NoSuchKey when object path uses double slash
Applies to
- StorageGRID firmware version 11.9.0.
- Application using AWS S3 SDK with Java 17 and Java 21 runtimes
Issue
- Application moving files within S3 bucket fails with
NoSuchKey (404)error - Error message from application:
com.amazonaws.services.s3.model.AmazonS3Exception: The specified key does not exist. (Service: AmazonS3; StatusCode:404; ErrorCode:NoSuchKey; RequestID:)
- Observed error when copying object from source path with double slash (
//) to destination path:
- Object path example:
- sourcePath=
text//txt/.. - destinationPath=
text/txt/..
- sourcePath=
- When Performing object metadata look up for the affected objects: StorageGRID manager > ILM > Object metadata lookup
- Object is found when searching with single slash (/) in path, not with double slash (
//)
- Object is found when searching with single slash (/) in path, not with double slash (
