Sprite images folder needs to be configurable
Description
Attachments
is related to
Activity

ginson.renSeptember 4, 2012 at 12:40 AM

Igor SpasicAugust 24, 2012 at 6:55 AMEdited
Anyhow, I made a fix that does not required any modification to server.xml. All you have to do is to enable sprite.root.dir. When enabled, sprite images folder will be not empty.
So the whole testing steps are 1-3.

Igor SpasicAugust 24, 2012 at 4:19 AM
The test should be different: sprites images folder should only contain sprites, and not other theme files.
create a folder c:/sprite
add sprite.root.dir=c:/sprite to portal-ext.properties
start the portal
icons are missing (delete browser cache)
shut down the server
add following lines to: liferay/bundles/tomcat-7.0.27/conf/server.xml:
(see attached file as an example)
restart the server and clear browser cache
Icons should be visible now, and sprite images folder should be not empty.

ginson.renDecember 8, 2011 at 2:36 AM
FAILED Manual Testing using the following steps:
1. Create a folder D:/sprite;
2. Add "sprite.root.dir= D:/sprite" to portal-ext.properties;
3. Start the portal;
After I clear the cache of browser, the icons were missing.
4. Shut down the server;
5. Add
"<Context path="/html/icons" docBase=" D:/sprite/html/icons" />
<Context path="/html/themes/classic" docBase=" D:/sprite/html/themes/classic" />
<Context path="/html/themes/control_panel" docBase=" D:/sprite/html/themes/control_panel" />"
to D:\testingwork\new-trunk\apache-tomcat-7.0.23\conf\server.xml;
6. Copy everything from
LIFERAY-HOME\apache-tomcat-7.0.23\webapps\ROOT\html\icons to D:/sprite/html/icons and
LIFERAY-HOME\apache-tomcat-7.0.23\apache-tomcat-7.0.23\webapps\ROOT\html\themes\classic to D:/sprite/html/themes/classic
LIFERAY-HOME\apache-tomcat-7.0.23\apache-tomcat-7.0.23\webapps\ROOT\html\themes\control_panel to D:/sprite/html/themes/control_panel
7. Restart the server and clear the cache.
Reproduced on:
Tomcat 7.0.19 + MySQL 5. 6.1.x Revision: 86200.
There is nothing in D:/sprite.
Failed on:
Tomcat 7.0.23 + MySQL 5. 6.1.x Revision: 95060.
I also cannot see any icons.
Details
Assignee
ginson.renginson.ren(Deactivated)Reporter
daniel.kocsis@liferay.comdaniel.kocsis@liferay.com(Deactivated)Branch Version/s
6.1.xBackported to Branch
CommittedFix Priority
3Git Pull Request
Components
Affects versions
Priority
Medium
Details
Details
Assignee

Reporter

Branch Version/s
Backported to Branch
Fix Priority
Git Pull Request
Components
Affects versions
Priority
Zendesk Support
Linked Tickets
Zendesk Support
Linked Tickets
Zendesk Support

PASSED Manual Testing following the steps in the comment of Igor.
Fixed on:
Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 14d8add6237bc38a42e06d41b4797945405596bf.
Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: aba3f72fdf43645b428ae8ebc2157873a5492d2d.
Sprite images folder should be not empty.