From 7d93b50f1d0698c2b7981a10ae6159497b26500e Mon Sep 17 00:00:00 2001 From: Arthur Poiret Date: Thu, 24 Sep 2026 19:23:58 +0200 Subject: [PATCH] fix: open audio stack file size int overflow backport on 2.0.x --- owlplug-client/pom.xml | 10 +++++----- .../com/owlplug/explore/model/mappers/oas/OASFile.java | 6 +++--- .../explore/model/mappers/oas/OASModelAdapter.java | 3 +-- owlplug-controls/pom.xml | 2 +- owlplug-host/pom.xml | 2 +- owlplug-parsers/pom.xml | 2 +- owlplug-theme/pom.xml | 2 +- pom.xml | 2 +- 8 files changed, 14 insertions(+), 15 deletions(-) diff --git a/owlplug-client/pom.xml b/owlplug-client/pom.xml index caad69dc..061489bd 100644 --- a/owlplug-client/pom.xml +++ b/owlplug-client/pom.xml @@ -12,7 +12,7 @@ com.owlplug owlplug - 2.0.1 + 2.0.2 owlplug-client @@ -36,22 +36,22 @@ com.owlplug owlplug-host - 2.0.1 + 2.0.2 com.owlplug owlplug-theme - 2.0.1 + 2.0.2 com.owlplug owlplug-controls - 2.0.1 + 2.0.2 com.owlplug owlplug-parsers - 2.0.1 + 2.0.2 org.springframework.boot diff --git a/owlplug-client/src/main/java/com/owlplug/explore/model/mappers/oas/OASFile.java b/owlplug-client/src/main/java/com/owlplug/explore/model/mappers/oas/OASFile.java index b92f222b..9587ab8b 100644 --- a/owlplug-client/src/main/java/com/owlplug/explore/model/mappers/oas/OASFile.java +++ b/owlplug-client/src/main/java/com/owlplug/explore/model/mappers/oas/OASFile.java @@ -26,7 +26,7 @@ public class OASFile { private List architectures; private List contains; private String type; - private int size; + private long size; private String sha256; private String url; @@ -62,11 +62,11 @@ public void setType(String type) { this.type = type; } - public int getSize() { + public long getSize() { return size; } - public void setSize(int size) { + public void setSize(long size) { this.size = size; } diff --git a/owlplug-client/src/main/java/com/owlplug/explore/model/mappers/oas/OASModelAdapter.java b/owlplug-client/src/main/java/com/owlplug/explore/model/mappers/oas/OASModelAdapter.java index 2e0f1574..77428d95 100644 --- a/owlplug-client/src/main/java/com/owlplug/explore/model/mappers/oas/OASModelAdapter.java +++ b/owlplug-client/src/main/java/com/owlplug/explore/model/mappers/oas/OASModelAdapter.java @@ -102,8 +102,7 @@ public static PackageBundle mapperToEntity(OASFile file, String name) { String bundleName = name + " - " + String.join(" ", targets); packageBundle.setName(bundleName); - // Size in OAS registry is in bits not in bytes. - packageBundle.setFileSize(file.getSize() / 8); + packageBundle.setFileSize(file.getSize()); packageBundle.setFormats(getPluginFormatsFromFileFormats(file.getContains())); return packageBundle; diff --git a/owlplug-controls/pom.xml b/owlplug-controls/pom.xml index 1d510e1e..7cf86b63 100644 --- a/owlplug-controls/pom.xml +++ b/owlplug-controls/pom.xml @@ -5,7 +5,7 @@ owlplug com.owlplug - 2.0.1 + 2.0.2 4.0.0 diff --git a/owlplug-host/pom.xml b/owlplug-host/pom.xml index 6d022122..450e0e91 100644 --- a/owlplug-host/pom.xml +++ b/owlplug-host/pom.xml @@ -7,7 +7,7 @@ com.owlplug owlplug - 2.0.1 + 2.0.2 owlplug-host owlplug-host diff --git a/owlplug-parsers/pom.xml b/owlplug-parsers/pom.xml index e5bc6062..29608a8b 100644 --- a/owlplug-parsers/pom.xml +++ b/owlplug-parsers/pom.xml @@ -5,7 +5,7 @@ owlplug com.owlplug - 2.0.1 + 2.0.2 4.0.0 diff --git a/owlplug-theme/pom.xml b/owlplug-theme/pom.xml index db360534..36204855 100644 --- a/owlplug-theme/pom.xml +++ b/owlplug-theme/pom.xml @@ -7,7 +7,7 @@ com.owlplug owlplug - 2.0.1 + 2.0.2 owlplug-theme diff --git a/pom.xml b/pom.xml index 644edbfb..6a0be8cd 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.owlplug owlplug - 2.0.1 + 2.0.2 pom