Skip to content

Commit ac30566

Browse files
authored
Merge pull request #11416 from QualitativeDataRepository/IQSS/10680-BagitFix
IQSS/10680-Bagit warning fix
2 parents 1bc9ca8 + 1b4b1d7 commit ac30566

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### Archival Bag Configuration Change
2+
3+
Archival Bags now use the JVM option `dataverse.bagit.sourceorg.name` in generating the bag-info.txt file's "Internal-Sender-Identifier" (in addition to its use for "Source-Organization") rather than pulling the value from a deprecated `bagit.SourceOrganization` entry in Bundle.properties ("Internal-Sender-Identifier" is generated by appending " Catalog" in both cases). Sites using archival bags would not see a change if these settings were already using the same value. See #10680 and #11416.
4+
5+
## Upgrade Instructions
6+
7+
If you are using archival bags, be sure that the `dataverse.bagit.sourceorg.name` JVM option is set.
8+
9+

src/main/java/edu/harvard/iq/dataverse/util/bagit/BagGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ private String generateInfoFile() {
871871
info.append(CRLF);
872872

873873
info.append("Internal-Sender-Identifier: ");
874-
String catalog = BundleUtil.getStringFromBundle("bagit.sourceOrganization") + " Catalog";
874+
String catalog = orgName + " Catalog";
875875
if (aggregation.has(JsonLDTerm.schemaOrg("includedInDataCatalog").getLabel())) {
876876
catalog = aggregation.get(JsonLDTerm.schemaOrg("includedInDataCatalog").getLabel()).getAsString();
877877
}

0 commit comments

Comments
 (0)