Page 1 of 1

New images uploaded from admin are not getting displayed

Posted: Wed Apr 16, 2014 3:02 pm
by ramesh_gpre
Hi,

I have installed the demo site with 3.1.1 GA version and tried to upload a new asset for a product in Admin under Media Assets menu as well as from adding a new product menu. The below is my configuration for media assets:

asset.use.filesystem.storage=true
asset.server.url.prefix=http://localhost:8080/cmsstatic
asset.server.file.system.path=D:/GitHub/DemoSite/assets

When I upload an image, the image is getting copied properly at D:\GitHub\DemoSite\assets\90\b3\asset1.png but image doesn't get displayed like the existing products in product list (Please refer the screenshots). Also this newly added product doesn't get displayed on the demo site.

Can some one please help?

Best Regards,
Ramesh

Re: New images uploaded from admin are not getting displayed

Posted: Tue Apr 22, 2014 12:00 pm
by phillipuniverse
What is the URL that it is trying to load here? And what is the 500 error for loading that URL?

Re: New images uploaded from admin are not getting displayed

Posted: Wed Apr 23, 2014 1:33 pm
by ramesh_gpre
Hi Philip,

The url for the image is: http://localhost:8081/admin/cmsstatic/p ... esign9.png. I see below exception while opening this link:
java.lang.RuntimeException: java.io.FileNotFoundException: D:\GitHub\DemoSite\assets\49\9a\product\Design9.png (The system cannot find the path specified)
at org.broadleafcommerce.cms.web.file.StaticAssetViewController.handleRequestInternal(StaticAssetViewController.java:94)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)

When I see my file system, the image file was actually copied to D:\GitHub\DemoSite\assets\eb\19\Design9.png. It seems the copying is happening at one place and while accessing it, it's looking at a different path (randomly generated folder structure).


Best Regards,
Ramesh

Re: New images uploaded from admin are not getting displayed

Posted: Wed Apr 30, 2014 1:43 pm
by ramesh_gpre
Can some one help on this please?

Re: New images uploaded from admin are not getting displayed

Posted: Thu May 01, 2014 2:09 am
by phillipuniverse
Hey ramesh, sorry for the problems you are having. I have fixed all of the Windows path issues in the 3.1.2-GA release of Broadleaf: http://www.broadleafcommerce.com/blog/b ... ga-release. Please update to that version of Broadleaf and let us know if your problem persists.

Re: New images uploaded from admin are not getting displayed

Posted: Thu May 01, 2014 4:52 am
by ramesh_gpre
Hi Philip,

I confirm that it works now with 3.1.2 release :). Thank you very much for the help.

Best Regards,
Ramesh