Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
mabouza opened this Issue · 0 comments

1 participant

@mabouza

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
Something went wrong with that request. Please try again.