[ https://issues.apache.org/jira/browse/ADFFACES-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481311 ]
Jeanne Waldman commented on ADFFACES-408: ----------------------------------------- Here's my log comment: ADFFACES-408 encode urls that are in the generated css file I refactored SkinStyleSheetParserUtils.java so that the url is in one spot in the code and I can easily call encodeResourceURL on it. I changed the base-desktop.xss urls to not start with ../.. They should start with '/' if they want to be context relative. I added code to the PropertyNodeParser.java to encodeResourceURLs for urls found in xss files. > encode urls that are in the generated css file > ---------------------------------------------- > > Key: ADFFACES-408 > URL: https://issues.apache.org/jira/browse/ADFFACES-408 > Project: MyFaces ADF-Faces > Issue Type: Bug > Components: Skinning > Reporter: Jeanne Waldman > Assigned To: Jeanne Waldman > > The css file that gets generated from the skinning css file may contain urls, > like background-image: url("/skins/purple/error.png"); > We need to run these through the encodeResourceURL method. > The use case I have is when a portlet is running in an iframe inside a portal > and we want to the portlet's urls to point to the portal's server: > ==> Portal's CSS /WebCenter-ViewController-context-root/afr/sort_asc_n.png > ==> Portlet's CSS /adf-richclient-demo/afr/sort_asc_n.png > The second URL points to nowhere as such app is not in the portal's (parent) > application server. > If we encode the urls that we write out to the generated css file, this > problem should be fixed. I am about to test it out. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.