[ 
https://issues.apache.org/jira/browse/KNOX-763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15657020#comment-15657020
 ] 

Nishant Bangarwa commented on KNOX-763:
---------------------------------------

[~sumit.gupta] I am still seeing the issue - 
the rewrite is happening but its not replacing the correct service url 
details below - 
<code>
<rule 
name="DRUID-OVERLORD-UI/druid-overlord-ui/html-import-attribute-demo-table-css">
    <rewrite template="@import 
&quot;{$frontend[url]}/old-console/css/demo_table.css&quot;;"/>
  </rule>
  <content type="*/html">
      <apply path="(@import)+ .*demo_table.css.*" 
rule="DRUID-OVERLORD-UI/druid-overlord-ui/html-import-attribute-demo-table-css"/>
    </content>
</code>

In above case my rewritten html content is - 
    <style type="text/css">@import 
"{$frontend[url]}/old-console/css/style.css";</style>

Note the variable -  $frontend[url] is not replaced. 



> Rewrite rules for importing stylesheets using @import
> -----------------------------------------------------
>
>                 Key: KNOX-763
>                 URL: https://issues.apache.org/jira/browse/KNOX-763
>             Project: Apache Knox
>          Issue Type: Bug
>            Reporter: Nishant Bangarwa
>            Assignee: Sumit Gupta
>             Fix For: 0.11.0
>
>         Attachments: rewrite-test.patch
>
>
> If a stylesheet is imported by using @import rewrite rules fail to rewrite 
> the correct URL. 
> A failing unit test is attached. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to