Update commons-compress in babel 91/138791/1
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Tue, 20 Aug 2024 06:16:10 +0000 (08:16 +0200)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Tue, 20 Aug 2024 06:16:10 +0000 (08:16 +0200)
- update commons-compress
- bump snapshot version to 1.13.3-SNAPSHOT

Issue-ID: AAI-3974
Change-Id: Iae107c5e32edbf92a8acac0a12e90d6347a7bae6
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
pom.xml
src/main/java/org/onap/aai/babel/csar/extractor/YamlExtractor.java
version.properties

diff --git a/pom.xml b/pom.xml
index a55342f..1cabfcd 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -33,7 +33,7 @@
 
        <groupId>org.onap.aai</groupId>
        <artifactId>babel</artifactId>
-       <version>1.13.2-SNAPSHOT</version>
+       <version>1.13.3-SNAPSHOT</version>
        <packaging>jar</packaging>
 
        <name>aai-babel</name>
@@ -92,7 +92,8 @@
                <groovy.version>3.0.13</groovy.version>
                <spring-cloud.version>2020.0.2</spring-cloud.version>
 
-               <commons.compress.version>1.22</commons.compress.version>
+               <commons.compress.version>1.27.0</commons.compress.version>
+               <commons.io.version>2.16.1</commons.io.version>
                <commons.codec.version>1.15</commons.codec.version>
 
                <javax.ws.rs.version>2.1.1</javax.ws.rs.version>
                </plugins>
        </build>
 
-</project>
\ No newline at end of file
+</project>
index 424e661..df6e6ba 100644 (file)
@@ -66,12 +66,14 @@ public class YamlExtractor {
 
         List<Artifact> ymlFiles = new ArrayList<>();
         try (SeekableInMemoryByteChannel inMemoryByteChannel = new SeekableInMemoryByteChannel(archive);
-                ZipFile zipFile = new ZipFile(inMemoryByteChannel)) {
-            for (Enumeration<ZipArchiveEntry> enumeration = zipFile.getEntries(); enumeration.hasMoreElements();) {
+             ZipFile zipFile = new ZipFile(inMemoryByteChannel)) {
+            Enumeration<ZipArchiveEntry> enumeration = zipFile.getEntries();
+            while(enumeration.hasMoreElements()) {
                 ZipArchiveEntry entry = enumeration.nextElement();
                 if (fileShouldBeExtracted(entry)) {
-                    ymlFiles.add(ModelGenerator.createArtifact(IOUtils.toByteArray(zipFile.getInputStream(entry)),
-                            entry.getName(), version));
+                    Artifact artifact = ModelGenerator.createArtifact(IOUtils.toByteArray(zipFile.getInputStream(entry)),
+                    entry.getName(), version);
+                    ymlFiles.add(artifact);
                 }
             }
             if (ymlFiles.isEmpty()) {
index f356022..776da6a 100644 (file)
@@ -4,7 +4,7 @@
 
 major=1
 minor=13
-patch=2
+patch=3
 
 base_version=${major}.${minor}.${patch}