You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2026/08/09 09:33:23 UTC
(ofbiz-framework) branch trunk updated (b4523efdac -> dbdedcc6f3)
This is an automated email from the ASF dual-hosted git repository.
jacopoc pushed a change to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
from b4523efdac Rename report titles to JUnit (Jupiter) branding and fix retitle idempotency (#1605)
new 7c06d638d0 Fixed: Resolve Dependabot alerts by upgrading js-yaml and brace-expansion to the latest versions
new dbdedcc6f3 Fixed: Update OpenApiUtil to resolve compilation warnings
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
framework/rest-api/package-lock.json | 80 +++++++++-------------
framework/rest-api/package.json | 4 +-
.../org/apache/ofbiz/ws/rs/util/OpenApiUtil.java | 13 ++--
3 files changed, 43 insertions(+), 54 deletions(-)
(ofbiz-framework) 01/02: Fixed: Resolve Dependabot alerts by upgrading js-yaml and brace-expansion to the latest versions
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jacopoc pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
commit 7c06d638d02e66aaf61032da6ecddbb9aed502af
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Sun Aug 9 11:16:48 2026 +0200
Fixed: Resolve Dependabot alerts by upgrading js-yaml and brace-expansion to the latest versions
---
framework/rest-api/package-lock.json | 80 +++++++++++++++---------------------
framework/rest-api/package.json | 4 +-
2 files changed, 36 insertions(+), 48 deletions(-)
diff --git a/framework/rest-api/package-lock.json b/framework/rest-api/package-lock.json
index 777b9306dc..6acc97f302 100644
--- a/framework/rest-api/package-lock.json
+++ b/framework/rest-api/package-lock.json
@@ -78,9 +78,9 @@
"license": "MIT"
},
"node_modules/@redocly/openapi-core": {
- "version": "1.34.15",
- "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.34.15.tgz",
- "integrity": "sha512-HAwCnNyKcs5XGQqms+9t7OdAPM/5TDstmhF+0i7tdCFato2QKuYIlyWETwkXd8c5zbltr1oB+6y9NTeQLr2d6Q==",
+ "version": "1.34.18",
+ "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.34.18.tgz",
+ "integrity": "sha512-UyKIm0wTPw5BcY7Z2PkbK1Ma260um96LSBWXHrdSMe+ZV0EPMyDfAcUcjjm3qEiGST9OK/1TriekdPCZkn4Q3A==",
"license": "MIT",
"dependencies": {
"@redocly/ajv": "8.11.2",
@@ -88,7 +88,7 @@
"colorette": "1.4.0",
"https-proxy-agent": "7.0.6",
"js-levenshtein": "1.1.6",
- "js-yaml": "4.1.1",
+ "js-yaml": "4.3.0",
"minimatch": "5.1.9",
"pluralize": "8.0.0",
"yaml-ast-parser": "0.0.43"
@@ -179,9 +179,9 @@
}
},
"node_modules/brace-expansion": {
- "version": "5.0.8",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz",
- "integrity": "sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==",
+ "version": "5.0.9",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
+ "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
"license": "MIT",
"dependencies": {
"balanced-match": "^4.0.2"
@@ -260,12 +260,15 @@
"license": "MIT"
},
"node_modules/core-js": {
- "version": "3.49.0",
- "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.49.0.tgz",
- "integrity": "sha512-es1U2+YTtzpwkxVLwAFdSpaIMyQaq0PBgm3YD1W3Qpsn1NAmO3KSgZfu+oGSWVu6NvLHoHCV/aYcsE5wiB7ALg==",
+ "version": "3.50.0",
+ "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.50.0.tgz",
+ "integrity": "sha512-BRWgOLKkFeCgRudR6zrs8p9XJZcE14grzKMMssoYrk6krtuEZ7MTKPIY5RzOnqsEKIR9kst7wNzphttraT+Yqw==",
"hasInstallScript": true,
"license": "MIT",
"peer": true,
+ "engines": {
+ "node": "*"
+ },
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/core-js"
@@ -371,9 +374,9 @@
"license": "MIT"
},
"node_modules/fast-xml-builder": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.2.0.tgz",
- "integrity": "sha512-00aAWieqff+ZJhsXA4g1g7M8k+7AYoMUUHF+/zFb5U6Uv/P0Vl4QZo84/IcufzYalLuEj9928bXN9PbbFzMF0Q==",
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.3.0.tgz",
+ "integrity": "sha512-F74cZEdCvuw9P41GAC3rod4X04jjWGM1JPEv/GWSqFTWLsdyMSBMBMlm9Hk3GLBgLBbdBNY8yee0pQh2RBVESQ==",
"funding": [
{
"type": "github",
@@ -382,8 +385,8 @@
],
"license": "MIT",
"dependencies": {
- "path-expression-matcher": "^1.5.0",
- "xml-naming": "^0.1.0"
+ "path-expression-matcher": "^1.6.2",
+ "xml-naming": "^0.3.0"
}
},
"node_modules/fast-xml-parser": {
@@ -409,21 +412,6 @@
"fxparser": "src/cli/cli.js"
}
},
- "node_modules/fast-xml-parser/node_modules/xml-naming": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.3.0.tgz",
- "integrity": "sha512-ghig2TBE/H11aOVgmahA3MhimvkBr6JIYknH/Dhdk10nXwdbIqBJsbfMxpvFPG8bAw77gN29aQWvKpmVoPlvPQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/NaturalIntelligence"
- }
- ],
- "license": "MIT",
- "engines": {
- "node": ">=16.0.0"
- }
- },
"node_modules/foreach": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.6.tgz",
@@ -495,9 +483,9 @@
"license": "MIT"
},
"node_modules/js-yaml": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz",
- "integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==",
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.1.tgz",
+ "integrity": "sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==",
"funding": [
{
"type": "github",
@@ -856,9 +844,9 @@
}
},
"node_modules/react": {
- "version": "19.2.7",
- "resolved": "https://registry.npmjs.org/react/-/react-19.2.7.tgz",
- "integrity": "sha512-HNe9WslTbXmFK8o8cmwgAeJFSBvt1bPdHCVKtaaV+WlAN36mpT4hcRpwbf3fY56ar2oIXzsBpOAiIRHAdY0OlQ==",
+ "version": "19.2.8",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.8.tgz",
+ "integrity": "sha512-PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==",
"license": "MIT",
"peer": true,
"engines": {
@@ -866,16 +854,16 @@
}
},
"node_modules/react-dom": {
- "version": "19.2.7",
- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.7.tgz",
- "integrity": "sha512-t0BRVXvbiE/o20Hfw669rLbMCDWtYZLvmJigy2f0MxsXF+71pxhR3xOkspmsO8h3ZlNzyibAmtCa3l4lYKk6gQ==",
+ "version": "19.2.8",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.8.tgz",
+ "integrity": "sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==",
"license": "MIT",
"peer": true,
"dependencies": {
"scheduler": "^0.27.0"
},
"peerDependencies": {
- "react": "^19.2.7"
+ "react": "^19.2.8"
}
},
"node_modules/react-is": {
@@ -1081,9 +1069,9 @@
}
},
"node_modules/styled-components": {
- "version": "6.4.2",
- "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-6.4.2.tgz",
- "integrity": "sha512-xZBhBJsMtGqb+aKcwKgaT+BtuFums9VynX2JRvXJGTx5UfZzN12rk5r4nVdhXYvRw+hE7yiYxVrOqJZaK2+Txg==",
+ "version": "6.5.1",
+ "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-6.5.1.tgz",
+ "integrity": "sha512-6AsQEXcG7QhtdzjwJ4s5Amx5R9veYH9AP3+U6nF2BAMU0i1iM3cAXKJXuAKZCdv3Y2ntVMcL44cPx4cIDxgYFg==",
"license": "MIT",
"peer": true,
"dependencies": {
@@ -1221,9 +1209,9 @@
}
},
"node_modules/xml-naming": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.1.0.tgz",
- "integrity": "sha512-k8KO9hrMyNk6tUWqUfkTEZbezRRpONVOzUTnc97VnCvyj6Tf9lyUR9EDAIeiVLv56jsMcoXEwjW8Kv5yPY52lw==",
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.3.0.tgz",
+ "integrity": "sha512-ghig2TBE/H11aOVgmahA3MhimvkBr6JIYknH/Dhdk10nXwdbIqBJsbfMxpvFPG8bAw77gN29aQWvKpmVoPlvPQ==",
"funding": [
{
"type": "github",
diff --git a/framework/rest-api/package.json b/framework/rest-api/package.json
index 5a45b8eaef..26894a979b 100644
--- a/framework/rest-api/package.json
+++ b/framework/rest-api/package.json
@@ -8,9 +8,9 @@
"redoc": "2.5.3"
},
"overrides": {
- "js-yaml": "4.3.0",
+ "js-yaml": "4.3.1",
"minimatch": "10.2.5",
- "brace-expansion": "5.0.8",
+ "brace-expansion": "5.0.9",
"fast-xml-parser": "5.10.1",
"dompurify": "3.4.12"
}
(ofbiz-framework) 02/02: Fixed: Update OpenApiUtil to resolve compilation warnings
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jacopoc pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
commit dbdedcc6f342f4acd7d5a3b1eb9660f6f70eb6e3
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Sun Aug 9 11:19:26 2026 +0200
Fixed: Update OpenApiUtil to resolve compilation warnings
---
.../main/java/org/apache/ofbiz/ws/rs/util/OpenApiUtil.java | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/framework/rest-api/src/main/java/org/apache/ofbiz/ws/rs/util/OpenApiUtil.java b/framework/rest-api/src/main/java/org/apache/ofbiz/ws/rs/util/OpenApiUtil.java
index da9588f134..4a3897d0aa 100644
--- a/framework/rest-api/src/main/java/org/apache/ofbiz/ws/rs/util/OpenApiUtil.java
+++ b/framework/rest-api/src/main/java/org/apache/ofbiz/ws/rs/util/OpenApiUtil.java
@@ -476,7 +476,7 @@ public final class OpenApiUtil {
continue;
}
try {
- schema = (Schema<?>) schemaClass.newInstance();
+ schema = (Schema<?>) schemaClass.getDeclaredConstructor().newInstance();
if (schema instanceof ArraySchema) {
ParameterizedType genericType = (ParameterizedType) field.getGenericType();
Class<? extends Type> genericClass = (Class<? extends Type>) genericType.getActualTypeArguments()[0];
@@ -486,19 +486,20 @@ public final class OpenApiUtil {
if (listSchemaClass == null || isTypeDomainModel(genericClass.getName())) {
arrSch.setItems(getSchemaForModel(genericClass.getName()));
} else {
- listSchema = (Schema<?>) listSchemaClass.newInstance();
+ listSchema = (Schema<?>) listSchemaClass.getDeclaredConstructor().newInstance();
arrSch.setItems(listSchema);
}
- dataSchema.addProperties(fieldNm, arrSch);
+ dataSchema.addProperty(fieldNm, arrSch);
} else if (schema instanceof MapSchema) {
if (isTypeDomainModel(fieldType.getName())) {
schema = getSchemaForModel(fieldType.getName());
- dataSchema.addProperties(fieldNm, schema);
+ dataSchema.addProperty(fieldNm, schema);
}
} else {
- dataSchema.addProperties(fieldNm, schema.description(fieldNm));
+ dataSchema.addProperty(fieldNm, schema.description(fieldNm));
}
- } catch (InstantiationException | IllegalAccessException e) {
+ } catch (InstantiationException | IllegalAccessException | NoSuchMethodException
+ | InvocationTargetException e) {
e.printStackTrace();
}
}