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

Luis Pigueiras commented on KNOX-3098:
--------------------------------------

I have tried to add a new rule in the hbase/service.xml:

{code}
<!-- User snapshots -->
<route path="/hbase/webui/userSnapshots.jsp?**">
  <rewrite apply="HBASEUI/hbase/inbound/userSnapshots" to="request.url"/>
  <rewrite apply="HBASEUI/hbase/outbound/myfilter" to="response.body"/>     
<---- This
</route>
{code}

And then add a rewrite rule with a filter (since userSnapshots is text/plain as 
content-type)

{code}
<rule dir="OUT" name="HBASEUI/hbase/outbound/myfilter2" >
  <rewrite template="/hbase/webui/snapshotsStats.jsp"/>
</rule>
<filter name="HBASEUI/hbase/outbound/myfilter">
  <content type="*/*">
    <apply path="/snapshotsStats.jsp" rule="HBASEUI/hbase/outbound/myfilter2"/>
  </content>
</filter>
{code}

But I am not seeing any effect, not sure if I'm doing something wrong.

> Add snapshotsStats.jsp to rewrite rules in HBaseUI
> --------------------------------------------------
>
>                 Key: KNOX-3098
>                 URL: https://issues.apache.org/jira/browse/KNOX-3098
>             Project: Apache Knox
>          Issue Type: Bug
>            Reporter: Luis Pigueiras
>            Priority: Minor
>         Attachments: screenshot-1.png
>
>
> The problem is there is a javascript call that calls {{userSnapshots.jsp}} 
> and responds with:
> {code}
> ...
>     <p>1 snapshot(s) in set. [<a href="/snapshotsStats.jsp">Snapshot 
> Storefile stats</a>]</p>
> </table>
> {code}
> That would need to be overwritten
> An screenshot about the issue:
>  !screenshot-1.png! 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to