[
https://issues.apache.org/jira/browse/WICKET-6669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16846662#comment-16846662
]
ASF subversion and git services commented on WICKET-6669:
---------------------------------------------------------
Commit e2a11151e2bc55ae3a637efd88b1202582461780 in wicket's branch
refs/heads/wicket-8.x from Martin Tzvetanov Grigorov
[ https://gitbox.apache.org/repos/asf?p=wicket.git;h=e2a1115 ]
WICKET-6669 Use the scope and name of the first provided resource for
IScopeAwareTextResourceProcessor#process()
The same is already done in ConcatBundleResource#getCacheKey()
(cherry picked from commit 8566ed24031641c060871cb0732b7171fd2deac8)
> CSS Resource Bundling throws exception when used with CssUrlReplacer
> --------------------------------------------------------------------
>
> Key: WICKET-6669
> URL: https://issues.apache.org/jira/browse/WICKET-6669
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 7.10.0
> Reporter: Claudia Hirt
> Assignee: Martin Grigorov
> Priority: Major
>
> Using CssUrlReplacer as compressor and trying to create a Css Resource bundle
> like this:
> {code:java}
> getResourceSettings().setCssCompressor(new CssUrlReplacer());
> getResourceBundles().addCssBundle(WicketApplication.class, "testBundle", new
> CssResourceReference(WicketApplication.class, "css/cssFile1.css"), new
> CssResourceReference(WicketApplication.class, "css/cssFile2.css"));{code}
> I get the following stack trace when requesting one of the css files:
> Caused by: java.lang.UnsupportedOperationException: CssUrlReplacer.process()
> should be used instead!
> at
> org.apache.wicket.resource.CssUrlReplacer.compress(CssUrlReplacer.java:159)
> ~[wicket-core-7.10.0.jar:7.10.0]
> at
> org.apache.wicket.resource.bundles.ConcatBundleResource.readAllResources(ConcatBundleResource.java:184)
> ~[wicket-core-7.10.0.jar:7.10.0]
> ....
> ConcatBundleResource calls the compress method of CssUrlReplacer which throws
> the exception.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)