Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into release/1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
skorper committed Mar 6, 2024
2 parents a242f62 + 57f6d59 commit cfc6791
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [1.8.0]
### Added
- **User contribution**
- Add the "fileName" and "key" properties to the granuleFile object from buildS3GranuleFile function
### Changed
- **PODAAC-5877**
- Support java 11
Expand All @@ -15,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed
### Fixed
### Security
- Snyk: Upgrade com.amazonaws:aws-java-sdk-s3: 1.12.565 -> 1.12.661

## [v1.7.0] - 2022-12-12
### Added
Expand Down Expand Up @@ -168,4 +171,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

### Security
### Security
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-s3</artifactId>
<version>1.12.565</version>
<version>1.12.661</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/gov/nasa/cumulus/CnmToGranuleHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ public JsonObject buildS3GranuleFile(JsonObject cnmFile) {
granuleFile.addProperty("checksum", cnmFile.get("checksum").getAsString());
}
granuleFile.addProperty("type", cnmFile.get("type").getAsString());

// Add the "fileName" and "key" properties as listed in the later version of the cumulus granule file schema
granuleFile.addProperty("fileName", cnmFile.get("name").getAsString());
granuleFile.addProperty("key", url_path + '/' + cnmFile.get("name").getAsString());
return granuleFile;
}

Expand Down

0 comments on commit cfc6791

Please sign in to comment.