portals-portalapps-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woonsan Ko (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (APA-38) The default content rewriter of reverse proxy service does not rewrite stylesheet imports
Date Fri, 16 Sep 2011 17:02:09 GMT

     [ https://issues.apache.org/jira/browse/APA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Woonsan Ko resolved APA-38.
---------------------------

    Resolution: Fixed

Fixed and verified with unit/integration tests.

> The default content rewriter of reverse proxy service does not rewrite stylesheet imports
> -----------------------------------------------------------------------------------------
>
>                 Key: APA-38
>                 URL: https://issues.apache.org/jira/browse/APA-38
>             Project: Portals Apps
>          Issue Type: Bug
>    Affects Versions: apa-webcontent-1.1
>            Reporter: Woonsan Ko
>            Assignee: Woonsan Ko
>            Priority: Minor
>             Fix For: apa-webcontent-1.2
>
>
> If a stylesheets is imported using the following syntax
>        import url('/x/y/z/style.css');
> the url will not be rewritten to /<contextRoot>/rproxy/<pass_route>/x/y/z/style.css
> -----
> It would be good if the default content rewriter (DefaultReverseProxyLinkRewritingParserAaptor)
cares the following patterns as well:
> Pattern IMPORT_URL_PATTERN = Pattern.compile("(\\s|^)(url)\\s*\\(\\s*(['\"])((\\/)[^'\"]*)['\"]\\)",
Pattern.CASE_INSENSITIVE);
> // ...
> String remoteURLReplaces = createLocalPathMatchingReplaces(getHttpReverseProxyPathMapper());
> line2 = m.replaceAll("$1$2 ($3" + remoteURLReplaces + "$4$3)");

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message