ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michel Schroeder <michels...@gmail.com>
Subject BIGFISH: importing "http:..." image locations
Date Mon, 24 Sep 2012 13:45:07 GMT

I am referring to the "BF Admin Module Product Loader" doc, page 4:

"URL Locations: any image reference in the input file that begins with
“http” will use the
full URL reference as the file location. For example:
SMALL_IMAGE_URL = http://www.myimages.com/products/some-image.jpg
This indicates that the complete reference, without modification or appends,
should be
used as the file locator."

If I understand correctly, the file: 
/bf/hot-deploy/osafeadmin/src/com/osafe/services/ImportServices.java, around
lines 4243 and following seams to benefit from a correction like that:

            	String defaultImageDirectory =
            	if(UtilValidate.isNotEmpty(defaultImageDirectory)) {
            		if (contentValue.indexOf("http") != 0) {
	                contentValue = defaultImageDirectory + contentValue;
Without that correction the default directory path is inserted before the
url... Maybe I am missing some points?

Anyway, thanks and congratulation for Bigfish!


View this message in context: http://ofbiz.135035.n4.nabble.com/BIGFISH-importing-http-image-locations-tp4636448.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

View raw message