diff --git a/ReleaseNotes.md b/ReleaseNotes.md
index 24f8709..83126f2 100644
--- a/ReleaseNotes.md
+++ b/ReleaseNotes.md
@@ -2,6 +2,11 @@
# Release Notes Gematik Referenzvalidator
+## Release 2.0.1
+
+### fixed
+- fixed a bug in the snapshot generator (snapshot generation failed for dependencies with uppercase name parts)
+
## Release 2.0.0
### added
diff --git a/cli/pom.xml b/cli/pom.xml
index 7d19b8d..24a6d60 100644
--- a/cli/pom.xml
+++ b/cli/pom.xml
@@ -5,7 +5,7 @@
referencevalidator
de.gematik.refv
- 2.0.0
+ 2.0.1
${basedir}/target/test-classes/pluginloader-integration-test
diff --git a/commons/pom.xml b/commons/pom.xml
index ecf19ad..380a736 100644
--- a/commons/pom.xml
+++ b/commons/pom.xml
@@ -5,7 +5,7 @@
referencevalidator
de.gematik.refv
- 2.0.0
+ 2.0.1
4.0.0
diff --git a/core/pom.xml b/core/pom.xml
index 8e8fc9b..871f216 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -5,7 +5,7 @@
referencevalidator
de.gematik.refv
- 2.0.0
+ 2.0.1
4.0.0
diff --git a/pom.xml b/pom.xml
index 831a030..7a83d92 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
de.gematik.refv
referencevalidator
pom
- 2.0.0
+ 2.0.1
gematik Referenzvalidator
Der Referenzvalidator ermöglicht eine erweiterte Validierung von FHIR-Ressourcen, die in den Anwendungen der Telematikinfrastruktur (TI) verwendet werden. Der Referenzvalidator liefert autoritative Antworten zur Validität von übertragenen Datensätzen und ist somit eine Referenz für eventuell sonst im Rahmen einer TI-Anwendung eingesetzte FHIR-Validatoren.
https://github.com/gematik/app-referencevalidator
diff --git a/snapshot-generator/pom.xml b/snapshot-generator/pom.xml
index 0251092..163e967 100644
--- a/snapshot-generator/pom.xml
+++ b/snapshot-generator/pom.xml
@@ -6,7 +6,7 @@
de.gematik.refv
referencevalidator
- 2.0.0
+ 2.0.1
snapshot-generator
diff --git a/snapshot-generator/src/main/java/de/gematik/refv/snapshots/helper/DependencyGenerator.java b/snapshot-generator/src/main/java/de/gematik/refv/snapshots/helper/DependencyGenerator.java
index 35af007..d80100c 100644
--- a/snapshot-generator/src/main/java/de/gematik/refv/snapshots/helper/DependencyGenerator.java
+++ b/snapshot-generator/src/main/java/de/gematik/refv/snapshots/helper/DependencyGenerator.java
@@ -55,7 +55,7 @@ private List getDependencyList(String filename, String packageFolderPath
private void getDependenciesFromPackageJson(String packageFolderPath, List dependencyList, String filename) throws IOException {
List additionalRefs = getDependenciesFor(packageFolderPath + File.separator + filename);
for (PackageReference pr : additionalRefs) {
- String packageFileName = String.format("%s-%s.tgz", pr.getPackageName(), pr.getPackageVersion());
+ String packageFileName = String.format("%s-%s.tgz", pr.getPackageName(), pr.getPackageVersion()).toLowerCase();
if (!dependencyList.contains(packageFileName)) {
dependencyList.add(packageFileName);
}
diff --git a/snapshot-generator/src/test/java/de/gematik/refv/snapshots/SnapshotGeneratorTests.java b/snapshot-generator/src/test/java/de/gematik/refv/snapshots/SnapshotGeneratorTests.java
index ea9925f..c9356d1 100644
--- a/snapshot-generator/src/test/java/de/gematik/refv/snapshots/SnapshotGeneratorTests.java
+++ b/snapshot-generator/src/test/java/de/gematik/refv/snapshots/SnapshotGeneratorTests.java
@@ -64,6 +64,16 @@ void testPackagesCanBeExcluded() {
assertFalse(new File(OUTPUT_SNAPSHOT_PACKAGES_DIR + "excluded.package-1.0.0.tgz").exists());
}
+ @Test
+ @SneakyThrows
+ void testNoExceptionOnDependenciesWithUpperCase() {
+ List excludedPackages = new ArrayList<>();
+ var snapshotGenerator = new SnapshotGenerator(excludedPackages);
+ snapshotGenerator.generateSnapshots("src/test/resources/src-package-upper-case/", OUTPUT_SNAPSHOT_PACKAGES_DIR, getDecompressDir());
+ File generatedSnapshotPackage = new File(OUTPUT_SNAPSHOT_PACKAGES_DIR + "dependencies-in-upper-case-1.0.0.tgz");
+ assertTrue(generatedSnapshotPackage.exists(), "No snapshots generated for package with upper-case dependencies");
+ }
+
@Test
@SneakyThrows
void testCleanUpDirectoryWorksBeforeSnapshotGeneration() {
diff --git a/snapshot-generator/src/test/resources/src-package-upper-case/dependencies-in-upper-case-1.0.0.tgz b/snapshot-generator/src/test/resources/src-package-upper-case/dependencies-in-upper-case-1.0.0.tgz
new file mode 100644
index 0000000..2d4112c
Binary files /dev/null and b/snapshot-generator/src/test/resources/src-package-upper-case/dependencies-in-upper-case-1.0.0.tgz differ
diff --git a/snapshot-generator/src/test/resources/src-package-upper-case/minimal.example-1.0.0.tgz b/snapshot-generator/src/test/resources/src-package-upper-case/minimal.example-1.0.0.tgz
new file mode 100644
index 0000000..23880db
Binary files /dev/null and b/snapshot-generator/src/test/resources/src-package-upper-case/minimal.example-1.0.0.tgz differ
diff --git a/valmodule-base/pom.xml b/valmodule-base/pom.xml
index e6dcf1e..6280a8b 100644
--- a/valmodule-base/pom.xml
+++ b/valmodule-base/pom.xml
@@ -5,7 +5,7 @@
referencevalidator
de.gematik.refv
- 2.0.0
+ 2.0.1
4.0.0
diff --git a/valmodule-core/pom.xml b/valmodule-core/pom.xml
index 4f62b9e..0bcd2c1 100644
--- a/valmodule-core/pom.xml
+++ b/valmodule-core/pom.xml
@@ -6,7 +6,7 @@
de.gematik.refv
referencevalidator
- 2.0.0
+ 2.0.1
de.gematik.refv.valmodule
diff --git a/valmodule-eau/pom.xml b/valmodule-eau/pom.xml
index 9207353..74e0389 100644
--- a/valmodule-eau/pom.xml
+++ b/valmodule-eau/pom.xml
@@ -5,7 +5,7 @@
referencevalidator
de.gematik.refv
- 2.0.0
+ 2.0.1
4.0.0
diff --git a/valmodule-erp/pom.xml b/valmodule-erp/pom.xml
index ca1e18f..98ed310 100644
--- a/valmodule-erp/pom.xml
+++ b/valmodule-erp/pom.xml
@@ -5,7 +5,7 @@
referencevalidator
de.gematik.refv
- 2.0.0
+ 2.0.1
4.0.0