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] [Updated] (APA-38) The default content rewriter of reverse proxy service does not rewrite stylesheet imports
Date Wed, 14 Sep 2011 19:08:09 GMT

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

Woonsan Ko updated APA-38:
--------------------------

    Priority: Minor  (was: Major)

> 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