This is an automated email from the ASF dual-hosted git repository.
mbrohl pushed a commit to branch trunk
in repository
https://gitbox.apache.org/repos/asf/ofbiz-framework.gitThe following commit(s) were added to refs/heads/trunk by this push:
new 3788f67 Revert "Multi Part Input Parameters not Available in Groovy Event (OFBIZ-5048)"
3788f67 is described below
commit 3788f6766a01eb476c15d32e6b9d9127061d12f4
Author: Michael Brohl <
[hidden email]>
AuthorDate: Tue Feb 11 21:49:15 2020 +0100
Revert "Multi Part Input Parameters not Available in Groovy Event (OFBIZ-5048)"
This reverts commit 8af3e9ce6b4c8d003f760e60c17dfa371745b4fd.
---
framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java
index c32bce5..ad0f3ac 100644
--- a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java
+++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java
@@ -272,7 +272,7 @@ public final class UtilHttp {
fileName = fileName.substring(lastIndex + 1);
}
}
- multiPartMap.put(fieldName, item);
+ multiPartMap.put(fieldName, ByteBuffer.wrap(item.get()));
multiPartMap.put("_" + fieldName + "_size", item.getSize());
multiPartMap.put("_" + fieldName + "_fileName", fileName);
multiPartMap.put("_" + fieldName + "_contentType", item.getContentType());