Bug #10195
closeds3 java jdk conn.getobject(...) (get s3 object) method fails with latest version of aws s3 java jdk
0%
Description
For instance,
in the Java example ( http://docs.ceph.com/docs/master/radosgw/s3/java/ )
The example:
Download an Object (to a file) This downloads the object perl_poetry.pdf and saves it in /home/larry/documents conn.getObject( new GetObjectRequest(bucket.getName(), "perl_poetry.pdf"), new File("/home/larry/documents/perl_poetry.pdf") );
Is not longer valid as of version aws-java-sdk-s3.-1.9.5 (latest version is 1.9.6).
Executing the block of code fails with "Invalid Arguments" Http Status 400.
I went through all the minor releases of the aws-java-sdk-s3 and found out reverting back to version 1.9.4 fixes this issue.
Moreover, I suspect this is a deeper rooted problem in all the Sdks as to how GET S3 Object request is constructed. Moving forward this will persist as an issue in all versions aws-java-sdk-s3 and possibly other sdks for other languages. Please investigate this bug.
Also,
Minor Enhancement request:
Specify which API/SDK version was used for the sample code in the docs. This would of been helped if the version of the jdk tested with in the documentation was explicitly stated so i didn't have to go through each minor release jar file to guess which version to revert back to.
Files