svn commit: r578303 - /ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r578303 - /ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java

jleroux@apache.org
Author: jleroux
Date: Fri Sep 21 15:35:53 2007
New Revision: 578303

URL: http://svn.apache.org/viewvc?rev=578303&view=rev
Log:
Applied fix from trunk for revision: 574698

Modified:
    ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java

Modified: ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java?rev=578303&r1=578302&r2=578303&view=diff
==============================================================================
--- ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java (original)
+++ ofbiz/branches/release4.0/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java Fri Sep 21 15:35:53 2007
@@ -151,9 +151,11 @@
                     FileItem item = (FileItem) i.next();
                     String fieldName = item.getFieldName();
                     //byte[] itemBytes = item.get();
-
-                    //Debug.log("Item Info : " + item.getName() + " / " + item.getSize() + " / " + item.getContentType(), module);
-                    if (item.isFormField() || item.getSize() == 0) {
+                    /*
+                    Debug.log("Item Info [" + fieldName + "] : " + item.getName() + " / " + item.getSize() + " / " +
+                            item.getContentType() + " FF: " + item.isFormField(), module);
+                    */
+                    if (item.isFormField() || item.getName() == null) {
                         if (multiPartMap.containsKey(fieldName)) {
                             Object mapValue = multiPartMap.get(fieldName);
                             if (mapValue instanceof List) {