diff --git a/applications/product/config/ProductUiLabels.xml b/applications/product/config/ProductUiLabels.xml index 421353b543..77cc452f6d 100644 --- a/applications/product/config/ProductUiLabels.xml +++ b/applications/product/config/ProductUiLabels.xml @@ -20105,6 +20105,9 @@ 输入、操作符和数值 輸入、運算子作和數值 + + Requested quantity [${xferQty}] could not be transferred because [${unavailableQuantity}] units of inventory is unavailable. + Operator Operator diff --git a/applications/product/minilang/product/inventory/InventoryServices.xml b/applications/product/minilang/product/inventory/InventoryServices.xml index 64a01d53fc..ee469e893a 100644 --- a/applications/product/minilang/product/inventory/InventoryServices.xml +++ b/applications/product/minilang/product/inventory/InventoryServices.xml @@ -1115,13 +1115,7 @@ under the License. - - - - - - @@ -1142,10 +1136,7 @@ under the License. - - - - + diff --git a/framework/common/config/general.properties b/framework/common/config/general.properties index fcc8b3a454..38a3b03163 100644 --- a/framework/common/config/general.properties +++ b/framework/common/config/general.properties @@ -113,18 +113,18 @@ mail.debug.on=N # to any recipients valid or not mail.smtp.sendpartial=true +# -- spam header name and value to block incoming spam detected by external spam checker, configured for spam assin +mail.spam.name=X-Spam-Flag +mail.spam.value=YES + # -- HTTP upload settings -# -- directory used to temporarily store files that are larger than the configured size threshold (10K) -http.upload.max.sizethreshold=10240 +# -- Size threshold (almost 1MB) +http.upload.max.sizethreshold=1024000 # -- directory used to temporarily store files that are larger than the configured size threshold http.upload.tmprepository=runtime/tmp # -- max size in bytes (-1 for unlimited) http.upload.max.size=-1 -# -- spam header name and value to block incoming spam detected by external spam checker, configured for spam assin -mail.spam.name=X-Spam-Flag -mail.spam.value=YES - # -- HTTP JSON settings http.json.xssi.prefix=// diff --git a/framework/security/src/main/java/org/apache/ofbiz/security/CsrfUtil.java b/framework/security/src/main/java/org/apache/ofbiz/security/CsrfUtil.java index 5309ac213c..06be440865 100644 --- a/framework/security/src/main/java/org/apache/ofbiz/security/CsrfUtil.java +++ b/framework/security/src/main/java/org/apache/ofbiz/security/CsrfUtil.java @@ -199,7 +199,9 @@ public final class CsrfUtil { requestMap = findRequestMap(requestMapMap, pathOrRequestUri); } if (requestMap == null) { - Debug.logError("Cannot find the corresponding request map for path: " + pathOrRequestUri, MODULE); + if (!"org.apache.ofbiz.security.NoCsrfDefenseStrategy".equals(getStrategy().toString())) { + Debug.logWarning("Cannot find the corresponding request map for path: " + pathOrRequestUri, MODULE); + } } String tokenValue = ""; if (requestMap != null && requestMap.securityCsrfToken) { diff --git a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/GroovyEventHandler.java b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/GroovyEventHandler.java index a502a03d65..addf4ab334 100644 --- a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/GroovyEventHandler.java +++ b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/GroovyEventHandler.java @@ -77,7 +77,8 @@ public class GroovyEventHandler implements EventHandler { public String invoke(Event event, RequestMap requestMap, HttpServletRequest request, HttpServletResponse response) throws EventHandlerException { boolean beganTransaction = false; try { - beganTransaction = TransactionUtil.begin(); + int timeout = Integer.max(event.transactionTimeout, 0); + beganTransaction = TransactionUtil.begin(timeout); Map context = new HashMap<>(); context.put("request", request); diff --git a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/SimpleEventHandler.java b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/SimpleEventHandler.java index 46e33121f1..3175b1ecea 100644 --- a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/SimpleEventHandler.java +++ b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/SimpleEventHandler.java @@ -66,7 +66,8 @@ public class SimpleEventHandler implements EventHandler { if (Debug.verboseOn()) Debug.logVerbose("[Processing]: SIMPLE Event", MODULE); try { - beganTransaction = TransactionUtil.begin(); + int timeout = Integer.max(event.transactionTimeout, 0); + beganTransaction = TransactionUtil.begin(timeout); String eventReturn = SimpleMethod.runSimpleEvent(xmlResource, eventName, request, response); if (Debug.verboseOn()) Debug.logVerbose("[Event Return]: " + eventReturn, MODULE); return eventReturn;