Author: adrianc
Date: Tue Sep 23 15:04:12 2008
New Revision: 698373
URL:
http://svn.apache.org/viewvc?rev=698373&view=revLog:
Fixed a bug in the ContentManagementServices.java file - reported in
https://issues.apache.org/jira/browse/OFBIZ-1575.
I commented out the problem code in case anyone finds an issue with the change. It shouldn't be a problem though - all other content types do nothing if the content is empty, so we should be able to do the same with binary data.
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementServices.java
Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementServices.java?rev=698373&r1=698372&r2=698373&view=diff==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementServices.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementServices.java Tue Sep 23 15:04:12 2008
@@ -737,8 +737,8 @@
if (UtilValidate.isNotEmpty(errorMsg)) {
return ServiceUtil.returnError(errorMsg);
}
- } else {
- return ServiceUtil.returnError("'byteBuffer' empty when trying to create database image.");
+// } else {
+// return ServiceUtil.returnError("'byteBuffer' empty when trying to create database image.");
}
} else if (dataResourceTypeId.equals("SHORT_TEXT")) {
} else if (dataResourceTypeId.startsWith("SURVEY")) {