You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2025/09/24 07:33:05 UTC
(ofbiz-framework) 01/04: Improved: improves ImageManagementServices code (OFBIZ-13292)
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
commit e1d30e8f5508fa86f656327ec5d06aeee22e5aaf
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Fri Sep 19 09:22:32 2025 +0200
Improved: improves ImageManagementServices code (OFBIZ-13292)
It's about better code and information in log when uploading several images.
---
.../apache/ofbiz/product/imagemanagement/ImageManagementServices.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/applications/product/src/main/java/org/apache/ofbiz/product/imagemanagement/ImageManagementServices.java b/applications/product/src/main/java/org/apache/ofbiz/product/imagemanagement/ImageManagementServices.java
index a3f44bf3ed..b2d0f98504 100644
--- a/applications/product/src/main/java/org/apache/ofbiz/product/imagemanagement/ImageManagementServices.java
+++ b/applications/product/src/main/java/org/apache/ofbiz/product/imagemanagement/ImageManagementServices.java
@@ -87,6 +87,7 @@ public class ImageManagementServices {
Locale locale = (Locale) context.get("locale");
if (UtilValidate.isNotEmpty(uploadFileName)) {
+ Debug.logInfo("================== This is about file: " + uploadFileName +" ==================", MODULE);
String imageServerPath = FlexibleStringExpander.expandString(EntityUtilProperties.getPropertyValue("catalog",
"image.management.path", delegator), context);
String imageServerUrl = FlexibleStringExpander.expandString(EntityUtilProperties.getPropertyValue("catalog",
@@ -182,7 +183,7 @@ public class ImageManagementServices {
}
}
// Scale Image in different sizes
- if (UtilValidate.isNotEmpty(imageResize)) {
+ else {
fileToCheck = imageServerPath + "/" + productId + "/" + imageName;
File fileOriginal = new File(fileToCheck);
fileOriginal = checkExistsImage(fileOriginal);