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 () 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.