You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mb...@apache.org on 2020/02/11 20:52:07 UTC

[ofbiz-framework] branch release17.12 updated: Revert "Multi Part Input Parameters not Available in Groovy Event (OFBIZ-5048)"

This is an automated email from the ASF dual-hosted git repository.

mbrohl pushed a commit to branch release17.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release17.12 by this push:
     new ec3dd18  Revert "Multi Part Input Parameters not Available in Groovy Event (OFBIZ-5048)"
ec3dd18 is described below

commit ec3dd184d900b18394adfd739073f5dbf0833bad
Author: Michael Brohl <mb...@apache.org>
AuthorDate: Tue Feb 11 21:50:21 2020 +0100

    Revert "Multi Part Input Parameters not Available in Groovy Event (OFBIZ-5048)"
    
    This reverts commit 832217135a4f1e6cffef2ef15d115f43613166bc.
---
 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 9156bcd..97c5a0f 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
@@ -275,7 +275,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());