You are viewing a plain text version of this content. The canonical link for it is here.
Posted to portalapps-dev@portals.apache.org by "Woonsan Ko (JIRA)" <ji...@apache.org> on 2010/04/20 12:59:51 UTC
[jira] Updated: (APA-38) The default content rewriter of reverse
proxy service does not rewrite stylesheet imports
[ https://issues.apache.org/jira/browse/APA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Woonsan Ko updated APA-38:
--------------------------
Description:
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)");
was:
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 () 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)");
> 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
> 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.
-
You can reply to this email to add a comment to the issue online.