wro4j: cssImport processor translates urls incorrectly

I've been using v1.4.8.1 and now tried v1.6.2.

And noticed cssImport misbehaves now.

I have the following setup:
preProcessors=cssVariables,cssUrlRewriting,cssImport,cssMinJawr,semicolonAppende
r,consoleStripper
postProcessors=jsMin

and page:
/<context>/pages/index.jsp
in which I importing:

assets/stylesheets/application.css:
@import url("page.css");
@import url("menu.css");

page.css and menu.css are also under assets/stylesheets/

In v1.4.8.1 those imported files were included correctly and with v1.6.2 
application.css is returned empty and in log I see that the imported page and 
menu css were failed to resolve.

Here is excerpt of the logs for 1.4.8.1:


10:47:14,410 DEBUG MinimizeAwareProcessorDecorator:61 - Using Processor: 
ro.isdc.wro.model.resource.processor.impl.css.CssImportPreProcessor@7957f145
10:47:14,411 DEBUG CssImportPreProcessor:76 - Applying CssImportPreProcessor 
processor
10:47:14,417 DEBUG ServletContextUriLocator:130 - locate resource: 
/assets/stylesheets/application.css
10:47:14,418 DEBUG DispatcherStreamLocator:70 - dispatching request to 
location: /assets/stylesheets/application.css
10:47:14,419 DEBUG PreProcessorExecutor:79 - process and merge resources: 
[ro.isdc.wro.model.resource.Resource@6ef63b1e[CSS,/assets/stylesheets/page.css,t
rue], 
ro.isdc.wro.model.resource.Resource@67a3677b[CSS,/assets/stylesheets/menu.css,tr
ue]]
10:47:14,420 DEBUG PreProcessorExecutor:85 -    merging resource: 
ro.isdc.wro.model.resource.Resource@6ef63b1e[CSS,/assets/stylesheets/page.css,tr
ue]
10:47:14,420 DEBUG AbstractConfigurableMultipleStrategy:73 - configured 
aliases: cssVariables,cssUrlRewriting,cssImport,semicolonAppender
10:47:14,421 DEBUG AbstractConfigurableMultipleStrategy:61 - using strategies: 
[ro.isdc.wro.model.resource.processor.impl.css.CssVariablesProcessor@34148067, 
ro.isdc.wro.model.resource.processor.impl.css.CssUrlRewritingProcessor@2dfa04e7,
 ro.isdc.wro.model.resource.processor.impl.css.CssImportPreProcessor@7957f145, 
ro.isdc.wro.model.resource.processor.impl.js.SemicolonAppenderPreProcessor@7ca12
73f]
10:47:14,421 DEBUG PreProcessorExecutor:169 - applying preProcessors: 
[ro.isdc.wro.model.resource.processor.impl.css.CssVariablesProcessor@34148067, 
ro.isdc.wro.model.resource.processor.impl.css.CssUrlRewritingProcessor@2dfa04e7,
 ro.isdc.wro.model.resource.processor.impl.css.CssImportPreProcessor@7957f145]
10:47:14,422 DEBUG ServletContextUriLocator:130 - locate resource: 
/assets/stylesheets/page.css
10:47:14,422 DEBUG DispatcherStreamLocator:70 - dispatching request to 
location: /assets/stylesheets/page.css
10:47:14,423 DEBUG MinimizeAwareProcessorDecorator:61 - Using Processor: 
ro.isdc.wro.model.resource.processor.impl.css.CssVariablesProcessor@34148067
10:47:14,424 DEBUG MinimizeAwareProcessorDecorator:61 - Using Processor: 
ro.isdc.wro.model.resource.processor.impl.css.CssUrlRewritingProcessor@2dfa04e7
10:47:14,425 DEBUG AbstractCssUrlRewritingProcessor:128 - Applying 
CssUrlRewritingProcessor processor
10:47:14,425 DEBUG AbstractCssUrlRewritingProcessor:131 - cssUri: 
/assets/stylesheets/page.css



and in v1.6.2:

