Nishant Bangarwa commented on KNOX-729:

[~sumit.gupta] It seems my case is a bit different. In my case the CSS is being 
imported via @import tag 
I tried to write a failing test case for the scenario I am hitting (See 
attached rewrite-test.patch it reproduces the issue i am seeing)

> Rewrite rules for attributes of html content applied to a filter don't work
> ---------------------------------------------------------------------------
>                 Key: KNOX-729
>                 URL: https://issues.apache.org/jira/browse/KNOX-729
>             Project: Apache Knox
>          Issue Type: Bug
>            Reporter: Sumit Gupta
>            Assignee: Sumit Gupta
>             Fix For: 0.10.0
>         Attachments: rewrite-test.patch
> If you are to apply rules to a filter with html content, the rules don't get 
> applied to the attributes.
> e.g.
> {code}
>  <filter name="AMBARIUI/ambari/outbound/mainpage">
>         <content type="*/html">
>             <apply path="stylesheets/vendor.css" 
> rule="AMBARIUI/ambari/outbound/vendorcss"/>
>         </content>
>     </filter>
> {code}
> will not rewrite the attribute value of stylesheets/vendor.css in a html 
> page. A similar construct works for Javascript content.

This message was sent by Atlassian JIRA

Reply via email to