spacer.gif (File Not Found) using ASSET_REAL_PATH #1992

Open
mabouza opened this Issue Feb 3, 2013 · 0 comments

Comments

Projects
None yet
1 participant

mabouza commented Feb 3, 2013

Submitted on the mailing list

I'm getting file not found for spacer.gif in my logs when attempting to get thumbnails.

I'm not sure how this would ever work if I set my ASSET_REAL_PATH outside of my DotCMS directory ...

ThumbnailImage.java
String path = fileAPI.getRealAssetsRootPath() + java.io.File.separator + ".." + java.io.File.separator + "html" + java.io.File.separator + "js" + java.io.File.separator + "editor" + java.io.File.separator + "images" + java.io.File.separator + "spacer.gif";
java.io.File f = new java.io.File(path);

This code logic is implying that my assets directory is relative to my dotCMS/html directory which is isn't if I've specified ASSET_REAL_PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment