File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/main/java/software/amazon/encryption/s3/internal Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,16 @@ public static CreateMultipartUploadRequest convert(PutObjectRequest request) {
121121 default :
122122 // Rather than silently dropping the value,
123123 // we loudly signal that we don't know how to handle this field.
124- throw new IllegalArgumentException ("Unknown PutObjectRequest field " + f .locationName () + "." );
124+ throw new IllegalArgumentException (
125+ f .locationName () + " is an unknown field. " +
126+ "The S3 Encryption Client does not recognize this option and cannot set it on the CreateMultipartUploadRequest." +
127+ "This may be a new S3 feature." +
128+ "Please report this to the Amazon S3 Encryption Client for Java: " +
129+ "https://github.com/aws/amazon-s3-encryption-client-java/issues." +
130+ "To work around this issue you can disable multi part upload," +
131+ "use the Async client, or not set this value on PutObject." +
132+ "You may be able to update this value after the PutObject request completes."
133+ );
125134 }
126135 }
127136 });
You can’t perform that action at this time.
0 commit comments