Hello,

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 =
(String)imageLocationMap.get("DEFAULT_IMAGE_DIRECTORY");
                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!

Michel




--
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.

Reply via email to