10:34:15,491 DEBUG ServletContextUriLocator:195 - retrieving servletContext 
stream for uri: /../assets/stylesheets/page.css
10:34:15,491 DEBUG ServletContextUriLocator:226 - [FAIL] reading resource from 
/../assets/stylesheets/page.css
10:34:15,492 DEBUG ServletContextUriLocator:175 - Wrong or empty resource with 
location: /../assets/stylesheets/page.css
10:34:15,492 DEBUG PreProcessorExecutor:193 - Invalid resource found: 
ro.isdc.wro.model.resource.Resource@97de276[CSS,/../assets/stylesheets/page.css,
true]
10:34:15,493 DEBUG PreProcessorExecutor:104 -   merging resource: 
ro.isdc.wro.model.resource.Resource@279eb5d8[CSS,/../assets/stylesheets/menu.css
,true]
10:34:15,493 DEBUG AbstractConfigurableMultipleStrategy:73 - configured 
aliases: cssVariables,cssUrlRewriting,cssImport,semicolonAppender
10:34:15,493 DEBUG AbstractConfigurableMultipleStrategy:61 - using strategies: 
[ro.isdc.wro.model.resource.processor.impl.css.CssVariablesProcessor@66cf439b, 
ro.isdc.wro.model.resource.processor.impl.css.CssUrlRewritingProcessor@315fa9d8,
 ro.isdc.wro.model.resource.processor.impl.css.CssImportPreProcessor@28986c3f, 
ro.isdc.wro.model.resource.processor.impl.js.SemicolonAppenderPreProcessor@32052
c5d]
10:34:15,494 DEBUG PreProcessorExecutor:187 - applying preProcessors: 
[ro.isdc.wro.model.resource.processor.impl.css.CssVariablesProcessor@66cf439b, 
ro.isdc.wro.model.resource.processor.impl.css.CssUrlRewritingProcessor@315fa9d8,
 ro.isdc.wro.model.resource.processor.impl.css.CssImportPreProcessor@28986c3f, 
ro.isdc.wro.model.resource.processor.impl.js.SemicolonAppenderPreProcessor@32052
c5d]
10:34:15,493 DEBUG AbstractDigesterHashStrategy:46 - SHA1HashStrategy hash: 
1d04a2bcd3e11eb414994ae5bfcc04116b48eb85
10:34:15,494 DEBUG DefaultSynchronizedCacheStrategyDecorator:122 - computed 
entry: hash: 1d04a2bcd3e11eb414994ae5bfcc04116b48eb85
10:34:15,494 DEBUG ServletContextUriLocator:133 - locate resource: 
/../assets/stylesheets/menu.css
10:34:15,495 DEBUG CacheValue:45 - Gzipping the content....
10:34:15,496 DEBUG ServletContextUriLocator:195 - retrieving servletContext 
stream for uri: /../assets/stylesheets/menu.css
10:34:15,497 DEBUG ServletContextUriLocator:226 - [FAIL] reading resource from 
/../assets/stylesheets/menu.css
10:34:15,497 DEBUG ServletContextUriLocator:175 - Wrong or empty resource with 
location: /../assets/stylesheets/menu.css
10:34:15,497 DEBUG PreProcessorExecutor:193 - Invalid resource found: 
ro.isdc.wro.model.resource.Resource@279eb5d8[CSS,/../assets/stylesheets/menu.css
,true]
10:34:15,498 DEBUG CssImportPreProcessor:53 - Imported resources found : 2
10:34:15,498 DEBUG CssImportPreProcessor:56 - importsCollector: 
[ro.isdc.wro.model.resource.Resource@97de276[CSS,/../assets/stylesheets/page.css
,true], 
ro.isdc.wro.model.resource.Resource@279eb5d8[CSS,/../assets/stylesheets/menu.css
,true]]
10:34:15,499 DEBUG ProcessorDecorator:89 - Skipping processor: 
ro.isdc.wro.model.resource.processor.impl.js.SemicolonAppenderPreProcessor@2eeab
0eb
10:34:15,499 DEBUG PreProcessorExecutor:226 - StopWatch '': running time 
(millis) = 172

Original issue reported on code.google.com by lystoc...@gmail.com on 11 Jan 2013 at 9:23

About this issue

  • Original URL
  • State: closed
  • Created 12 years ago
  • Comments: 30

Most upvoted comments