Skip to content

Commit

Permalink
adding quotes around keys with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryGeorgist committed Feb 24, 2023
1 parent f7dcd85 commit f357c97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ publishing {
}

group 'mil.army.usace.hec'
version '0.0.32'
version '0.0.33'
}
4 changes: 4 additions & 0 deletions src/main/java/usace/wat/plugin/CcStoreS3.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ private byte[] DownloadBytesFromS3(String key) throws Exception{
S3Object fullObject = null;
System.out.println(key);
System.out.println(remoteRootPath);
boolean spaces = key.contains(" ");
if(spaces){
key = "\""+ key + "\"";
}
try {
fullObject = awsS3.getObject(new GetObjectRequest(remoteRootPath, key));
System.out.println("Content-Type: " + fullObject.getObjectMetadata().getContentType());
Expand Down

0 comments on commit f357c97

Please sign in to comment.